DSA: Heap June 10, 2023 Algorithm / Data Structure A heap is a specialized tree-based data structure that satisfies the heap property. It is commonly used to implement priority queues and efficient sorting algorithms like heap sort.