Question: Consider the following array which starts at index 1 : [ 3 8 , 3 2 , 2 5 , 2 8 , 3 5

Consider the following array which starts at index 1: [38,32,25,28,35,30,28,20], and assumes you apply the heapify function on the node of index 2 only, using minimum heap property, then:
a) The output array is 38,28,25,20,35,30,28,32.
(b) The output array is 38,35,25,28,32,30,28,20.
c) The output array is 38,35,32,30,28,28,25,20.
x d) The output array is 20,25,28,28,30,32,35,38.
 Consider the following array which starts at index 1: [38,32,25,28,35,30,28,20], and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!