next up previous
Next: Up: Previous:

Summary

BuildHeap:
O(n)
Heapify:
O(lgn), n-1 calls to this routine
Heapsort:
O(nlgn)

HeapSort Example


next up previous
Next: Up: Previous: