, Volume 5, Issue 4, pp 367–378

Sequential access in splay trees takes linear time

  • R. E. Tarjan

DOI: 10.1007/BF02579253

Cite this article as:
Tarjan, R.E. Combinatorica (1985) 5: 367. doi:10.1007/BF02579253


Sleator and Tarjan have invented a form of self-adjusting binary search tree called thesplay tree. On any sufficiently long access sequence, splay trees are as efficient, to within a constant factor, as both dynamically balanced and static optimum search trees. Sleator and Tarjan have made a much stronger conjecture; namely, that on any sufficiently long access sequence and to within a constant factor, splay trees are as efficient asany form of dynamically updated search tree. Thisdynamic optimality conjecture implies as a special case that accessing the items in a splay tree in sequential order takes linear time, i.e.O(1) time per access. In this paper we prove this special case of the conjecture, generalizing an unpublished result of Wegman. Oursequential access theorem not only supports belief in the dynamic optimality conjecture but provides additional insight into the workings of splay trees. As a corollary of our result, we show that splay trees can be used to simulate output-restricted deques (double-ended queues) in linear time. We pose several open problems related to our result.

AMS subject classification (1980)

68 E 05 68 C 25 05 C 05 68 E 10 

Copyright information

© Akadémiai Kiadó 1985

Authors and Affiliations

  • R. E. Tarjan
    • 1
  1. 1.AT & T Bell LaboratoriesMurray HillUSA

Personalised recommendations