Next:
Up:
Previous:
Binomial Heap Properties
1.
Each binomial tree is heap-ordered (key(x)
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
binomial trees.
n in binary = <
b
k
,
b
k
-1
, ..,
b
0
> bits
k =
, n =
There is a one-to-one mapping between the binary representation and binomial trees in a binomial heap.
If
b
i
= 1, then
B
i
is in the heap
Recall that there are 2
i
nodes in
B
i
At most
+ 1 bits are needed to express n base 2
Next:
Up:
Previous: