0 votes
7 views

Why do we want the loop index $i$ in line $2$ of BUILD-MAX-HEAP to decrease from $\lfloor A.length/2 \rfloor$ to 1 rather than increase from 1 to $\lfloor A.length/2 \rfloor$?

| 7 views

0 votes
0 answers
1
0 votes
0 answers
2