Next: Heapsort: Recursive Construction
Up: Heap Sort
Previous: Heap Sort
Construct Heap:
- for
downto
- Restore-heap(
)
Time Complexity of Iterative Algorithm for Heap Construction:
(pp. 135)
Consider
Let
 |
 |
 |
(1) |
 |
 |
 |
(2) |
 |
 |
 |
(3) |
|
|
 |
(4) |
|
 |
 |
(5) |
|
 |
 |
(6) |
|
 |
|
(7) |
Sushil_Prasad
2014-09-25