Question: 8. Using the buildHeap() and siftdown() functions build a min heap in the array provided. (10 pts) int maxsize 10; int n = 10; int

8. Using the buildHeap() and siftdown() functions build a min heap in the array provided. (10 pts) int maxsize 10; int n = 10; int Heap[maxsizel; buildHeap) for loop value ofi Array Values 12 72 65 87 57 91 83 47 32 37 Index Initial Final 0 4 5 6 8 9. Draw the logical tree structure of the heap you built in the preceding question. (5 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
