The splay tree algorithm is a self-adjusting procedure applied to a binary search tree after every access, called splaying, that moves the node just accessed all the way up to the root of the tree through a sequence of rotations, so an item used recently stays quick to reach again. Splaying combines three rotation patterns depending on the accessed node's position relative to its parent and grandparent, called zig, zig-zig and zig-zag, applied repeatedly until the target node reaches the root. Because every access reorganizes the tree around whatever was just used, a splay tree needs no separate balance information and no knowledge of the access pattern in advance, yet it still guarantees that any sequence of operations completes in time that on average is proportional to the logarithm of the tree's size, and it can do noticeably better than that bound on access patterns with strong locality, such as repeatedly reusing a small subset of items. Daniel Sleator and Robert Tarjan invented the splay tree and its splaying algorithm in 1985.
Facts
Time Complexity
Time Complexity (category)Logarithmic Time -- O(log n) 1 Connections
Credited To
Source NIST Dictionary of Algorithms and Data Structures: splay tree
Source NIST Dictionary of Algorithms and Data Structures: splay tree
Invented By
Source NIST Dictionary of Algorithms and Data Structures: splay tree
Source NIST Dictionary of Algorithms and Data Structures: splay tree
Sources
1. Splay Tree Algorithm (Wikipedia)
Wikipedia infobox: time complexity logarithmicQuote, Wikipedia infobox: time complexity logarithmic
logarithmic
View the Source NIST Dictionary of Algorithms and Data Structures: splay tree
NIST Dictionary of Algorithms and Data StructuresCredited To: Daniel Sleator, References
Daniel D. Sleator and Robert E. Tarjan , Self-Adjusting Binary Search Trees , Journal of the ACM, 32(3):652-686, 1985.
Credited To: Robert Tarjan, References
Daniel D. Sleator and Robert E. Tarjan , Self-Adjusting Binary Search Trees , Journal of the ACM, 32(3):652-686, 1985.
Invented By: Daniel Sleator, References
Daniel D. Sleator and Robert E. Tarjan , Self-Adjusting Binary Search Trees , Journal of the ACM, 32(3):652-686, 1985.
Invented By: Robert Tarjan, References
Daniel D. Sleator and Robert E. Tarjan , Self-Adjusting Binary Search Trees , Journal of the ACM, 32(3):652-686, 1985.
In Group: Search Trees and Dictionary Structures, Definition
A binary search tree in which operations that access nodes restructure the tree.
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.