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:winter2011:journals:chen:chapter_2 [2011/01/25 01:48] – [2.5 A More Complex Data Structure:Priority Queues] zhongccourses:cs211:winter2011:journals:chen:chapter_2 [2011/01/25 01:52] (current) – [2.3 Implementing the Stable Matching Algorithm Using Lists and Arrays] zhongc
Line 51: Line 51:
 Refer back to the 1/17 slide for the breakdown of the running time of O(N²) of the the total running time.                                        Refer back to the 1/17 slide for the breakdown of the running time of O(N²) of the the total running time.                                       
  
 +
 +
 +Interesting/Readability: 8  5
  
 ===== 2.4 A Survey of Common Running Times ===== ===== 2.4 A Survey of Common Running Times =====
Line 84: Line 87:
  
 Note: Summary of running times. P20 slide 1/19 Note: Summary of running times. P20 slide 1/19
 +
 +
 +Interesting/Readability: 8  5
 ===== 2.5 A More Complex Data Structure:Priority Queues ===== ===== 2.5 A More Complex Data Structure:Priority Queues =====
 Motivation: Motivation:
Line 102: Line 108:
 Implementing data structures: for sorting Implementing data structures: for sorting
 If we use unsorted lists: N² -why?   If we use unsorted lists: N² -why?  
 +
 If we use array: logn*N² If we use array: logn*N²
 +
 If we use heaps: NlogN If we use heaps: NlogN
  
 Implementation of Heaps: Implementation of Heaps:
 +Know the implementation of the **Heapify-up** and **Heapify-down** with an array based implementation.
 +
 +Interesting/Readability: 7  7
    
courses/cs211/winter2011/journals/chen/chapter_2.1295920082.txt.gz · Last modified: 2011/01/25 01:48 by zhongc
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0