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.

全部评论

相关推荐

小叮当411:应该是1-3个月吧
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
07-09 12:10
直接上图
牛客13578115...:改得一般,不值80
点赞 评论 收藏
分享
MinJerous:虽然我一直说 计算机不怎么卡学历 但是至少得一本
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
07-09 12:23
转人工😡
门口唉提是地铁杀:五次握手了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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