Better Analysis of GREEDY Binary Search Tree on Decomposable Sequences

In their seminal paper [Sleator and Tarjan, J.ACM, 1985], the authors conjectured that the splay tree is dynamically optimal binary search tree (BST). In spite of decades of intensive research, the problem remains open. Perhaps a more basic question, which has also attracted much attention, is if there exists any dynamically optimal BST algorithm. One such candidate is GREEDY which is a simple and intuitive BST algorithm [Lucas, Rutgers Tech. Report, 1988; Munro, ESA, 2000; Demaine, Harmon, Iacono, Kane and Patrascu, SODA, 2009]. [Demaine et al., SODA, 2009] showed a novel connection between a geometric problem. Since dynamic optimality conjecture in its most general form remains elusive despite much effort, researchers have studied this problem on special sequences. Recently, [Chalermsook, Goswami, Kozma, Mehlhorn and Saranurak, FOCS, 2015] studied a type of sequences known as $k$-{\em decomposable sequences} in this context, where $k$ parametrizes easiness of the sequence. Using tools from forbidden submatrix theory, they showed that GREEDY takes $n2^{O(k^2)}$ time on this sequence and explicitly raised the question of improving this bound. In this paper, we show that GREEDY takes $O(n \log{k})$ time on $k$-decomposable sequences. In contrast to the previous approach, ours is based on first principles. One of the main ingredients of our result is a new construction of a lower bound certificate on the performance of any algorithm. This certificate is constructed using the execution of GREEDY, and is more nuanced and possibly more flexible than the previous independent set certificate of Demaine et al. This result, which is applicable to all sequences, may be of independent interest and may lead to further progress in analyzing GREEDY on $k$-decomposable as well as general sequences.

[1]  Faith Ellen,et al.  Space-Efficient Data Structures, Streams, and Algorithms , 2013, Lecture Notes in Computer Science.

[2]  Daniel M. Kane,et al.  The geometry of binary search trees , 2009, SODA.

[3]  Robert E. Wilber Lower Bounds for Accessing Binary Search Trees with Rotations , 1989, SIAM J. Comput..

[4]  Robert E. Tarjan,et al.  Self-adjusting binary search trees , 1985, JACM.

[5]  Kurt Mehlhorn,et al.  The landscape of bounds for binary search trees , 2016, ArXiv.

[6]  Richard Cole,et al.  On the Dynamic Finger Conjecture for Splay Trees. Part II: The Proof , 2000, SIAM J. Comput..

[7]  John Iacono,et al.  Weighted dynamic finger in binary search trees , 2016, SODA.

[8]  John Iacono,et al.  In Pursuit of the Dynamic Optimality Conjecture , 2013, Space-Efficient Data Structures, Streams, and Algorithms.

[9]  Richard Cole,et al.  On the dynamic finger conjecture for splay trees , 1990, STOC '90.

[10]  Richard Cole,et al.  On the Dynamic Finger Conjecture for Splay Trees. Part I: Splay Sorting log n-Block Sequences , 1995, SIAM J. Comput..

[11]  Robert E. Wilber Lower bounds for accessing binary search trees with rotations , 1986, 27th Annual Symposium on Foundations of Computer Science (sfcs 1986).

[12]  Seth Pettie,et al.  Splay trees, Davenport-Schinzel sequences, and the deque conjecture , 2007, SODA '08.

[13]  Erik D. Demaine,et al.  Dynamic Optimality - Almost , 2004, FOCS.

[14]  Daniel Dominic Sleator,et al.  A Lower Bound Framework for Binary Search Trees with Rotations , 2005 .

[15]  Seth Pettie,et al.  Applications of forbidden 0-1 matrices to search tree and path compression-based data structures , 2010, SODA '10.

[16]  Kurt Mehlhorn,et al.  Pattern-Avoiding Access in Binary Search Trees , 2015, 2015 IEEE 56th Annual Symposium on Foundations of Computer Science.

[17]  J. Ian Munro,et al.  On the Competitiveness of Linear Search , 2000, ESA.

[18]  Kyle Fox,et al.  Upper Bounds for Maximally Greedy Binary Search Trees , 2011, WADS.

[19]  Prosenjit Bose,et al.  An O(log log n)-Competitive Binary Search Tree with Optimal Worst-Case Access Times , 2010, SWAT.