Hello,
I am studying heapsort algorithm now and I don't understand how to read final stage on it.
Here is an example, the graph shown bellow presents the final stage of heapsort. Now let's say I want to put values one by one into array...hmm looks like I have to implement reading algorithm o.0
Reading from 1 to 10 doesn't work because array[16,14,10,8,7,9,fail..]
the same nonsense in descending order ;/
So, where I understand it incorrectly or what I have missed ?
Thanks!