Ray's playground

 

2010年9月4日

Algorithm Analysis(Chapter 2 of The Algorithm Design Manual)

摘要: The formal definitions associated with the Big Oh notation are as follows:  • f(n) = O(g(n)) means c · g(n) is an upper bound on f(n). Thus there existssome constant c such that f(n) is alw... 阅读全文

posted @ 2010-09-04 20:51 Ray Z 阅读(253) 评论(0) 推荐(0) 编辑

Python Design Patterns I(Chapter 8 of Python 3 Object Oriented Programming)

摘要: decoratorCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1>>>importtime2>>>deflog_calls(func):3defwrapper(*args,**kwargs):4now=time.... 阅读全文

posted @ 2010-09-04 11:14 Ray Z 阅读(356) 评论(0) 推荐(0) 编辑

导航