Back to the 2024 paper
Similar questions
Design & Analysis of AlgorithmsWrite short notes on: Heap creation technique20237mDesign & Analysis of AlgorithmsWhat is heap sort? What is the effect of calling MAX-HEAPIFY(A, i) when the element A[i] is larger than its children?20227mDesign & Analysis of AlgorithmsA priority queue is implemented as a Max-heap. Initially it has 5 elements. The level order traversal of the heap is 10, 8, 5, 3, 2. Two new elements '1' and '7' are inserted into the heap in that order. The level order traversal of the heap after the insertion of the elements is: - (i) 10, 8, 7, 5, 3, 2, 1 - (ii) 10, 8, 7, 2, 3, 1, 5 - (iii) 10, 8, 7, 1, 2, 3, 5 - (iv) 10, 8, 7, 3, 2, 1, 520222m Compiler DesignChoose the correct answer of the following: The languages that need heap allocation in the runtime environment are those that (i) use global variables (ii) use dynamic scoping (iii) support recursion (iv) allow dynamic data structure20192m