arXiv:2611.16272cs.DSNov 2026

Manuscript Offprint

arXiv:2611.16272

A Binary Search Tree with the Unified Bound

Yang Cao, Haoran Qi, Hanzhi Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

We give a deterministic online binary search tree (BST) that satisfies the unified bound of Iacono [SODA 2001], which subsumes the working-set and dynamic-finger bounds: it serves every sequence XX of mm searches on nn keys at total cost O(m+UB(X))O(m+\mathrm{UB}(X)), and every single search at cost O(log⁡n)O(\log n). Previously, no BST was known to satisfy the unified bound, even offline. As a consequence, the dynamic optimality conjecture implies Iacono's conjecture that splay trees satisfy the unified bound. We also show that the unified bound is O((m+n)(1+log⁡cσ))O((m+n)(1+\log c_σ)) on every sequence of searches that avoids a fixed permutation σσ, where cσc_σ is the Füredi-Hajnal limit of σσ. Hence every BST that satisfies the unified bound, including ours, serves such sequences at this cost. For permutations this bound is tight, and it improves the previous upper bound O(ncσ2)O(nc_σ^2) on the optimal cost, due to Berendsohn, Kozma and Opler [STOC 2024]. Finally, we extend the tree to support insertions and deletions: a sequence XX of mm operations, starting from n0n_0 keys, costs O(n0+m+UB(X))O(n_0+m+\mathrm{UB}(X)) in total, where UB\mathrm{UB} is now the extension of the unified bound to insertions and deletions by Bădoiu, Cole, Demaine and Iacono [TCS 2007]. Hence, if splay trees are dynamically optimal for searches, insertions and deletions, then they serve every such sequence at this total cost as well.

A PDF page turning into lines of clean text

Preparing the full text

It will appear here by itself. You can read the abstract meanwhile.