next up previous
Next: Up: Previous:

Binomial Heap Properties

1.
Each binomial tree is heap-ordered (key(x) $\geq$ key(parent(x)).
This is the opposite of previous heap properties.
2.
There never exist two or more trees with the same degree in the heap.

A binomial heap with n nodes has at most \(\lfloor \lg n \rfloor \;+\; 1\)binomial trees.

*
n in binary = <bk, bk-1, .., b0> bits
k = \(\lfloor \lg n \rfloor\), n = \(\sum_{i=0}^{\lfloor \lg n \rfloor} b_i 2^i\)
*
There is a one-to-one mapping between the binary representation and binomial trees in a binomial heap.

*
If bi = 1, then Bi is in the heap
*
Recall that there are 2i nodes in Bi

*
At most \(\lfloor \lg n \rfloor\) + 1 bits are needed to express n base 2


next up previous
Next: Up: Previous: