English

Online List Labeling: Breaking the $\log^2n$ Barrier

Data Structures and Algorithms 2022-09-13 v3

Abstract

The online list labeling problem is an algorithmic primitive with a large literature of upper bounds, lower bounds, and applications. The goal is to store a dynamically-changing set of nn items in an array of mm slots, while maintaining the invariant that the items appear in sorted order, and while minimizing the relabeling cost, defined to be the number of items that are moved per insertion/deletion. For the linear regime, where m=(1+Θ(1))nm = (1 + \Theta(1)) n, an upper bound of O(log2n)O(\log^2 n) on the relabeling cost has been known since 1981. A lower bound of Ω(log2n)\Omega(\log^2 n) is known for deterministic algorithms and for so-called smooth algorithms, but the best general lower bound remains Ω(logn)\Omega(\log n). The central open question in the field is whether O(log2n)O(\log^2 n) is optimal for all algorithms. In this paper, we give a randomized data structure that achieves an expected relabeling cost of O(log3/2n)O(\log^{3/2} n) per operation. More generally, if m=(1+ε)nm = (1 + \varepsilon) n for ε=O(1)\varepsilon = O(1), the expected relabeling cost becomes O(ε1log3/2n)O(\varepsilon^{-1} \log^{3/2} n). Our solution is history independent, meaning that the state of the data structure is independent of the order in which items are inserted/deleted. For history-independent data structures, we also prove a matching lower bound: for all ϵ\epsilon between 1/n1/31 / n^{1/3} and some sufficiently small positive constant, the optimal expected cost for history-independent list-labeling solutions is Θ(ε1log3/2n)\Theta(\varepsilon^{-1}\log^{3/2} n).

Keywords

Cite

@article{arxiv.2203.02763,
  title  = {Online List Labeling: Breaking the $\log^2n$ Barrier},
  author = {Michael A. Bender and Alex Conway and Martín Farach-Colton and Hanna Komlós and William Kuszmaul and Nicole Wein},
  journal= {arXiv preprint arXiv:2203.02763},
  year   = {2022}
}

Comments

Full version for FOCS 2022 camera ready

R2 v1 2026-06-24T10:03:14.420Z