Question: ( 4 5 pts ) Construct a heap for the list 7 , 8 , 1 0 , 1 3 , 1 5 , 6
pts Construct a heap for the list by the bottomup algorithm we learned in the class. Suppose that the elements are stored in an array. That is initial values of the array, is filled up as follows in the beginning:
Find out the array values after you apply the heapify algorithm.
a
b
c
d
e
f
g
h
i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
