Skip to content

Greedy BST is O(\log\log n)-Competitive

Moshe Lewenstein

cs.DS

Abstract

Greedy is a principal candidate for dynamically optimal binary search trees. We prove that online Greedy is O(log log n)-competitive, improving the 2O(log log n) bound of Guo, Pettie, Skora, and Wan [SODA 2026]. For every access sequence X on n keys and every initial tree T0, we obtain Greedy(X,T0)= O(n + OPTn(X) n). Here OPTn(X) is the minimum cost of an offline BST execution with a freely chosen initial tree. We further show that the competitive factor depends only on the number k of distinct requested keys: Greedy(X,T0) = O(n + OPTn(X) k). The additive O(n) term accounts for an arbitrary initial tree.

Create a lesson