









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










20
10 6
2 8
15
40 30
25
20
10 6
2 8
15
40 30
25
p q a b
c b c
a
q p
p q a b
c
gp d
c d
b
p gp
q a
p q b c
a
gp d a b c
p gp
q
d
Similar to split operation in an unbalanced binary search tree. However, a rotation is done whenever an LL or RR move is made. Move down 2 levels at a time, except (possibly) in the end when a one level move is made.
e
d
b
a B
c
f
m g
a
d
b
c
f
m g
e
b
a
c
d
f
m g
e
b
a
c
d
f
m g
e
b
a
c
d
f m
g
e
e
d
b
a B
c
f
m g
b
a
d
c
f
m g
e
b
a
c d
f
m g
e
b
a
c d
f
m g
e
b
a
c d
f
m g
e
b
a
c d
f
m
g
e