Question: Consider the list C,K,E,N,B,A,H. a. Describe the heapify algorithm and apply it to your list to build a Minimum Heap. Show the list (in array

 Consider the list C,K,E,N,B,A,H. a. Describe the heapify algorithm and apply

Consider the list C,K,E,N,B,A,H. a. Describe the heapify algorithm and apply it to your list to build a Minimum Heap. Show the list (in array form) after applying the heapify algorithm. b. What is the index of node C in the heap? Calculate the index of the left child and the right child of node C in the heap. c. Describe the algorithm for removing element from the heap. Show the heap after this removal

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!