Content deleted Content added
→Function Slide_And_Increment(p): Formatting |
→Function Slide_And_Increment(p): consistency of notation |
||
Line 53:
==== Function Slide_And_Increment(p) ====
previous_p = parent of p
IF (p is an internal node) THEN
Slide p in the tree higher than the leaf nodes of weight wt + 1
increase weight of p by 1
Line 59:
ELSE
Slide p in the tree higher than the internal nodes of weight wt
p = new parent of p.
|