---
title: Pinwheel Scheduling
url: https://www.emergentmind.com/topics/pinwheel-scheduling
type: topic
---

# Pinwheel Scheduling

Pinwheel scheduling is a perpetual single-machine scheduling problem in which task \(i\), with period \(a_i\), must be executed at least once in every \(a_i\) consecutive time steps. In its standard form, an instance is a finite multiset or ordered tuple of positive integers, one task is scheduled per day, and the central analytical quantity is the density \(D(A)=\sum_i 1/a_i\). The subject has developed around three main themes: exact feasibility criteria and extremal thresholds, finite-state and complexity-theoretic structure, and a network of variants including covering, finite-horizon, real-period, combinatorial, and optimization forms. Two landmarks now anchor the field: the proof that every integer-period instance with density at most \(5/6\) is schedulable, settling the Chan–Chin conjecture, and the first NP-hardness theorem for the classical decision problem [2606.27104][2604.13974].

## 1. Classical formulation and state-space view

A classical pinwheel scheduling instance is given by positive integers \(A=(a_1,\ldots,a_k)\), often arranged in nondecreasing order. A schedule is an infinite sequence over \([k]=\{1,\dots,k\}\), or equivalently a function \(S:\mathbb Z\to [k]\), with exactly one task executed per day. Validity requires that task \(i\) appear at least once in every contiguous block of \(a_i\) days; in the formulation used by several papers, for every task \(i\) and every starting day \(m\), there exists \(t\in[m,m+a_i)\cap\mathbb Z\) such that \(S(t)=i\) [2111.01784].

The standard density is
\[
D(A)=\sum_{i=1}^k \frac{1}{a_i}.
\]
This is a necessary load condition: if \(D(A)>1\), then no schedule exists, because at most one task can be executed per day. The condition is not sufficient. Unschedulable families with density at or below \(1\) are fundamental to the theory; for example, \((2,3,a)\) is unschedulable for all \(a\), and \((2,3,6)\) has density \(1\) but is unschedulable [2606.27104].

A standard exact model uses a finite directed state graph. One representation stores, at time \(t\), the vector \(X(t)=(x_1,\ldots,x_k)\), where \(x_i\) is the number of days since task \(i\) was last executed, with valid states satisfying \(0\le x_i<a_i\). Another equivalent representation stores remaining waiting times. In either form, an instance is schedulable if and only if the corresponding state graph contains a directed cycle reachable from the initial state; consequently, if an instance is schedulable, then it has a periodic schedule [2111.01784].

The literature also uses the name **Windows Scheduling** for closely related formulations. In the inexact-period version, the time between consecutive executions of job \(j\) is at most \(p_j\); in the exact-period version, it must be exactly \(p_j\). For one machine and unit-length jobs, this exact-period model admits a number-theoretic reformulation via Partial Coding [1410.7237].

## 2. Density theory and sharp schedulability thresholds

Density is the organizing invariant of the classical theory. The long-standing Chan–Chin conjecture asserted that every integer-period instance with density at most \(5/6\) is schedulable. This is now a theorem:
\[
D(A)\le \frac56 \implies A \text{ is schedulable}.
\]
The bound is best possible because the family \((2,3,a)\) is unschedulable for all \(a\), and its density approaches \(1/2+1/3=5/6\) as \(a\to\infty\) [2606.27104].

The proof of the \(5/6\) theorem uses a fractional-period generalization together with weakening, splitting, folding, rounding, and exhaustive finite verification. In that framework, a task with real period \(a>0\) must appear at least \(\lfloor r/a\rfloor\) times in any \(r\)-day interval, equivalently at least \(s\) times in every interval \([m,m+sa)\) for integer \(s\ge 1\). Folding reduces arbitrary instances to bounded-period families, and a computer-assisted search at threshold \(\theta=22\) verifies the remaining finite set [2606.27104].

Before the full proof, the \(5/6\)-conjecture had already been attacked through structural computation. The notion of a **Pareto surface** formalizes the finite set of minimal schedulable instances under dominance for a fixed number of tasks. Using Pareto surfaces and a trie-based search with schedulability pruning, one work confirmed the \(5/6\)-conjecture for all instances with at most \(12\) tasks and computed the full Pareto surface for \(k\le 5\), obtaining a list of \(23\) periodic schedules that solves every schedulable instance with at most \(5\) tasks [2111.01784].

The universal threshold \(5/6\) is not the end of density theory. When all periods are bounded below by a larger minimum \(m\), stronger guarantees can hold. Defining \(G(m)\) as the largest real number such that every instance with all periods at least \(m\) and density at most \(G(m)\) is schedulable, the first strict improvement over \(5/6\) occurs at \(m=4\):
\[
G(4)\ge 0.84.
\]
This was proved by combining fold-based certification with an unfolding operation and a fast heuristic-based solver, showing that once all periods are at least \(4\), the guaranteed schedulable region is strictly larger than the universal one [2508.18422].

The same density program also yields special-case structure. A byproduct of the fractional-period framework is a simple proof that every instance with at most two distinct period values and density at most \(1\) is schedulable; the proof uses a circle-of-circumference-\(1\) construction equivalent to complementary Beatty-type scheduling [2606.27104].

## 3. Complexity landscape and algorithmic structure

For many years, the exact complexity status of the classical problem remained unsettled. A 2025 finite-variant paper still recorded as open whether classical Pinwheel Scheduling is NP-hard when the deadlines are explicitly listed, whether it lies in NP, and therefore whether it is PSPACE-complete as long conjectured [2507.11681]. The first of these questions has since been resolved: Pinwheel Scheduling is NP-hard [2604.13974].

The NP-hardness proof proceeds by refining an older reduction for Exact Pinwheel Scheduling and padding the constructed instance so that the output density is exactly \(1\). This density-\(1\) structure is important both for the reduction itself and for the transfer of hardness to related problems. The same work shows that **Dense Pinwheel Scheduling** is NP-complete, proves NP-hardness for pinwheel covering, bamboo garden trimming, windows scheduling, recurrent scheduling, and the constant gap problem, and at the same time develops a PTAS, indeed an EPTAS, for the approximate problem: for every fixed \(\epsilon>0\), there is a polynomial-time algorithm that either declares the instance unschedulable or certifies schedulability of the scaled instance \((1+\epsilon)A\) [2604.13974].

This yields a notable distinction between exact and approximate computation. The exact decision problem is NP-hard, but the approximate feasibility problem with uniform multiplicative slack admits arbitrarily fine polynomial-time approximation. The PTAS relies on a decomposition into big, medium, and small tasks, enumeration of periodic schedules for the big tasks, use of holidays to accommodate medium tasks, and density arguments for sufficiently large periods [2604.13974].

A different complexity perspective comes from Windows Scheduling. For the exact-period one-machine problem with unit-length jobs, Partial Coding and exact-period Windows Scheduling are polynomial-time interreducible. From this viewpoint, the single-machine exact-period problem does not admit a pseudo-polynomial-time algorithm unless SAT can be solved by a randomized method in expected time \(n^{O(\log n\log\log n)}\), and the same lower bound extends to the inexact-period version [1410.7237]. These results do not by themselves settle the exact classical complexity question, but they explain why the scheduling problem had resisted standard algorithmic classification.

The field also contains a substantial tradition of computer-assisted exact schedulability tests. In both the \(5/6\)-density proof and the covering-threshold proof, finite bounded-period families are certified by exhaustive state-graph search augmented with symmetry reduction, folding reductions, and witness reuse [2606.27104][2510.06533].

## 4. Generalizations beyond integer periods and single-task actions

One line of extension replaces integer periods by real periods. In the real-period model, task \(i\) with real period \(a_i\ge 1\) must appear at least \(l\) times in any consecutive \(\lceil l a_i\rceil\) days for every positive integer \(l\). This reduces to the usual definition when \(a_i\) is integral and captures genuinely stronger frequency constraints than a naive “once every \(a_i\) days” interpretation. For this model, it has been proved that any real-valued instance with three distinct period values and density at most \(5/6\) admits a valid schedule, and a corresponding real-period analogue of the Chan–Chin conjecture has been proposed [2510.24068].

Another extension replaces the “one task per day” machine model by arbitrary set systems. In **Combinatorial Pinwheel Scheduling (CPS)**, an instance is \((E,\mathcal I,a)\), where \((E,\mathcal I)\) is a set system and each time step schedules an independent set \(I_t\in\mathcal I\). The requirement is that each element \(e\in E\) appear at least once in every window of \(a(e)\) consecutive time steps. In this setting, density becomes the minimum \(\rho\) for which there exist coefficients \(\lambda(I)\ge 0\) whose total sum is \(\rho\) and whose aggregate support gives each element \(e\) frequency at least \(1/a(e)\). For matroid constraints, density at most \(1/2\) is sufficient for schedulability; for arbitrary set systems, no constant density threshold independent of \(|E|\) is possible, and the best guarantee scales as \(\Theta(\log |E|)\) [2602.11826].

The set-system viewpoint connects pinwheel scheduling to combinatorial bamboo garden trimming and to matroid algorithms. For uniform and partition matroids, polynomial-time height-\(2\) schedules are available; for graphic and laminar matroids, polynomial-time height-\(4\) schedules are obtained. The uniform-matroid algorithm is the **Fuse–Unfuse** schedule [2602.11826].

A further application-driven generalization appears in multi-hop wireless networks with hard deadlines. There, end-to-end delay bounds are expressed in terms of per-link maximum inter-scheduling times, and the resulting joint feasibility problem is a generalized pinwheel coloring problem under conflict-graph interference constraints. Under total interference, the formulation reduces to ordinary pinwheel scheduling; with general interference it becomes a link-coloring-and-period problem, again NP-hard, for which a decentralized polynomial-time heuristic is proposed [2604.17493].

## 5. Finite-horizon and covering variants

The most prominent finite-horizon analogue is the **\(k\)-Visits** problem. Given deadlines \(d_1,\ldots,d_n\), the task is to construct a schedule of length \(kn\) in which each task appears exactly \(k\) times and each occurrence is at most \(d_i\) positions away from the previous one, or from the beginning of the schedule for the first occurrence. The case \(k=1\) is trivial, but \(2\)-Visits is strongly NP-complete. The same line of work established a sharp dichotomy: if all deadlines are distinct, then \(2\)-Visits is solvable in linear time, whereas multiplicities make the problem hard [2507.11681].

Subsequent work strengthened this complexity picture by proving that \(2\)-Visits remains strongly NP-complete even when the maximum multiplicity of the input is \(2\). It also placed \(2\)-Visits in RP when the number of distinct deadlines per cluster of the discretized sequence is constant, generalized the positive results to a mixed \((1,2)\)-Visits model, and showed that the lower density threshold of \(2\)-Visits is at least
\[
\sqrt{2}-\frac12\approx 0.9142.
\]
More broadly, the lower density threshold of \(k\)-Visits approaches \(5/6\) as \(k\to\infty\), linking the finite and infinite theories [2604.16030].

The dual of classical pinwheel scheduling is the **covering** problem, also called discretized point patrolling. Here one daily task is assigned to agents under the constraint that agent \(i\) may perform the task at most once in any \(a_i\)-day interval. Its density uses the same sum \(D(A)=\sum_i 1/a_i\), but the extremal direction is reversed: the question is how large the density must be to force schedulability. The optimal covering threshold is
\[
\alpha^*=\sum_{i=1}^{\infty}\frac{1}{2^{i-1}+1}=1.264\ldots,
\]
and every covering instance with density at least \(\alpha^*\) is schedulable. The bound is tight because the family
\[
(2,3,5,\dots,2^{k-1}+1)
\]
is unschedulable and has density approaching \(\alpha^*\) from below [2510.06533].

The covering proof is structurally parallel to the packing proof, but not identical. It uses a real-valued extension, a folding lemma that reduces unschedulable instances to bounded ranges of periods, a finite exhaustive lemma on periods in \(\{3,\dots,20\}\), and an additional reduction that peels off the initial \(2,3,5,\dots\)-type prefix. A related presentation in the discretized point patrolling literature describes improved fold operations and density-loss accounting that also recover the same optimal threshold [2510.22060].

## 6. Optimization, approximations, and related models

The optimization counterpart of pinwheel scheduling is **Bamboo Garden Trimming (BGT)**. In the discrete model, bamboo \(i\) grows at rate \(h_i\), one bamboo may be trimmed to height zero per day, and the goal is to minimize the maximum height ever attained. The link to pinwheel scheduling is exact at the level of decision thresholds: if the maximum allowable height is \(G\), then the BGT instance corresponds to the pinwheel instance \((\lfloor G/h_i\rfloor)_i\) [2606.27104].

This reduction lets pinwheel theory translate into approximation algorithms. Using the \(5/6\)-density theorem, one paper gives a polynomial-time \(4/3\)-approximation algorithm for BGT [2606.27104]. A later work improves this to a \(9/7\)-approximation, again by combining fold-based pinwheel reasoning with lookup tables and special handling of low periods such as \(2\) and \(3\) [2510.22060]. Earlier, a pinwheel-based algorithm for BGT had already improved the approximation ratio below \(19/10\), proving a worst-case bound of \(32000/16947\approx 1.888\) and an asymptotic ratio converging to \(12/7\) when \(\sum_j h(j)\gg h(1)\) [2003.12460].

Pinwheel scheduling also serves as the star-graph special case of broader graph-theoretic scheduling models. In **Polyamorous Scheduling**, the tasks are edges of a graph and each day’s feasible action is a matching; the optimization version minimizes the maximum weighted waiting time between consecutive occurrences of the same edge. On a star graph, this becomes classical pinwheel scheduling in the decision form and bamboo garden trimming in the optimization form. The model introduces a generalized density notion, **poly density**, via an LP dual lower bound, and asks whether a constant feasibility threshold analogous to \(5/6\) exists in this graph setting [2403.00465].

The broader significance of pinwheel scheduling lies in this capacity to act simultaneously as a sharp extremal theory, a source of hardness reductions, and a reusable scheduling core. Its modern landscape includes an exact density threshold for the classical packing problem, an exact dual threshold for covering, finite-horizon variants with their own threshold behavior, generalizations to real periods and matroidal set systems, and approximation frameworks for optimization problems built on the same recurrent-service constraint [2606.27104][2510.06533][2604.13974].

Source: https://www.emergentmind.com/topics/pinwheel-scheduling