90 likes | 458 Views
?. ?. ?. ?. 86. 65. 41. 86. 13. 65. 9. 98. 32. 29. 44. 23. 21. 10. 44. 17. 17. 17. 17. 17. Max-Heapify Example. left child is greater. right child is greater. children of 2: 2*2, 2*2+1 = 4, 5. children of root: 2*1, 2*1+1 = 2, 3. 17. 86. 17. 65. 44. 17. 17.
E N D
? ? ? ? 86 65 41 86 13 65 9 98 32 29 44 23 21 10 44 17 17 17 17 17 Max-Heapify Example left child is greater right child is greater children of 2: 2*2, 2*2+1 = 4, 5 children of root: 2*1, 2*1+1 = 2, 3 17 86 17 65 44 17 17