Using array [10,5,10,12,15,8,2,6,2,9] in that oder to:
a)Draw into an initial heap tree structure.
b)Draw and show the steps of how the Max-Heapify works using theheap tree from question 8.a.
Answer:
Solution
a)
b)
no need to switch 15, as it is in correct position compared toits children.
Same with 12
Same
OR
OR