CLRS Chapter 6
- nearly complete binary tree
- terminology: node, parent, child, left, right
- lowest level may be incomplete, but filled from left
- how could you store a heap so that it is easy to access
- need to keep track of heapSize (vs. capacity)
- maxHeapify(A,i)
- buildMaxHeap(A,i)
How can we use this data structure to sort?