Indexing
Hashing your keys…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Indexing
Hashing your keys…
Self-adjusting: every access rotates its node to the root, so the keys you use most become the cheapest to reach. No balance factors, no colours — just the access pattern.
Repeat a key to see the second access cost one comparison.
Click Play to begin
O(log n)O(n)O(1)O(n)Question 1 of 3
What does a splay tree do after every single access?