arXiv(opens in a new tab)cs.DSSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.06669

Tight Bounds on the Cost of Adaptivity for the Meyerson Sketch

Edith Cohen, Elena Gribelyuk, Pasin Manurangsi, Uri Stemmer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In online facility location, points arrive one at a time, and the algorithm must either open a facility at the arriving point or route the point to an existing facility. The Meyerson sketch opens a facility at each arriving point with probability proportional to the point's distance to the closest open facility, and requires no state beyond the set of open centers. Due to its simplicity, space efficiency, and strong guarantees against the offline optimum, the Meyerson sketch has become a workhorse of streaming and online clustering. In many such applications, however, the set of open facilities are visible to the process that generates the stream, which can adaptively select future points based on the algorithm's past random choices, voiding its classical guarantees. In this work, we quantify the effect of such adaptivity. We compare an adaptively generated run of the sketch against an oblivious replay, an independent execution, with fresh coins, on the very same generated sequence, and study the adaptivity ratio of expected adaptive cost to expected replay cost. We determine the worst-case ratio in both directions: adaptivity can neither inflate nor deflate the expected cost, or the number of open facilities, by more than an O(log⁡Δ/log⁡log⁡Δ)O(\log \Delta / \log \log \Delta) factor, where Δ\Delta is the aspect ratio of the input points (the ratio of the largest to the smallest pairwise distance). This is asymptotically tight as there are deterministic generators on the real line that inflate or deflate the cost by an Ω(log⁡Δ/log⁡log⁡Δ)\Omega(\log \Delta / \log \log \Delta) factor. We show that these robustness guarantees carry over to Meyerson-based sketches for approximate kk-clustering with sketch size O(klog⁡log⁡(n))O(k \log \log(n)).

1 Introduction

In the online facility location (OFL) problem, points of an underlying metric space (M,d)(\mathcal{M}, d) arrive one at a time; upon each arrival, the algorithm must irrevocably either open a facility at this point and pay a fixed price ff, or choose to route the point to the closest existing facility and pay for the routing distance. The total cost is defined as C=f⋅K+QC = f \cdot K + Q, where KK denotes the total number of opened facilities (centers) and QQ is the total routing cost. The task of the algorithm is to open a set of facilities such that the total cost is close to the offline optimum

OPTf(x)=min⁡F⊆M(f∣F∣+∑td(xt,F))(1)\mathrm{OPT}_{f}(x)=\min_{F\subseteq \mathcal{M}}\left(f|F|+\sum_{t} d(x_{t},F)\right) \tag{1}

on a given input sequence x=(x1,…xT)x = (x_1, \ldots x_T). A common performance measure of an online algorithm is its competitive ratio, defined as the supremum of E[C]/OPTf(x)\mathbb{E}[C]/\mathrm{OPT}_f(x) over all input sequences xx of length nn (with the expectation over the algorithm's coins).

*Google Research and Tel Aviv University. edith@cohenwang.com †Princeton University. eg5539@princeton.edu ‡Google Research. pasin@google.com §Tel Aviv University and Google Research. u@uri.co.il

Algorithm 1: The Meyerson sketch with facility price ff.

S←∅S \leftarrow \emptyset; foreach arriving point xx do d←d(x,S)d \leftarrow d(x, S) ; draw a fresh coin U∼Unif[0,1]U \sim \text{Unif}[0,1]; if U≤min⁡{1,d/f}U \leq \min\{1, d/f\} then | open a center: S←S∪{x}S \leftarrow S \cup \{x\}; else | route xx to its nearest center in SS, at cost dd;

References (44)