De-amortizing binary search trees

  • Authors:
  • Prosenjit Bose;Sébastien Collette;Rolf Fagerberg;Stefan Langerman

  • Affiliations:
  • School of Computer Science, Carleton University, Canada;Département d'Informatique, Université Libre de Bruxelles, Belgium;Department of Mathematics and Computer Science, University of Southern Denmark, Denmark;Département d'Informatique, Université Libre de Bruxelles, Belgium

  • Venue:
  • ICALP'12 Proceedings of the 39th international colloquium conference on Automata, Languages, and Programming - Volume Part I
  • Year:
  • 2012
  • Combining binary search trees

    ICALP'13 Proceedings of the 40th international conference on Automata, Languages, and Programming - Volume Part I

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a general method for de-amortizing essentially any Binary Search Tree (BST) algorithm. In particular, by transforming Splay Trees, our method produces a BST that has the same asymptotic cost as Splay Trees on any access sequence while performing each search in O(logn) worst case time. By transforming Multi-Splay Trees, we obtain a BST that is O(loglogn) competitive, satisfies the scanning theorem, the static optimality theorem, the static finger theorem, the working set theorem, and performs each search in O(logn) worst case time. Transforming OPT proves the existence of an O(1)-competitive offline BST algorithm which performs at most O(log n) BST operations between each access to the keys in the input sequence. Finally, we obtain that if there is an O(1)-competitive online BST algorithm, then there is also one that performs every search in O(logn) operations worst case.