Figure 5.2 Binary tree after first splaying step. The new item has been moved up by one
level, toward the root of the tree. The previous parent of our new item is now its child.
Figure 5.3 Binary tree after second splaying step. The new item has been moved up by
another level.
113
58 130
31
82
119 146
13 35 124
4 71 90
74
Root Node
Item We’ve
Just Added
113
58 130
31 82 119 146
13 35 124
4 71 90
74
Root Node
Item We’ve
Just Added
Beyond the Documentation 189