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
Keyword Surfer
Digireload TeamKeyword surfer is another one of the best chrome extensions for SEO. If you want to rank higher on the search engine, keywords and content relevanc...
Share Your Content on Social Media
Digireload TeamThis is one of the most exciting and engaging ways to generate organic traffic. Create powerful and unique content. Share it on your social media p...
Be Direct and Personal
Digireload TeamBe straight & put the message in front of the customer by making it all about the customers only. Include words such as "You" "Y...








.png)