Search arXiv⌕ Search

arXiv · 2612.00368

A 9/4 Lower Bound for Greedy Binary Search Trees

Abstract

We prove that Greedy has competitive ratio at least 9/4 in the binary search tree model counting distinct keys touched per search, improving Sadeh and Kaplan's lower bound of two. For every target below 9/4, arbitrarily long sequences on a fixed finite key set make Greedy exceed that ratio from any initial tree. More generally, a uniform bound $G(X) \le a \mathrm{OPT}(X) + b|X| + f(n)$ requires $4a + b \ge 9$. Our construction starts with a cyclic bitonic permutation on $k \ge 2$ keys, whose limiting offline cost per period is $2k + \lfloor k/2 \rfloor - 2$ regardless of the ascending keys. An optimal tree keeps certain keys as leaves touched by both it and Greedy only when requested. Recursively replacing these leaves with smaller instances interleaves their searches and saves one outer touch per visit, giving exact recurrences for Greedy and the offline optimum at every depth. For either reading direction of the length-$m$ period, fewer than $4m$ preparatory requests make Greedy optimal on every subsequent copy from any initial tree. Comparing these executions shows that deleting a single block or reversing the sequence can increase Greedy's cost by a factor arbitrarily close to 9/4 from any initial tree (improving Sadeh and Kaplan's factor of two). Thus approximate monotonicity under deletion requires a constant of at least 9/4; by Harmon's simulation embedding, a uniform multiplicative bound would imply dynamic optimality for Greedy. A second construction achieves a ratio above two on 47 stored keys (21 requested). With at most seven requested keys and arbitrary finite storage, an exhaustive certificate gives the sharp recurrent ratio 19/10.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Moshe Lewenstein. 2026-11-30. A 9/4 Lower Bound for Greedy Binary Search Trees. https://searcharxiv.org/abs/2612.00368

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Edge-Tilting Field Dynamics: Rapid Mixing at the Uniqueness Threshold and Optimal Mixing for Swendsen-Wang Dynamics

We prove two results on the mixing times of Markov chains for two-spin systems. First, we show that the Glauber dynamics mixes in polynomial time for the Gibbs distributions of antiferromagnetic two-spin systems at the critical threshold of the uniqueness phase transition of the Gibbs measure on infinite regular trees. This result complements the near-linear-time optimal mixing in the uniqueness regime [Chen-Liu-Vigoda, STOC '21; Chen-Feng-Yin-Zhang, FOCS '22] and the NP-hardness of approximate sampling in the non-uniqueness regime [Sly-Sun, FOCS '12]. Along the way, we prove a tight spectral-independence bound for antiferromagnetic two-spin systems by introducing a new control-function approach to total influence. Second, we prove an optimal $O(\log n)$ mixing-time bound and an optimal $Ω(1)$ spectral-gap bound for the Swendsen-Wang dynamics for the ferromagnetic Ising model with external field on bounded-degree graphs. These bounds improve the previous general $O(n\log n)$ mixing-time bound and resolve a conjecture of [Feng-Guo-Wang, IANDC '23]. A key ingredient in both proofs is a new family of localization schemes that extends the field dynamics of [Chen-Feng-Yin-Zhang, FOCS '21] by tilting general edge (or hyperedge) weights rather than vertex fields. This framework, which subsumes the classical Swendsen-Wang dynamics as a special case, extends the localization framework of [Chen-Eldan, FOCS '22] beyond stochastic and field localizations, and enables controlled tilting of interaction strengths while preserving external fields.

cs.DS↗

Orienting Unrooted Binary Networks Faster: Focus on the Generator

The problem of orienting an unrooted phylogenetic network to obtain a rooted network belonging to a specific network class is NP-hard in many cases. In this paper, we introduce two algorithmic frameworks that yield significantly improved fixed-parameter tractable (FPT) algorithms parameterized by the network level $\ell$. We show that, for several prominent network classes, the core algorithmic difficulty lies in finding a directed spanning tree of the network's unrooted generator. By enumerating these spanning trees in $O(5.3334^\ell)$ time and orienting all remaining edges in polynomial time, we solve the orientation problem in $O(5.3334^\ell \cdot n)$ time for tree-based networks and in $O(5.3334^\ell \cdot n^2)$ time for orchards, where~$n$ is the number of vertices of the network. Extending this approach with further branching yields $O(10.6667^\ell \cdot n^2)$-time algorithms for tree-child and normal networks. Our second technique bypasses spanning trees by directly guessing the placement of reticulations on the generator. This framework provides $O(12.2071^\ell \cdot n^2)$-time algorithms for temporal, reticulation-visible, and tree-sibling networks. We further demonstrate the versatility of the reticulation guessing framework by showing that even computing an orientation with minimum scanwidth is single-exponential FPT with respect to the level.

cs.DS↗

A 3.1462-Competitive Algorithm for Matroid Secretary

In the matroid secretary problem, a set of elements arrives one at a time in a uniformly random order, and the weight of each element is revealed only when it arrives. The goal is to maximize the total weight of the selected elements, subject to the constraint that they form an independent set of a given matroid. An online algorithm must decide immediately and irrevocably whether to select each arriving element. Singla (2026) recently resolved the long-standing open question of whether a constant competitive ratio is achievable for every matroid by giving a $4$-competitive algorithm. His algorithm requires only the number of elements and the ability to ask, for any set of already-arrived elements, whether that set is independent in the matroid. With access to the same information, we provide an algorithm, Dynamic Thinning, with an improved competitive ratio of $C_*\approx3.1462$, where $C_*-\log C_*=2$. Like Singla's algorithm, it maintains a set of previously seen elements and accepts an arriving element only if it belongs to the maximum-weight independent subset of the maintained set together with that element. In addition, between consecutive arrivals, the algorithm may randomly remove unselected elements from the maintained set, and in certain cases it accepts an arriving element with a probability that depends on when it arrives. The frequency of these removals and the acceptance probabilities are chosen so that each element of a fixed maximum-weight independent set is selected with probability exactly $\frac{1}{C_*}$, which immediately yields the competitive ratio.

cs.DS↗