Self-Adjusting Binary Search Trees

D. D. Sleator, R. E. Tarjan, Self-Adjusting Binary Search Trees, Journal of the Association for Computing Machinery, Vol. 32, No. 3, 1985, pp. 652-686.

Full Text (PDF)


The splay tree, a self-adjusting form of binary search tree, is developed and analyzed. The binary search tree is a data structure for representing tables and lists so that accessing, inserting, and deleting items is easy. On an n-node splay tree, all the standard search tree operations have an amortized time bound of O(log n) per operation, where by “amortized time” is meant the time per operation averaged over a worst-case sequence of operations. Thus splay trees are as efficient as balanced trees when total running time is the measure of interest. In addition, for sufficiently long access sequences, splay trees are as efficient, to within a constant factor, as static optimum search trees. The efficiency of splay trees comes not from an explicit structural constraint, as with balanced trees, but from applying a simple restructuring heuristic, called splaying, whenever the tree is accessed. Extensions of splaying give simplified forms of two other data structures: lexicographic or multidimensional search trees and link/cut trees.

Daniel Sleator: Email, Home Page, Papers
Last modified: Sat Jan 21 07:15:44 EST 2006