Can anyone suggest any ideas to write functions to manage a heap using an existing array.
Any ideas, any info about what exactly heap is and how is works?
Can anyone suggest any ideas to write functions to manage a heap using an existing array.
Any ideas, any info about what exactly heap is and how is works?
You get memory off the heap using malloc().
gg
That would be too much to explain in a single post. Search google.Originally posted by rahuls
Can anyone suggest any ideas to write functions to manage a heap using an existing array.
Any ideas, any info about what exactly heap is and how is works?
If I remember correctly, a heap is a kind of a binary tree where the children nodes have larger key values than its parent.
Last edited by Magos; 03-20-2003 at 02:19 PM.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Oh, that kind of heap, LOL.
You will want to search for "binary heap". Or get a good algorithms book.
gg