Overview
A splay tree adapts to access patterns by restructuring after each lookup, giving amortized logarithmic performance without stored balance metadata.
Moves recently accessed nodes to the root using rotations.
Compact metadata for implementation and discovery.
A splay tree adapts to access patterns by restructuring after each lookup, giving amortized logarithmic performance without stored balance metadata.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log n) amortized
Worst
O(n)
Space
O(n)
Show the structure layout and how operations move through or update it.
Splay Tree should be used with the assumptions and tradeoffs of self-Adjusting Search Tree in mind.
What each reference supports for this entry.
Original reference for splay trees, rotations, and amortized self-adjusting search-tree behavior.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Data Structures · Foundation
Splay Tree is a data-structure variant of Binary Search Tree with different update or query tradeoffs.
Compare with thisSplay trees self-adjust by access, while AVL trees maintain explicit height balance.
Splay Tree is a data-structure variant of Binary Search Tree with different update or query tradeoffs.