{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Zig x w t 1 t 2 t 3 y t 4 y x t 2 t 3 t 4 w t 1 2004

Info iconThis preview shows pages 14–17. Sign up to view the full content.

View Full Document Right Arrow Icon
zig x w T 1 T 2 T 3 y T 4 y x T 2 T 3 T 4 w T 1
Background image of page 14

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
© 2004 Goodrich, Tamassia, Dickerson Splay Trees 15 Cost per zig-zig and zig-zag Doing a zig-zig or zig-zag at x costs at most 3(rank’(x) - rank(x)) - 2 y x T 1 T 2 T 3 z T 4 zig-zig y z T 4 T 3 T 2 x T 1 zig-zag y x T 2 T 3 T 4 z T 1 y x T 2 T 3 T 4 z T 1
Background image of page 15