CSCI2100 · Theorem · Chapter 3 · Priority queues
Bottom-up construction is correct
5 steps of prerequisites below it
Sifting down at ⌊n/2⌋, …, 1 in decreasing order turns any array into a min-heap holding exactly the original keys.
Taught in
- 3.2 Building a min-heap from the bottom up · introduced
Uses
- Almost-heap at an index · used in its proof, proof step 3.2
- Sift-down repairs an almost-heap · used in its proof, proof step 3.2
- Bottom-up construction · used in its definition, passage 3.2
Used by
No later knowledge point in these notes uses it.
Counterexamples
Everything this builds on, earliest first · 6 steps
Each step comes after its own prerequisites, so reading in this order never needs something you have not met. It is a reading order for these notes, not a diagnosis of what you know.
- Min-priority queue · 3.1
- Binary min-heap · 3.1
- Almost-heap at an index · 3.2
- Sift-down · 3.2
- Sift-down repairs an almost-heap · 3.2
- Bottom-up construction · 3.2
Possible roots and a review route need your own answers on these points. None are recorded yet, so none are suggested.
Longest chain down to a starting point
Each step is used by the one above it, across courses where the notes link them. It ends at a point the notes define without another point.