CS61A学习笔记-lec20

Complexity

python或者unix提供了很多工具,比如timeit包

当然我们研究的应该是worst case

在complexity中,我们应该忽视一些无关痛痒的细节,比如建立迭代器的时间,比如每次循环返回在调用next()的时间,找到其中有意义更通用的东西。

Professor这里提到的很有意思

You've got to take an infinite amount of time, and you're taking infinite amount of time,what more i can ask?right.

Effiency(P): theoretically optimal time to compute result of P / execution time of my program on P

最后一段话:

If you prove that instead P = NP,you could bring about the end of civilization as we know it,but that's another story.

全部评论

相关推荐

不愿透露姓名的神秘牛友
07-07 12:04
毕业生招你惹你了,问一个发薪日来一句别看网上乱七八糟的你看哪个工作没有固定发薪日扭头就取消了面试就问了一句公司都是这个态度吗还搞上人身攻击了...
程序员小白条:呃呃呃,都还没面试,我都不会问这么细,何况通不通过,去不去都另说,你没实力和学历的话,在外面就这样,说实话没直接已读不回就不错了,浪费时间基本上
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
昨天 13:05
点赞 评论 收藏
分享
06-26 17:24
已编辑
宁波大学 golang
迷失西雅图:别给,纯kpi,别问我为什么知道
点赞 评论 收藏
分享
05-11 20:45
门头沟学院 Java
有担当的灰太狼又在摸...:零帧起手查看图片
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务