Heap data structure

Posted by turmoil on Stack Overflow See other posts from Stack Overflow or by turmoil
Published on 2010-03-22T14:19:04Z Indexed on 2010/03/22 14:21 UTC
Read the original article Hit count: 420

Filed under:

Trying to think of a lower bound to the position of say, the nth largest key in a max-heap. Assuming the heap's laid out in array. The upper bound's min(2^n-2, array size -1) i think, but is it always lower bounded by 0?

© Stack Overflow or respective owner

Related posts about binary-heap