Overview
Min-Max Heap is a data structure that maintains an invariant that supports efficient queries, updates, summaries, or indexing. It trades implementation complexity for faster or more compact operations on repeated workloads.
Min-Max Heap organizes data around a query, update, ordering, or approximation invariant.
Compact metadata for implementation and discovery.
Min-Max Heap is a data structure that maintains an invariant that supports efficient queries, updates, summaries, or indexing. It trades implementation complexity for faster or more compact operations on repeated workloads.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log n)
Worst
O(n)
Space
O(n)
Show the structure changing as items are inserted, queried, or removed.
Min-Max Heap operates in O(log n) time and O(n) space within the Data Structure family. Often compared with Hash Table and Binary Search Tree.
What each reference supports for this entry.
Data-structures reference for Min-Max Heap double-ended priority queue levels and min/max deletion operations.
Good next jumps from the relationship graph, ranked for useful discovery.
Min-max heaps are heap variants that maintain alternating min and max levels for double-ended priority queues.