
Kurt Mehlhorn:
SelfOrganizing Binary Search Trees: Recent Results
joint work with Parinya Chalermsook, Mayank Goswami, Lazlo Kosma, and Thatchaphol Saranurak (WADS 2015, ESA 2015, FOCS 2015) Abstract: The dynamic optimality conjecture is perhaps the most fundamental open question about binary search trees (BST). It postulates the existence of an asymptotically optimal online BST, i.e. one that is constant factor competitive with any BST on any input access sequence. The two main candidates for dynamic optimality in the literature are splay trees [Sleator and Tarjan, 1985], and Greedy [Lucas, 1988; Munro, 2000; Demaine et al. 2009]. Despite BSTs being among the simplest data structures in computer science, and despite extensive effort over the past three decades, the conjecture remains elusive. Dynamic optimality is trivial for almost all sequences: the optimum access cost of most length$n$ sequences is Theta(n \log n), achievable by any balanced BST. Thus, the obvious missing step towards the conjecture is an understanding of the "easy" access sequences. Preorder sequences (the access sequence arises from a preorder traversal of a tree) can easily be served in linear time by an offline algorithms. No online BST is known to serve them in linear time.
We prove (FOCS 2015) two different relaxations of the traversal conjecture for Greedy:
Splay trees satisfy the socalled access lemma. Many of the nice properties of splay trees follow from it. What makes selfadjusting binary search trees (BSTs) satisfy the access lemma? In our ESA 2015 paper, we give sufficient conditions for the access lemma to hold and give strong hints of their necessity. 