Hide text Hide pseudo-code | |
A heap can be built from a table of random keys by using a linear time bottom-up algorithm (a.k.a., Build-Heap, Fixheap, and Bottom-Up Heap Construction). This algorithm ensures that the heap-order property (the key at each node is lower than or equal to the keys at its children) is not violated in any node. Please note You will be presented with a research related survey when you submit the exercise. | Algorithm 1 Build-Min-Heap(A)
|