Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
courses:cs211:winter2018:journals:bowmang:chapter2 [2018/01/30 03:09] bowmangcourses:cs211:winter2018:journals:bowmang:chapter2 [2018/01/30 03:10] (current) bowmang
Line 31: Line 31:
 ===== Chapter 2.2 (Asymptotic Order of Growth) ===== ===== Chapter 2.2 (Asymptotic Order of Growth) =====
  
-Runtime Bounds+__Runtime Bounds__
   * No need to get extremely specific in them as that is an exhaustive effort and unnecessary (unless you are under oppressively fine constraints for an algorithm's implementation).   * No need to get extremely specific in them as that is an exhaustive effort and unnecessary (unless you are under oppressively fine constraints for an algorithm's implementation).
   * By using a certain level of vagueness, similarities between algorithms start to appear.   * By using a certain level of vagueness, similarities between algorithms start to appear.
  
-Asymptotic Upper Bounds+__Asymptotic Upper Bounds__
   * An upper bound exists if the worst-case running time is less than a constant multiple of f(n).   * An upper bound exists if the worst-case running time is less than a constant multiple of f(n).
  
-Asymptotic Lower Bounds+__Asymptotic Lower Bounds__
   * A lower bound exists if the best-case running time is more than a constant multiple of f(n) for a sufficiently large size N. (necessary to prove scaleability, not just for tiny insignificant cases).   * A lower bound exists if the best-case running time is more than a constant multiple of f(n) for a sufficiently large size N. (necessary to prove scaleability, not just for tiny insignificant cases).
  
-Asymptotic Tight Bounds+__Asymptotic Tight Bounds__
   * If we can show both an asymptotic upper and lower bound are the same as the run time then we can say we have found the right bounds.    * If we can show both an asymptotic upper and lower bound are the same as the run time then we can say we have found the right bounds. 
   * These tight bounds are good to find for worst-case runtime scenarios as they show the runtime precisely.   * These tight bounds are good to find for worst-case runtime scenarios as they show the runtime precisely.
  
-Properties of Asymptotic Growth Rates+__Properties of Asymptotic Growth Rates__
   * Transitivity: if a function F is upper bounded by another function H which itself is upper bounded by another function G then we can say that function F is is bounded by function G.   * Transitivity: if a function F is upper bounded by another function H which itself is upper bounded by another function G then we can say that function F is is bounded by function G.
   * Sums of Functions: if an upper bound applies to both function F and function G individually then it applies to the sum of the functions F and G.   * Sums of Functions: if an upper bound applies to both function F and function G individually then it applies to the sum of the functions F and G.
  
-Asymptotic Bounds for Some Common Functions+__Asymptotic Bounds for Some Common Functions__
   * Polynomials   * Polynomials
     * If a polynomial is to degree D then the runtime is O(n^D).     * If a polynomial is to degree D then the runtime is O(n^D).
courses/cs211/winter2018/journals/bowmang/chapter2.1517281795.txt.gz · Last modified: by bowmang
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0