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.
No comments:
Post a Comment