Question: A . You are given a function Min - Heapify ( A [ 1 . . n ] , n , i ) that implements
A You are given a function MinHeapify An ni that implements the Heapify algorithm to rearrange the elements of an array An so that the left and right subtrees of element i obey the minimum heap property. Using this function, implement a function to receive a maximum heap Hn and convert it to a minimum heap. points B What will be the complexity of your function in terms of the heap size n points C Write a pseudocode for an algorithm to check whether an array Hn is a minimum heap. points
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
