Rank Properties
Lemma: If node v is the parent
of node w then rank(v) >
rank(w)
Proof:
A node becomes parent of
another node only via union
During union:
if one tree’s rank is larger
then it becomes the root
if the ranks are tied then the
new root’s rank will increase
In either case the parent
ends up with larger rank
Lemma: There are at most n/2r
nodes of rank r where n is
the number of nodes
Proof:
When node v achieved rank
r, v had at least 2r nodes in
its tree
Observe that those nodes
cannot be part of any other
tree that achieves rank r
Thus there are at most n/2r
nodes that achieve rank r
CS409 - Spring 2000
11