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 11:33
江南大学 Java
已经在暑假实习了 ,没有明确说有hc,纠结实习到八月份会不会有点影响秋招毕竟感觉今年好多提前批
程序员小白条:92的话准备提前批,其他没必要,没面试机会的,而且你要准备充分,尤其八股和算法题
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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