6.00 Introduction to Computer Science and Programming Lec 8: Efficiency and Order of Growth
摘要:
这个lec主要将复杂度的内容,这部分内容没有什么好总结的,不过里面那段Python代码比较有意思,就贴在这里吧import pylab, math def showGrowth(lower, upper): log = [] linear = [] quadratic = [] logLinear = [] exponential = [] for n in range(lower, upper+1): log.append(math.log(n, 2)) linear.append(n) log... 阅读全文
posted @ 2013-02-19 22:16 jubincn 阅读(201) 评论(0) 推荐(0)
浙公网安备 33010602011771号