Overview
A binomial heap stores heap-ordered binomial trees with at most one tree of each rank. Merge works like binary addition by linking trees of equal rank.
Maintains a mergeable priority queue as a forest of binomial trees.
Compact metadata for implementation and discovery.
A binomial heap stores heap-ordered binomial trees with at most one tree of each rank. Merge works like binary addition by linking trees of equal rank.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log n)
Worst
O(n)
Space
O(n)
Show storing heap-ordered binomial trees whose sizes follow binary representation on a small priority queue operations example.
Binomial heaps are easiest to reason about when meld is treated as the central operation.
What each reference supports for this entry.
Reference for Binomial Heap binomial tree merging, heap union, and priority-queue operations.
Good next jumps from the relationship graph, ranked for useful discovery.
Data Structures · Foundation
Binomial heaps support efficient melding, while array heaps are simpler for nonmeld workloads.
Compare with thisData Structures · Core
Both support melding, but maintain different structural invariants.
Compare with thisBinomial heaps support efficient melding, while array heaps are simpler for nonmeld workloads.
Fibonacci heaps relax binomial-heap consolidation to improve amortized bounds.
Pairing heaps are another pointer-based mergeable heap design.