The Two Phases in Heapsort
l
Phase I: Form the data into a heap
l
Phase II: Transform the heap into a linear
sequence