Heap Sort
1. What is the worst-case complexity of rebuilding a heap after the root has been replaced?
2. Does the rebuild operation vary for max and min heaps?
3. What is the main purpose of the heapify operation in Heap Sort?
4. In a max-heap represented as an array, which relationship must hold between a parent and each of its children?
5. Which statement about building a heap from an unsorted array is correct when the bottom-up method is used?
6. During Heap Sort with a max-heap, why is the root exchanged with the last element of the unsorted portion?
7. What is the space complexity of an in-place implementation of Heap Sort, excluding the input array?
8. Which sequence of steps best describes Heap Sort using a max-heap for ascending order?
9. Why does Heap Sort have worst-case time complexity?