Heap Data Structure

Heap data structure
- Heap, is a tree-like data structure that satisfies the heap property ( MaxHeap / MinHeap )
      - ( MaxHeap ) is a heap in which the data at the root is greater than or equal to the data stored in the child node(s)
      - ( MinHeap ) is a heap in which the data at the root is less than or equal to the data stored in the child node(s)
- In C++, Heap is usually implemented using Priority Queues or Set


© 2019-2026 Algotree.org | All rights reserved.

This content is provided for educational purposes. Feel free to learn, practice, and share knowledge.
For questions or contributions, visit algotree.org

"The best thing about a boolean is even if you are wrong, you are only off by a bit."