First page Back Continue Last page Summary Graphic
Splaying
After each operation (insertion/removal/find)
- Splay the target node where the target is:
- newly inserted node
- spliced node (the one that gets removed)
- the found node
- the last node seen in a failed search
- Splaying means
- move up the tree with one of three restructuring step
- stop when the splay node reaches the root position
- Intution behind splaying
- attempt to reduce the depth along the traversed path
- exploit locality of access patterns