🌳 Splay Tree Access Costs: Rotations Against a Fixed Balanced Tree
Splay Tree Access Costs: Rotations Against a Fixed Balanced Tree
This simulator visualizes a splay tree responding to node accesses, showing the zig, zig-zig, and zig-zag rotations that carry the selected node up to the root step by step.
🔬 What It Demonstrates
This simulator visualizes a splay tree responding to node accesses, showing the zig, zig-zig, and zig-zag rotations that carry the selected node up to the root step by step.
🎮 How to Use
Click any node in the tree to splay it, and watch the highlighted rotation sequence unfold one step at a time as the tree reshapes itself around your selection.
💡 Did You Know?
Splay trees were invented in 1985 by Daniel Sleator and Robert Tarjan, and their surprising trick is that they need no stored balance information at all, unlike AVL or red-black trees.
Splay Tree Access Costs: Rotations Against a Fixed Balanced Tree
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install