Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
courses:cs211:winter2014:journals:haley:chapter2 [2014/01/22 01:08] 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 45: Line 45:
             * Finding the maximum of a list or array of numbers             * Finding the maximum of a list or array of numbers
             * Merging two sorted lists             * Merging two sorted lists
-            *  +        Linearithmic 
-    * I found this section readablealbeit bit dry and definitely more interesting in class than in book8/10.+            * Sorting: merge sort 
 +        * Quadratic 
 +            * 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. 
 + 
 +===== 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.1390352935.txt.gz · Last modified: 2014/01/22 01:08 by archermcclellanh
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0