Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| courses:cs211:winter2014:journals:deirdre:chapter2 [2014/01/22 04:01] – [Section 2.5 - A More Complex Data Structure: Priority Queues] tobind | courses:cs211:winter2014:journals:deirdre:chapter2 [2014/01/22 04:03] (current) – [Section 2.4 - A Survey of Common Running Times] tobind | ||
|---|---|---|---|
| Line 79: | Line 79: | ||
| There are cases where one encounters running times that are asymptotically smaller than linear. Since it takes linear time just to read the input, these situations tend to arise in a model of computation where the input can be " | There are cases where one encounters running times that are asymptotically smaller than linear. Since it takes linear time just to read the input, these situations tend to arise in a model of computation where the input can be " | ||
| - | + | I give this section a 8.5. | |
| - | + | ||
| ====== Section 2.5 - A More Complex Data Structure: Priority Queues ====== | ====== Section 2.5 - A More Complex Data Structure: Priority Queues ====== | ||
| **The Problem** | **The Problem** | ||
| Line 127: | Line 125: | ||
| | | ||
| Endif | Endif | ||
| - | Assume that //H// is an array and //w// is the element in postion //i//. We say that "H is almost a heap with the key of //H[i] too big", if there is a value α ≤ key(//w//) such that lowering the value of key(//w//) to α would make the resulting array satisfy the heap property. | + | Assume that //H// is an array and //w// is the element in postion //i//. We say that "H is almost a heap with the key of //H[i]// too big", if there is a value α ≤ key(//w//) such that lowering the value of key(//w//) to α would make the resulting array satisfy the heap property. |
| - The procedure Heapifydown(// | - The procedure Heapifydown(// | ||
