The function y = x represented the given input of the program.
The function y = logx + 1 represented the lower bound (at least as bad) of the program (least time consuming)
The function y = x^3 + x^2 - 1 represented the upper bound (can't get any worse) of the program (most time consuming)
Additionally, we mentioned introduction rules, insertion sort, and selection sort.
We found that steps required for insertion sort and selection sort on list of size n were no more than some quadratic functions of n. All quadratic formulas were varied from substantial constant factors, but we as computer scientists didn't care because all quadratic formulas were the "same" - they were all in O(n^2).
**** Big Oh stood for upper case and Big Omega stood for lower case ****

No comments:
Post a Comment