
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
Trend Micro Antivirus
Digireload TeamTrend Micro Antivirus Security provides simple and effective protection with an easy-to-use interface that explains various options in an easy-to-u...
Floobits
Digireload TeamFloobits offers collaborative, real-time editing and chat but its limited to its own in-browser editor and via add-ons for multiple editors includi...
Ionic
Digireload TeamIonic, again is one of the open-source, cross-platform mobile UI toolkit for native Android, iOS and web apps. What makes it different is the amazi...