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?
Printable View
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.Quote:
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.
Oh, that kind of heap, LOL.
You will want to search for "binary heap". Or get a good algorithms book.
gg