This week learned more about big-Oh proofs, and also prove big-Oh using limit techniques. Last week we learned about the break point B. When beyond this break point, f(n) is upper-bounded by cn².
This week we learned about picking c and B. bound relation was really important. Also in all the polynomials we have looked at, simply look at the highest-degree term. I was a little bit confused with the using limit to prove big-Oh part,
I was a little bit confused. However, after I review my notes and power points, I understand the whole prove was simply a three step proof. We need to calculate the limit as we have learned in calculus and then transfer it into big-Oh.
Sunday, 23 November 2014
Saturday, 15 November 2014
\Week 8
It is another week. one less week to the final exam.
This week we learned how to define O and Ω. O is the upper boundary for set of functions. For example, O(n²) is set of function that grows no faster than n². On the other hand, Ω is lower boundary for set of functions, which means Ω(n²) is set of function that grows no slower than n².
We also learn about how to analyse a sorting algorithm. Insertion sort contains is to remove an element from the unsorted part and then insert it into the correct position in the sorted part.
This week we learned how to define O and Ω. O is the upper boundary for set of functions. For example, O(n²) is set of function that grows no faster than n². On the other hand, Ω is lower boundary for set of functions, which means Ω(n²) is set of function that grows no slower than n².
We also learn about how to analyse a sorting algorithm. Insertion sort contains is to remove an element from the unsorted part and then insert it into the correct position in the sorted part.
Tuesday, 4 November 2014
Week 7
It is almost winter, and here is another week of school. For the term test I received last week, I finally get rid of all the questions I had. There will be no more tests until the final, which I think is enough time to study for the final.
This week we learned how to split the argument into different cases, and prove the conclusion for each cases. Also we learned about the two patterns of inference: introduction and elimination. Introduction was to work from a smaller statement to a larger statement, and the elimination would be opposite. And here are all the proof we have learned, and we started a new Chapter which is the algorithm, which is widely in programming.
Subscribe to:
Posts (Atom)