A heap is a special case of a binary tree, in which the top node is compared with its child nodes and their values and arranged accordingly.
An example of minimum heap attribute is
- Minimum heap: The father's key is less than or equal to his child's key. The root will contain the minimum value of the heap.
- Maximum heap: The key of the parent item is greater than or equal to the key of its child. This is called the maximum heap attribute. The root will contain the maximum value of the heap.
It is used to implement priority queues, because priority values can be sorted according to heap attributes, and arrays can be used to implement heaps.
Related Article
Animated calls to action
Digireload TeamCalls to action are a necessary evil in website design. The fact remains that your consumers won't know what to do unless you explicitly tell t...
Learn New Skills
Digireload TeamYou can utilize this opportunity to learn new skills. It could be anything, relating to your job, or something you are interested in doing etc. If ...
Slush Pool
Digireload TeamSlush Pool is the oldest existing cryptocurreny mining pool which started in 2010. The registration process is simple and you can even create a dem...








.png)