求助

danielinbiti 2003-09-16 04:19:20
Suppose you have programs whose running time in microseconds for an input of size n are 1000*lgn,100*n,10*n^2,and 2^n .Find the largest size n of input that can be processed by each of these programs in
(a)one second ,(b)one minute ,(c) one day,and(d) one year
不知道这道题目要求的n到底要干嘛?


我是新手,刚学,希望各位能够帮忙。
...全文
44 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
SoftWare1999 2003-09-16
  • 打赏
  • 举报
回复
题目让你求出算法复杂度为:1000*lgn,100*n,10*n^2,and 2^n 的算法
在每毫秒运行一次的计算机上运行。

以上算法运行1秒,1分钟,1天,1年,分别能解决的问题大小,也就是N了。
SoftWare1999 2003-09-16
  • 打赏
  • 举报
回复
他让你学习时间复杂度的重要性。

33,028

社区成员

发帖
与我相关
我的任务
社区描述
数据结构与算法相关内容讨论专区
社区管理员
  • 数据结构与算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧