If I insert elements: 10,12,14,1,6 into the binary mini-heap of one element after another, what would the results look like, my problem is related to the following
when i start:
10
then
10 / 12
then
10 / \ 12 14
then
1 / \ 10 14 / 12
but this is wrong, so what is the right way to do this?
Note: this is a homework question, I'm trying to understand the concept, if you do not feel comfortable solving the question (this is not a complete question), please provide an example with a similar problem.
binary-tree
user220755
source share