![]() |
A Heap is a complete binary tree data structure that satisfies the heap property: for every node, the value of its children is greater than or equal to its own value. Heaps are usually used to implement priority queues, where the smallest (or largest) element is always at the root of the tree. ![]() Heap Data Structure Table of Content What is Heap Data Structure?A heap is a binary tree-based data structure that satisfies the heap property: the value of each node is greater than or equal to the value of its children. This property makes sure that the root node contains the maximum or minimum value (depending on the type of heap), and the values decrease or increase as you move down the tree. Types of HeapsThere are two main types of heaps:
Heap OperationsCommon heap operations are:
Heap Data Structure ApplicationsHeaps have various applications, like:
Basics of Heap Data Structure
Other Types of Heap Data StructureEasy Problems on Heap Data Structure
Medium Problems on Heap Data Structure
Hard Problems on Heap Data Structure
Quick Links: Recommended: |
Reffered: https://www.geeksforgeeks.org
DSA |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |