Heap Sort
1. The array 5, 4, 1, 2, 3 is sorted in ascending order. Which option provides the correctly sorted array?
2. Which of the following statements about logarithms is correct?
3. Which of the following is true about binary trees?
4. Level of a node is distance from root to that node. For example, level of root is 1 and levels of left and right children of root is 2. The maximum number of nodes on level of a binary tree is:
5. What is the main purpose of arranging elements into a heap before performing Heap Sort?
6. In a max-heap, which element is located at the root?
7. Which statement best describes the time complexity of building a heap from an unsorted array using the bottom-up method?
8. During Heap Sort using a max-heap, what happens after the maximum element is moved to the end of the unsorted portion?
9. What is the worst-case time complexity of Heap Sort for an array of elements?