Click to See Complete Forum and Search --> : Managing a heap using an array.


rahuls
March 20th, 2003, 12:06 PM
Can anyone suggest any ideas to write functions to manage a heap using an existing array.
Thanks.

Philip Nicoletti
March 20th, 2003, 12:37 PM
In C++, look up make_heap(), push_heap(), and pop_heap().

I think you can use an ordinary array - I know
you can use std::vector

rahuls
March 21st, 2003, 12:16 PM
Hi Philip,
Thanks a lot for the info. I will look it up on Google.
Thanks.