Question: Given the following array A , starting with index 1 : [ 1 5 , 3 , 2 7 , 1 0 , 8 4

Given the following array A, starting with index 1:
[15,3,27,10,84,19,6,22,9,43,11,25]
What will be the contents of the array after calling Heapify(A,2)
a.[84,43,27,22,15,25,6,10,9,3,11,19]
b. Should not be done!
c.[15,84,27,10,43,19,6,22,9,3,11,25]
d.[84,43,27,25,22,15,10,6,9,3,19,11]

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!