This document describes the heap data structure and its implementation using arrays. It discusses binary heaps, including max heap and min heap properties. It covers heap operations like insertion, deletion, building a heap, extracting the max/min, and getting the max/min. Heapsort is also summarized, which uses a heap to sort elements in O(n log n) time without extra space.
Related topics: