AlgoScope

Binomial Heap

Data structureexpertHeaps

A forest of binomial trees supporting O(log n) merge.

Decision · step 2 of 15Binomial and Fibonacci Heaps: Binomial insert: carries like binary addition
heap40

Insert 40 as a new B0, key 1 of 5. The forest holds none: no B0 yet, so the new tree simply joins the root list.

Open in the player →or start at step 2

What you will see

Trees of sizes 1, 2, 4, ... merge like binary addition with carries.

How binomial and fibonacci heaps works →

Cost

insertO(1) amortized
extract minO(log n)
mergeO(log n)
SpaceO(n)

How you work with it here

play it through, step one change at a time, scrub to any step, run it on your own input, try operations in any order.

Screen readers: Each element is an accessibility element with position, value and state; structural changes are announced per step.

Reduced motion: Elements appear at their destination with a crossfade; no travel longer than the element's own size.

Before this

Leads to

Topics that need this one first.

Taught by the same lesson

Binomial and Fibonacci Heaps covers these too, in the same run.