Question: 3. (15 marks) A heap is maintained in an array X of length . The current heap has size 9 and its elements are stored

3. (15 marks) A heap is maintained in an array X of length . The current heap has size 9 and its elements are stored in X as shown below (only the keys are shown). 0 1 2 3 4 5 6 7 8910 2712 1413 20 2225 Insert key 4 to this heap. Then, from the updated heap, remove the minimum key. Show how the array changes during the execution of these operations (show all intermediate arrays)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
