English

Achieving Optimal Backlog in Multi-Processor Cup Games

Data Structures and Algorithms 2019-04-08 v1

Abstract

The single- and multi- processor cup games can be used to model natural problems in areas such as processor scheduling, deamortization, and buffer management. At the beginning of the single-processor cup game, nn cups are initially empty. In each step of the game, a filler distributes 11 unit of water among the cups, and then an emptier selects a cup and removes 1+ϵ1 + \epsilon units from that cup. The goal of the emptier is to minimize the amount of water in the fullest cup, also known as the backlog. It is known that the greedy algorithm (i.e., empty the fullest cup) achieves backlog O(logn)O(\log n), and that no deterministic algorithm can do better. We show that the performance of the greedy algorithm can be greatly improved with a small amount of randomization: After any step ii, and for any kΩ(logϵ1)k \ge \Omega(\log \epsilon^{-1}), the emptier achieves backlog at most O(k)O(k) with probability at least 1O(22k)1 -O(2^{-2^k}). Whereas bounds for the single-processor cup game have been known for more than fifteen years, proving nontrivial bounds on backlog for the multi-processor extension has remained open. We present a simple analysis of the greedy algorithm for the multi-processor cup game, establishing a backlog of O(ϵ1logn)O(\epsilon^{-1} \log n), as long as δ\delta, the game's other speed-augmentation constant, is at least 1/poly(n)1/poly(n). Turning to randomized algorithms, we encounter an unexpected phenomenon: When the number of processors pp is large, the backlog after each step drops to \emph{constant} with large probability. Specifically, we show that if δ\delta and ϵ\epsilon satisfy reasonable constraints, then there exists an algorithm that bounds the backlog after a given step by three or less with probability at least 1O(exp(Ω(ϵ2p))1 - O(\exp(-\Omega(\epsilon^2 p)). We further extend the guarantees of our randomized algorithm to consider larger backlogs.

Keywords

Cite

@article{arxiv.1904.02861,
  title  = {Achieving Optimal Backlog in Multi-Processor Cup Games},
  author = {Michael A. Bender and Martin Farach-Colton and William Kuszmaul},
  journal= {arXiv preprint arXiv:1904.02861},
  year   = {2019}
}
R2 v1 2026-06-23T08:29:59.089Z