Skip to main navigation Skip to search Skip to main content

ONLINE LIST LABELING: BREAKING THE log2 n BARRIER

  • Michael A. Bender
  • , Alex Conway
  • , Martín Farach-Colton
  • , Hanna Komlós
  • , William Kuszmaul
  • , Nicole Wein
  • Cornell University
  • Polytechnic University
  • Harvard University
  • University of Michigan, Ann Arbor

Research output: Contribution to journalArticlepeer-review

2 Scopus citations

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 n items in an array of m 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))n, an upper bound of O(log2 n) on the relabeling cost has been known since 1981. A lower bound of Ω(log2 n) is known for deterministic algorithms and for so-called smooth algorithms, but the best general lower bound remains Ω(log n). The central open question in the field is whether O(log2 n) is optimal for all algorithms. In this paper, we give a randomized data structure that achieves an expected relabeling cost of O(log3/2 n) per operation. More generally, if m = (1+∊)n for ∊ = O(1), the expected relabeling cost becomes O(∊-1 log3/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 ∊ between 1/n1/3 and some sufficiently small positive constant, the optimal expected cost for history-independent list-labeling solutions is Θ(∊-1 log3/2 n).

Original languageEnglish
Pages (from-to)22-60-22-92
JournalSIAM Journal on Computing
Volume54
Issue number5
DOIs
StatePublished - 2025

Keywords

  • algorithms
  • data structures
  • history independence
  • order maintenance
  • packed memory array
  • randomized algorithms

Fingerprint

Dive into the research topics of 'ONLINE LIST LABELING: BREAKING THE log2 n BARRIER'. Together they form a unique fingerprint.

Cite this