Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
courses:cs211:winter2014:journals:haley:chapter2 [2014/01/22 01:34] archermcclellanhcourses:cs211:winter2014:journals:haley:chapter2 [2014/01/22 02:13] (current) archermcclellanh
Line 39: Line 39:
     * I mostly skimmed this section because it wasn't that interesting and it was significantly more captivating as a class discussion. 5/10.     * I mostly skimmed this section because it wasn't that interesting and it was significantly more captivating as a class discussion. 5/10.
  
-===== 2.5: A Survey of Common Running Times =====+===== 2.4: A Survey of Common Running Times =====
  
     * This section discusses what algorithms tend to take specific running times     * This section discusses what algorithms tend to take specific running times
Line 49: Line 49:
         * Quadratic         * Quadratic
             * Anything with two nested loops             * Anything with two nested loops
 +        * Cubic
 +            * Determining whether sets are disjoint
 +        * Polynomial - O(n^k)
 +            * Brute-force searching over all subsets of size k
 +        * Exponential
 +            * Search algorithm over all subsets of size n
 +        * Factorial
 +            * Travelling salesman-like problems
 +        * Sublinear - O(log(n))
 +            * Binary search
 +    * This section was informative and didn't try too hard. 7/10.
  
-    I found this section readablealbeit bit dry and definitely more interesting in class than in book8/10.+===== 2.5: Priority Queues ===== 
 + 
 +    This section discusses priority queueswhich is set where each element has some key indicating how important it is. The lower the key, the higher the priority. 
 +    * We implement priority queues using heap, or a balanced binary tree. 
 +    * The implementation details span from pg 60-64. 
 +    * This section was not interesting to read4/10.
courses/cs211/winter2014/journals/haley/chapter2.1390354484.txt.gz · Last modified: 2014/01/22 01:34 by archermcclellanh
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0