Array heapification using siftdown - max(heap) this is the result of swaping 45 with 77, I am interested in next step, is it 37 swapping with 77 or 45 swapping with 67, considering that this situation was done by 45 swapping with 77 and I looked at level 1(level 0 is 37), do I need to go back down to fix situation with 45 and 67 or should continue raising up and then fix bottom numbers? which operation would be done first in computer implementation?
|37|
|77| |59|
|63| |45| |54| |11|
|31| |39| |48| |67|