English

How Asymmetry Helps Buffer Management: Achieving Optimal Tail Size in Cup Games

Data Structures and Algorithms 2021-04-13 v1

Abstract

The cup game on nn cups is a multi-step game with two players, a filler and an emptier. At each step, the filler distributes 11 unit of water among the cups, and then the emptier selects a single cup to remove (up to) 11 unit of water from. There are several objective functions that the emptier might wish to minimize. One of the strongest guarantees would be to minimize tail size, which is defined to be the number of cups with fill 22 or greater. A simple lower-bound construction shows that the optimal tail size for deterministic emptying algorithms is Θ(n)\Theta(n), however. We present a simple randomized emptying algorithm that achieves tail size O~(logn)\tilde{O}(\log n) with high probability in nn for polyn\operatorname{poly} n steps. Moreover, we show that this is tight up to doubly logarithmic factors. We also extend our results to the multi-processor cup game, achieving tail size O~(logn+p)\tilde{O}(\log n + p) on pp processors with high probability in nn. We show that the dependence on pp is near optimal for any emptying algorithm that achieves polynomial-bounded backlog. A natural question is whether our results can be extended to give unending guarantees, which apply to arbitrarily long games. We give a lower bound construction showing that no monotone memoryless emptying algorithm can achieve an unending guarantee on either tail size or the related objective function of backlog. On the other hand, we show that even a very small (i.e., 1/polyn1 / \operatorname{poly} n) amount of resource augmentation is sufficient to overcome this barrier.

Keywords

Cite

@article{arxiv.2104.05172,
  title  = {How Asymmetry Helps Buffer Management: Achieving Optimal Tail Size in Cup Games},
  author = {William Kuszmaul},
  journal= {arXiv preprint arXiv:2104.05172},
  year   = {2021}
}
R2 v1 2026-06-24T01:03:48.884Z