Question: a) Illustrate how BUILD-MAX-HEAP (A) works on the array A={2,9,6,8, 11,4,5,3,1,7}. Each step is the result of one call to the MAX-HEAPIFY () function. Show


a) Illustrate how BUILD-MAX-HEAP (A) works on the array A={2,9,6,8, 11,4,5,3,1,7}. Each step is the result of one call to the MAX-HEAPIFY () function. Show both the array view and the tree view for each step. b) Show the tree view, the array view, and the return value that can be the result after the call to HEAP-EXTRACT-MAX (A) on your above final heap (from the final max-heap in question 1.a)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
