Concept
Heap 0
A heap is a specialized tree-based data structure that satisfies the heap property, where in a max heap, the parent node is always greater than or equal to its children, and in a min heap, the parent node is always less than or equal to its children. Heaps are commonly used to implement priority queues and are crucial in algorithms like heapsort and graph algorithms such as Dijkstra's shortest path algorithm.
Relevant Degrees