0 votes 0 votes 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$? Algorithms cormen algorithms binary-heap descriptive + – akash.dinkar12 asked Jun 26, 2019 akash.dinkar12 237 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.