English

NP-Hardness and a PTAS for the Pinwheel Problem

Data Structures and Algorithms 2026-04-16 v1 Computational Complexity

Abstract

In the pinwheel problem, one is given an mm-tuple of positive integers (a1,,am)(a_1, \ldots, a_m) and asked whether the integers can be partitioned into mm color classes C1,,CmC_1,\ldots,C_m such that every interval of length aia_i has non-empty intersection with CiC_i, for i=1,2,,mi = 1, 2, \ldots, m. It was a long-standing open question whether the pinwheel problem is NP-hard. We affirm a prediction of Holte et al. (1989) by demonstrating, for the first time, NP-hardness of the pinwheel problem. This enables us to prove NP-hardness for a host of other problems considered in the literature: pinwheel covering, bamboo garden trimming, windows scheduling, recurrent scheduling, and the constant gap problem. On the positive side, we develop a PTAS for an approximate version of the pinwheel problem. Previously, the best approximation factor known to be achievable in polynomial time was 97\frac{9}{7}.

Keywords

Cite

@article{arxiv.2604.13974,
  title  = {NP-Hardness and a PTAS for the Pinwheel Problem},
  author = {Robert Kleinberg and Ahan Mishra},
  journal= {arXiv preprint arXiv:2604.13974},
  year   = {2026}
}

Comments

42 pages, 3 figures

R2 v1 2026-07-01T12:10:56.209Z