2012年10月24日星期三

More complexity

From last week, the course materials began to concentrate to the sort method, figure out the upper and lower bound for each sort method. After attending the tutorial on Monday, I know how to deal with this kind of problem now. N is supposed to be a product of 2 or 3, so we can rewrite the function and unwind it for a more clear version rather than a recursive method.

2012年10月14日星期日

Time Complexity

Last week, we have the first term test of the CSC236 course. It was easier than I though, or because i am comfortable with the induction proof which i have learned a lot in the MAT137 course last year. Then after the test, we come to a new part: time complexity. Although the induction is still the tool to prove this kind of the problem, i didn't catch the professor's idea.How could we figure out that the time complexity of the binary search is O(log n) ? The python code is also confused, what "e" and "b" stand for? Moreover, what is the "unwinding"?

Tomorrow i will have a tutorial, and TA will talks about the exercise questions on the handout,so it is a good time to learn how to deal with these kind of problems. And a new week starts again.- -

2012年10月8日星期一

CSC236 SLOG

This blog is used to record my academic life in UTSG, as well as a course blog for CSC236 in 2012 fall.