Hardness and Fixed Parameter Tractability for Pinwheel Scheduling Problems
Abstract
In the Pinwheel Packing problem, we are given a set of recurring tasks, each associated with a positive integer for task . The objective is to select one task to perform each day such that every task is performed at least once within every consecutive days. The exact computational complexity of this problem, where , has remained an open question for more than 30 years; in particular, it is still unknown whether the problem is -hard. The first contribution of this paper is to show that Pinwheel Packing cannot be solved in polynomial time under a standard complexity assumption, improving upon the hardness result shown by Jacobs and Longo. Additionally, we present fixed-parameter algorithms for variants of Pinwheel Packing, parameterized by the number of tasks.
Keywords and phrases:
Pinwheel Scheduling, Polynomial-time Solvability, Packing and Covering, Fixed Parameter AlgorithmsFunding:
Yusuke Kobayashi: JSPS KAKENHI Grant Numbers JP22H05001 and JP24K02901.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithms ; Theory of computation Computational complexity and cryptographyEditors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung TsaiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
1.1 Pinwheel Scheduling
The (packing version of) Pinwheel Scheduling problem was introduced by Holte et al. [12] in 1989 as a formalization of a real-time scheduling problem. In the problem, we are given recurring tasks and a positive integer for each task . The objective is to select one task to perform each day so that each task is performed at least once every days. In other words, we want to find pairwise disjoint sets such that
| (1) |
for all and , where represents the set of days on which task is performed. Note that each can be an infinite set. A natural computational problem is to determine the existence of such sets , which is formally described as follows. Note that we call this problem Pinwheel Packing in this paper, because we will discuss the corresponding covering variant later.
| Pinwheel Packing |
|---|
| Input: A sequence of positive integers . |
| Task: Determine whether there exist pairwise disjoint sets such that for all and . |
Despite the simplicity and naturalness of the problem setting, little is known about the computational complexity of this problem. It has been shown in [12, Corollary 2.2] that Pinwheel Packing is in ; however, it is unknown whether this problem is in . Furthermore, it is unknown whether this problem is -hard. See [19] for details.
Since each task has to be performed on at least a fraction of a sufficiently long consecutive sequence of days, if is a yes-instance of Pinwheel Packing, then (called the density of ) is at most . An instance is called dense if its density is exactly . As we see in Section 1.2, for dense instances, Pinwheel Packing is equivalent to several other problems, highlighting that dense instances form an interesting special case. However, the exact complexity of dense instances of Pinwheel Packing has been open for more than 30 years. In fact, it is noted in [12, Section 4] that the -hardness of this problem remains an open question, and it is explicitly conjectured by Kawamura and Soejima [21, Conjecture 19] that Pinwheel Packing for dense instances is -complete. Note that the -hardness has been shown when the input sequence is represented in a concise notation; see [12, Theorem 4.12] and [19, Theorem 5]. Jacobs and Longo showed in their preprint [16] that (dense instances of) Pinwheel Packing cannot be solved in polynomial time unless with variables has a randomized algorithm running in expected time .
1.2 Exact Packing and Covering
As mentioned in the previous subsection, for dense instances, Pinwheel Packing is equivalent to several other problems.
Observe that, if form a solution for a dense instance of Pinwheel Packing, then they satisfy (1) with equality. Using this observation, for dense instances, Pinwheel Packing is equivalent to the following exact variant.
| Exact Pinwheel Packing |
|---|
| Input: A sequence of positive integers . |
| Task: Determine whether there exist pairwise disjoint sets such that for all and . |
Note that the desired condition of this problem means that each task is performed exactly once every days. Therefore, satisfies for all if and only if it is a residue class modulo , i.e., for some integer . Independently of its connection to Pinwheel Packing, Exact Pinwheel Packing is an interesting problem in its own right. Indeed, Exact Pinwheel Packing has been studied under the name (-server) periodic maintenance problem [3, 25, 30] in the context of scheduling problems, and its solution has also garnered attention in discrete mathematics under the name disjoint residue classes [15, 21, 28]. It is shown in [3, 16, 21, 25] that Exact Pinwheel Packing is -complete, where we note that the input is not necessarily dense.
We can also consider a problem that is, in a sense, dual to (Exact) Pinwheel Packing, which is called (Exact) Pinwheel Covering [19]. Consider a scenario where a single task must be performed every day, and it is to be handled by agents. Each agent is assigned a positive integer , which represents the condition that the agent can perform the task at most once (or exactly once) every days. In this setting, the problem of determining the assignment of agents corresponds to finding a collection of sets such that and
for all and , where represents the set of days on which agent performs the task. That is, the problem is formally described as follows.
| Pinwheel Covering (resp. Exact Pinwheel Covering) |
|---|
| Input: A sequence of positive integers . |
| Task: Determine whether there exist sets such that and (resp. ) for all and . |
Pinwheel Covering was introduced and studied under the name point patrolling in [21]. Similarly to the packing problem, this problem is in , and it is unknown whether this problem is -hard. In contrast, very recently, it was shown that Exact Pinwheel Covering is -hard [20]. Note that feasible solutions for Exact Pinwheel Covering are known as Erdős covering systems and have been actively studied by number theorists; see [2, 14].
Since each agent can perform a task on at most a fraction of a sufficiently long consecutive sequence of days, if is a yes-instance of Pinwheel Covering, then its density is at least . Similarly to the packing problem, if the density is exactly , then Pinwheel Covering and Exact Pinwheel Covering are equivalent. Furthermore, if the density of is exactly and satisfy for all and , then we see that if and only if are pairwise disjoint. By combining these facts, we arrive at the following observation.
Observation 1 (see [19, Section 5]).
For instances with density exactly , the four above problems, i.e., (Exact) Pinwheel Packing and (Exact) Pinwheel Covering, coincide.
For brevity, Pinwheel Packing, when restricted to dense instances, is referred to as Dense Pinwheel Packing. Then, Observation 1 implies that Dense Pinwheel Packing is a special case of all the four above problems.
1.3 Our Contributions
As described in Section 1.1, it was shown by Jacobs and Longo [16] that Dense Pinwheel Packing cannot be solved in polynomial time unless with variables has a randomized algorithm running in expected time . The first contribution of this paper is to strengthen this result by showing that Dense Pinwheel Packing cannot be solved in polynomial time under a weaker complexity assumption, partially addressing the open question in [12, Section 4] and [21, Conjecture 19].
Theorem 2.
Dense Pinwheel Packing cannot be solved in polynomial time unless .
Here, means that every problem in can be solved in time, where is the input size of the problem. The assumption is weaker than the assumption in [16] in two key aspects: the running time is improved from to , and our assumption does not rely on randomization. Note that the assumption is weaker than the Exponential Time Hypothesis (ETH) and (see Corollary 10), while it is stronger than . Theorem 2 implies that Pinwheel Packing and Pinwheel Covering cannot be solved in polynomial time under the same assumption.
Corollary 3.
Neither Pinwheel Packing nor Pinwheel Covering can be solved in polynomial time unless .
In our proof for Theorem 2, we refine the argument in [16]. We first prove that Exact Pinwheel Packing is hard even when is not particularly large (see Theorem 6), where denotes the least common multiple of for . We then reduce Exact Pinwheel Packing to Dense Pinwheel Packing by appending multiple copies of integer , thereby proving the hardness of Dense Pinwheel Packing. The primary technical challenge lies in ensuring that does not become excessively large.
To achieve this, Jacobs and Longo [16] reduce an -hard problem of size to a new problem called Partial Coding, and then further reduce it to Exact Pinwheel Packing. These reductions show that Exact Pinwheel Packing is hard even when . In contrast, we directly and carefully reduce an -hard problem to Exact Pinwheel Packing, which enables us to achieve a tighter bound of . To derandomize our reduction step, we utilize a sophisticated tool known as -universal sets [26] in a non-trivial manner, which constitutes the most technical aspect of our proof. For details, see Section 2.
Theorem 2 suggests that (Exact) Pinwheel Packing and (Exact) Pinwheel Covering are unlikely to be solvable in polynomial time. It is then natural to consider the fixed-parameter tractability of these problems. Indeed, Gąsieniec et al. [10] showed that Pinwheel Packing can be solved in FPT time when parameterized by . Our second contribution is to show that the remaining three variants can also be solved in FPT time with respect to the parameter .
Theorem 4.
Pinwheel Covering and Exact Pinwheel Covering can be solved in time, where is the input size of the problem.
Theorem 5.
Exact Pinwheel Packing can be solved in time, where is the input size of the problem.
We here describe proof ideas for these theorems, while formal proofs are given in Section 3. Our proof for Theorem 4 is based on the following intuition: if some is extremely large, then removing does not affect the feasibility of the problems. Our technical contribution lies in formalizing this intuition. We then show that it is sufficient to consider the case where each is bounded by a function of , leading to FPT algorithms.
It should be noted that this argument does not apply to Exact Pinwheel Packing, as removing a large could affect the feasibility of the problem. For instance, if consists of two large integers and that are coprime, then is a no-instance. However, removing either or would result in a yes-instance. Therefore, we adopt a completely different approach to obtain Theorem 5. We observe that a solution to Exact Pinwheel Packing consists of sets , where each set is determined by an integer . Treating as integer variables, we show that the constraints for can be formulated as an integer linear program by introducing several auxiliary variables. Since the integer linear programming problem can be solved in FPT time, parameterized by the number of variables, this yields an FPT algorithm for Exact Pinwheel Packing.
Moreover, to highlight the similarities and differences between Pinwheel Packing and (Exact) Pinwheel Covering, an FPT algorithm for Pinwheel Packing with an explicit running time bound is provided in Appendix A.
1.4 Related Work
A generalization of Pinwheel Packing has been studied under the name of Windows Scheduling Problem. While Pinwheel Packing can be viewed as a scheduling problem involving a single machine where all tasks have the same size, Windows Scheduling Problem extends this to a setting with multiple machines and tasks of varying sizes [4, 5, 16, 22].
Bamboo Garden Trimming problem is an optimization variant of Pinwheel Packing. Here, the objective is to find the smallest positive number such that is a yes-instance of Pinwheel Packing. Hardness results and approximation algorithms have been investigated for this problem [9, 11, 29].
For Pinwheel Packing, there has been extensive research on sufficient conditions for the density of the input to be a yes-instance. It is not so difficult to show that is a yes-instance if its density is at most [12]. A central question in this area is whether the same statement holds when is replaced with a larger number . The maximum such number is called the density threshold. Since is a no-instance with a density of for any integer , the density threshold is at most . Building on extensive research on the density threshold [6, 7, 10, 24], Kawamura [18] recently showed that the density threshold is exactly , resolving the conjecture proposed by Chan and Chin [6]. A threshold depending on the smallest element in is investigated in [11]. It is also shown that if consists of at most two distinct values and its density is at most , then it is a yes-instance [13].
2 Hardness Results
The objective of this section is to show the hardness of Dense Pinwheel Packing (Theorem 2). To achieve this, we reduce a well-known -hard problem called -Coloring in Graphs with Maximum Degree Four; see [8]. In -Coloring in Graphs with Maximum Degree Four, the input is a graph with maximum degree four and the objective is to decide whether is -colorable, that is, to decide whether we can color with three colors so that adjacent vertices have different colors.
We first show in Section 2.1 that -Coloring in Graphs with Maximum Degree Four with vertices can be reduced to Exact Pinwheel Packing with . Recall that denotes the least common multiple of for . Then, in Section 2.2, we reduce Exact Pinwheel Packing with to Dense Pinwheel Packing of size .
2.1 Reduction to Exact Pinwheel Packing
Theorem 6.
Let be a graph with whose maximum degree is four. In time, we can construct a sequence of positive integers with such that is -colorable if and only if is a yes-instance of Exact Pinwheel Packing.
Proof.
We give a reduction from -Coloring in Graphs with Maximum Degree Four to Exact Pinwheel Packing. It suffices to consider the case where is sufficiently large.
Reduction.
Let be a graph with whose maximum degree is four. We first construct a set and a family of subsets of by applying the following technical lemma, whose proof is postponed to Section 2.3.
Lemma 7.
Let be a graph with whose maximum degree is four. In time, we can construct a set with and its subsets each indexed by such that vertices and are adjacent in if and only if .
We pick distinct primes indexed by such that for each . Note that such primes exist when is sufficiently large, because the prime number theorem guarantees that, for any positive integer , there are primes less than or equal to . For every , let
Then, we obtain an instance of Exact Pinwheel Packing. The construction can be done in -time, and
Completeness.
We show that if is -colorable, then is a yes-instance of Exact Pinwheel Packing. Suppose has a -coloring . Let be a bijection from to . For each , let be an integer such that
| (2) |
and
| (3) |
whose existence is guaranteed by the Chinese remainder theorem. Let for . We claim that is a solution to the Exact Pinwheel Packing instance , that is, holds for any pair of distinct . We consider the following two cases separately.
-
Suppose that and are adjacent in . Then, we have as is a coloring, and hence by (2). Thus, for all ,
because both and are divisible by . This shows that .
Soundness.
We show that if is a yes-instance of Exact Pinwheel Packing, then is -colorable. Suppose that is a solution to the Exact Pinwheel Packing instance . For each , since is a residue class modulo , there exists an integer such that . For , let be the integer in such that . This defines a function . We claim that is a coloring of . Let be vertices that are adjacent to each other. Then, we have , and hence , where denotes the greatest common divisor. Since is equivalent to by the Chinese remainder theorem (see e.g. [3, Lemma 12]), we obtain
Therefore, is a -coloring of .
Remark 8.
Theorem 6 gives an alternative proof of the -completeness of Exact Pinwheel Packing, which has already been shown in [3, 16, 21, 25]. The condition is not required to prove the -completeness of Exact Pinwheel Packing. However, it is used to show the hardness of Dense Pinwheel Packing in the next subsection.
2.2 Hardness of Dense Pinwheel Packing
In this subsection, we prove the hardness of Dense Pinwheel Packing using Theorem 6.
Theorem 9.
Let be a graph with whose maximum degree is four. In time, we can construct an instance of Dense Pinwheel Packing such that , for each , and is -colorable if and only if is a yes-instance of Dense Pinwheel Packing.
Proof.
Let be a graph with whose maximum degree is four. By Theorem 6, in time, we construct a sequence of positive integers with such that is -colorable if and only if is a yes-instance of Exact Pinwheel Packing. We may assume that the density of is at most , since otherwise we can just return a trivial no-instance.
We construct an instance of Dense Pinwheel Packing from by appending multiple copies of integer so that the density becomes . That is, we define by
Then, we see that and for each . This implies that can be constructed in time.
It remains to show that is -colorable if and only if is a yes-instance of Dense Pinwheel Packing. To this end, we prove that is a yes-instance of Exact Pinwheel Packing if and only if is a yes-instance of Dense Pinwheel Packing.
Suppose first that is a yes-instance of Dense Pinwheel Packing and let be a solution for it. Then, is a solution to the Exact Pinwheel Packing instance .
Suppose next that is a yes-instance of Exact Pinwheel Packing and let be a solution for it. Since each is a residue class modulo , it is the union of residue classes modulo . Then, is the union of residue classes modulo . Therefore, we can take residue classes modulo so that is a solution to the Dense Pinwheel Packing instance .
We are now ready to prove Theorem 2, which we restate here.
Theorem 2. [Restated, see original statement.]
Dense Pinwheel Packing cannot be solved in polynomial time unless .
Proof.
We prove assuming that Dense Pinwheel Packing can be solved in polynomial time. Suppose we are given an instance of a problem in whose input size is . Then, we can construct an equivalent instance of -Coloring in Graphs with Maximum Degree Four whose size is , because -Coloring in Graphs with Maximum Degree Four is NP-hard (see [8]). By Theorem 9, we construct an equivalent instance of Dense Pinwheel Packing whose size is . These reductions show that, if Dense Pinwheel Packing can be solved in polynomial time, then the original problem in can be solved in time. Therefore, holds under the assumption that Dense Pinwheel Packing can be solved in polynomial time.
Using the same reduction, we can also show that Dense Pinwheel Packing cannot be solved in quasi-polynomial time (i.e., time) under a stronger complexity assumption. Note that the same hardness result holds also for Pinwheel Packing and Pinwheel Covering, because Dense Pinwheel Packing is a special case of these problems.
Corollary 10.
Dense Pinwheel Packing cannot be solved in quasi-polynomial time unless , where is the class of problems that can be solved in quasi-polynomial time, i.e., .
Proof.
As in the proof of Theorem 2, any problem in with input size can be reduced to Dense Pinwheel Packing with size . If Dense Pinwheel Packing can be solved in quasi-polynomial time, then the original problem can be solved in time. Therefore, holds under the assumption that Dense Pinwheel Packing can be solved in quasi-polynomial time.
2.3 Proof of Lemma 7
In this subsection, we give a proof of Lemma 7. Let be a graph with whose maximum degree is four. A vertex subset is called an independent set if no two vertices in are adjacent to each other. Our idea is to find a family of independent sets in such that
- (I)
-
for any pair of non-adjacent vertices , there exists such that .
Claim 11.
Suppose we are given an independent set family of size with property (I). Then, in polynomial time, we can construct a set and a subset for each satisfying the conditions in Lemma 7.
Proof of Claim 11.
Let be an independent set family of size with property (I). Then, we can simply set and let for . We easily see that such and satisfy the conditions in Lemma 7 as follows.
-
It is obvious that .
-
If vertices and are adjacent, then they are not contained in the same independent set in , and hence .
-
If vertices and are not adjacent, then there must exist an independent set such that by property (I), and hence .
This completes the proof of the claim.
To find an independent set family of size that satisfies property (I), we use an argument inspired by the color-coding technique [1]. For every , let denote its closed neighborhood, i.e., . Observe that for any distinct vertices as is a graph with maximum degree four. We show that it suffices to construct a family of vertex subsets with such that
- (U)
-
for any pair of distinct vertices , there exists a vertex subset such that .
Claim 12.
Suppose we are given a family of vertex subsets that satisfies property (U). Then, in polynomial time, we can construct an independent set family of size at most with property (I).
Proof of Claim 12.
For each , let be an inclusionwise maximal independent set in subject to . Then, set , which can be computed in polynomial time. It is obvious that .
Let be a pair of distinct non-adjacent vertices. By property (U), there exists a vertex subset such that . Since any maximal independent set contained in contains both and , we obtain . This shows that satisfies property (I).
Probabilistic Construction of
Consider a random vertex subset that contains each vertex independently with probability . Then, for any pair of distinct vertices , holds with probability
We pick such a random vertex subset independently many times to obtain a family . Then, for a pair of distinct vertices , holds for every with probability at most
By the union bound, with probability at least , satisfies property (U). When , we can generate such a family with constant probability in polynomial time.
Deterministic Construction of
We use the -universal sets to construct a desired family deterministically.
Definition 13 (-universal set).
For positive integers and , an -universal set is a set of vectors such that for any index set of size , the projection of on contains all possible configurations.
Theorem 14 ([26, Theorem 2]).
For any positive integers and with , an -universal set of cardinality can be constructed deterministically in time .
Setting and , by Theorem 14, we construct an -universal set of size in time . Using an arbitrary bijection from to , can be regarded as a subset of . By identifying a subset of and its characteristic vector in , defines a family . Then, .
We see that satisfies property (U) as follows. Let be distinct non-adjacent vertices. Since is a -universal set and , there exists a vector whose projection on is the characteristic vector of . This means that the set corresponding to satisfies .
3 Fixed Parameter Algorithms
In this section, we present fixed parameter algorithms for (Exact) Pinwheel Covering and Exact Pinwheel Packing. We prove Theorems 4 and 5 in Sections 3.1 and 3.2, respectively.
3.1 Pinwheel Covering and Exact Pinwheel Covering
In this subsection, we deal with Pinwheel Covering and Exact Pinwheel Covering simultaneously and prove Theorem 4. We first present the following claim. Although this claim was already shown in [21, Section 4.1] for Pinwheel Covering, we here give a proof for completeness.
Claim 15 ([21, Section 4.1]).
Pinwheel Covering and Exact Pinwheel Covering can be solved in time.
Proof of Claim 15.
We first consider Pinwheel Covering. Construct a digraph with vertices, each of which corresponds to a -tuple with for each . This vertex corresponds to a state in which agent must wait for days before handling the task again. We add an arc from a vertex to a vertex when there is such that , , and for . Since a feasible solution of Pinwheel Covering corresponds to an infinite walk in , is a yes-instance if and only if contains a dicycle. This can be checked in time.
To deal with Exact Pinwheel Covering, we modify the definition of the edge set as follows: we add an arc from a vertex to a vertex when there is such that , , and or for .
Then, is a yes-instance if and only if the digraph contains a dicycle. This can be checked in time.
By this claim, to obtain an FPT algorithm for (Exact) Pinwheel Covering, it is sufficient to bound each by a function of . To achieve this, we prove the following two claims.
Claim 16.
Suppose that is a no-instance of (Exact) Pinwheel Covering and is a family of subsets of such that
for all and . Then, no consecutive integers are covered by , that is,
| (4) |
for all .
Proof of Claim 16.
Suppose that is a no-instance of (Exact) Pinwheel Covering. Then, the digraph in the proof of Claim 15 contains no dicycle. Therefore, the digraph contains no walk of length , which means that no consecutive integers are covered by .
Claim 17.
Let be a sequence of positive integers with , and let . If is a yes-instance of (Exact) Pinwheel Covering and is a no-instance of (Exact) Pinwheel Covering, then .
Proof of Claim 17.
Let be a feasible solution for the instance . Since is a no-instance of (Exact) Pinwheel Covering, by Claim 16, no consecutive integers are covered by . Therefore, in any consecutive integers, at least one integer is covered by . This implies that
and hence .
We are now ready to prove Theorem 4, which we restate here.
Theorem 4. [Restated, see original statement.]
Pinwheel Covering and Exact Pinwheel Covering can be solved in time, where is the input size of the problem.
Proof.
Let be an instance of (Exact) Pinwheel Covering. Without loss of generality, we may assume that . It suffices to consider the case where , since otherwise we can immediately conclude that is a no-instance.
If for every , then we can check the feasibility of in time by Claim 15. Otherwise, let be the minimum integer with , which can be computed in time. Then, we obtain
| (5) |
where the last inequality is by the minimality of and . We observe that is a yes-instance if and only if is a yes-instance, as the “if” part is trivial and the “only if” part follows from Claim 17 and (5). We can check whether is a yes-instance or not in time by Claim 15, and this running time is bounded by .
3.2 Exact Pinwheel Packing
In this subsection, we deal with Exact Pinwheel Packing and prove Theorem 5.
Theorem 5. [Restated, see original statement.]
Exact Pinwheel Packing can be solved in time, where is the input size of the problem.
Proof.
Let be an instance of Exact Pinwheel Packing. Recall that the objective is to find pairwise disjoint sets such that is a residue class modulo for . This is equivalent to finding for such that
| (6) |
for all distinct . By the Chinese remainder theorem (see e.g. [3, Lemma 12]), (6) is equivalent to
| (7) |
We now reduce this problem to the integer linear programming problem. We treat as integer variables. In addition to these, for all distinct , we introduce new integer variables and , and consider the following linear constraints:
| (8) | |||
| (9) |
Then, we obtain an integer linear program with variables and constraints. Since and satisfy (7) if and only if (8) and (9) hold for some integers and , Exact Pinwheel Packing is reduced to the integer linear program defined by (8) and (9).
References
- [1] Noga Alon, Raphael Yuster, and Uri Zwick. Color-coding. J. ACM, 42(4):844–856, July 1995. doi:10.1145/210332.210337.
- [2] Paul Balister. Erdős Covering Systems, pages 31–54. London Mathematical Society Lecture Note Series. Cambridge University Press, 2024.
- [3] Amotz Bar-Noy, Randeep Bhatia, Joseph Naor, and Baruch Schieber. Minimizing service and operation costs of periodic scheduling. Mathematics of Operations Research, 27(3):518–544, 2002. doi:10.1287/moor.27.3.518.314.
- [4] Amotz Bar-Noy and Richard E. Ladner. Windows scheduling problems for broadcast systems. SIAM Journal on Computing, 32(4):1091–1113, 2003. doi:10.1137/S009753970240447X.
- [5] Amotz Bar-Noy, Richard E. Ladner, and Tami Tamir. Windows scheduling as a restricted version of bin packing. ACM Trans. Algorithms, 3(3):Article 28, 2007. doi:10.1145/1273340.1273344.
- [6] Mee Yee Chan and Francis Chin. Schedulers for larger classes of pinwheel instances. Algorithmica, 9:425–462, 1993. doi:10.1007/BF01187034.
- [7] Peter C. Fishburn and J. C. Lagarias. Pinwheel scheduling: Achievable densities. Algorithmica, 34(1):14–38, 2002. doi:10.1007/S00453-002-0938-9.
- [8] M. R. Garey and D. S. Johnson. Computers and intractability: A guide to the theory of NP-completeness. W.H. Freeman and Co, 2003.
- [9] Leszek Gąsieniec, Ralf Klasing, Christos Levcopoulos, Andrzej Lingas, Jie Min, and Tomasz Radzik. Bamboo garden trimming problem (perpetual maintenance of machines with different attendance urgency factors). In Bernhard Steffen, Christel Baier, Mark van den Brand, Johann Eder, Mike Hinchey, and Tiziana Margaria, editors, SOFSEM 2017: Theory and Practice of Computer Science, pages 229–240, Cham, 2017. Springer International Publishing. doi:10.1007/978-3-319-51963-0_18.
- [10] Leszek Gąsieniec, Benjamin Smith, and Sebastian Wild. Towards the 5/6-density conjecture of pinwheel scheduling. In Cynthia A. Phillips and Bettina Speckmann, editors, Proceedings of the Symposium on Algorithm Engineering and Experiments, ALENEX 2022, Alexandria, VA, USA, January 9-10, 2022, pages 91–103. SIAM, 2022. doi:10.1137/1.9781611977042.8.
- [11] Leszek Gąsieniec, Tomasz Jurdziński, Ralf Klasing, Christos Levcopoulos, Andrzej Lingas, Jie Min, and Tomasz Radzik. Perpetual maintenance of machines with different urgency requirements. Journal of Computer and System Sciences, 139:103476, 2024. doi:10.1016/j.jcss.2023.103476.
- [12] Robert Holte, Aloysius Mok, Louis Rosier, Igor Tulchinsky, and Donald Varvel. The pinwheel: a real-time scheduling problem. In Proceedings of the Twenty-Second Annual Hawaii International Conference on System Sciences. Volume II: Software Track, volume 2, pages 693–702 vol.2, 1989. doi:10.1109/HICSS.1989.48075.
- [13] Robert Holte, Louis Rosier, Igor Tulchinsky, and Donald Varvel. Pinwheel scheduling with two distinct numbers. Theoretical Computer Science, 100(1):105–135, 1992. doi:10.1016/0304-3975(92)90365-M.
- [14] Bob Hough. Solution of the minimum modulus problem for covering systems. Annals of Mathematics, 181(1):361–382, 2015. doi:10.4007/annals.2015.181.1.6.
- [15] A.P. Huhn and L. Megyesi. On disjoint residue classes. Discrete Mathematics, 41(3):327–330, 1982. doi:10.1016/0012-365X(82)90030-9.
- [16] Tobias Jacobs and Salvatore Longo. A new perspective on the windows scheduling problem, 2014. arXiv:1410.7237.
- [17] Ravi Kannan. Minkowski’s convex body theorem and integer programming. Mathematics of Operations Research, 12(3):415–440, 1987. doi:10.1287/moor.12.3.415.
- [18] Akitoshi Kawamura. Proof of the density threshold conjecture for pinwheel scheduling. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, pages 1816–1819, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3618260.3649757.
- [19] Akitoshi Kawamura. Perpetual scheduling under frequency constraints. In Shin-ichi Minato, Takeaki Uno, Norihito Yasuda, Takashi Horiyama, Ken-ichi Kawarabayashi, Shigeru Yamashita, and Hirotaka Ono, editors, Algorithmic Foundations for Social Advancement: Recent Progress on Theory and Practice. Springer, 2025. doi:10.1007/978-981-96-0668-9.
- [20] Akitoshi Kawamura, Yosuke Kusano, and Yusuke Kobayashi. Pinwheel covering. In The 14th International Conference on Algorithms and Complexity (CIAC), pages 185–199, 2025. doi:10.1007/978-3-031-92935-9_12.
- [21] Akitoshi Kawamura and Makoto Soejima. Simple strategies versus optimal schedules in multi-agent patrolling. Theoretical Computer Science, 839:195–206, 2020. doi:10.1016/j.tcs.2020.07.037.
- [22] Jan Korst, Emile Aarts, and Jan Karel Lenstra. Scheduling periodic tasks. INFORMS Journal on Computing, 8(4):428–435, 1996. doi:10.1287/ijoc.8.4.428.
- [23] Hendrik W Lenstra Jr. Integer programming with a fixed number of variables. Mathematics of operations research, 8(4):538–548, 1983. doi:10.1287/moor.8.4.538.
- [24] Shun-Shii Lin and Kwei-Jay Lin. A pinwheel scheduler for three distinct numbers with a tight schedulability bound. Algorithmica, 19:411–426, 1997. doi:10.1007/PL00009181.
- [25] Al Mok, Louis Rosier, Igor Tulchinsky, and Donald Varvel. Algorithms and complexity of the periodic maintenance problem. Microprocessing and Microprogramming, 27(1):657–664, 1989. Fifteenth EUROMICRO Symposium on Microprocessing and Microprogramming. doi:10.1016/0165-6074(89)90128-2.
- [26] Moni Naor, Leonard J Schulman, and Aravind Srinivasan. Splitters and near-optimal derandomization. In Proceedings of IEEE 36th Annual Foundations of Computer Science, pages 182–191. IEEE, 1995. doi:10.1109/SFCS.1995.492475.
- [27] Victor Reis and Thomas Rothvoss. The subspace flatness conjecture and faster integer programming. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 974–988, 2023. doi:10.1109/FOCS57990.2023.00060.
- [28] Zhi-Wei Sun. On disjoint residue classes. Discrete Mathematics, 104(3):321–326, 1992. doi:10.1016/0012-365X(92)90454-N.
- [29] Martijn van Ee. A 12/7-approximation algorithm for the discrete bamboo garden trimming problem. Operations Research Letters, 49(5):645–649, 2021. doi:10.1016/j.orl.2021.07.001.
- [30] W.D Wei and C.L Liu. On a periodic maintenance problem. Operations Research Letters, 2(2):90–93, 1983. doi:10.1016/0167-6377(83)90044-5.
Appendix A An FPT Algorithm for Pinwheel Packing
As described in Section 1.3, an FPT algorithm for Pinwheel Packing was already presented in [10] (without an explicit running time bound). In this section, to highlight the similarities and differences between Pinwheel Packing and (Exact) Pinwheel Covering, building on the argument in [10], we present an FPT algorithm for Pinwheel Packing that runs in time.
An instance of Pinwheel Packing is called a strong yes-instance if there exist pairwise disjoint sets such that contains an infinite number of integers. We first present the following claim that was shown in [10] with a different terminology.
Claim 18 (see [10, Proposition 2.1]).
Pinwheel Packing can be solved in time. We can also check whether a given instance is a strong yes-instance in time.
Proof of Claim 18.
We construct a digraph with vertices, each of which corresponds to a -tuple with for each . This vertex corresponds to a state where task must be performed within days from the present. We define two types of arcs in , which we call normal arcs and lazy arcs. We add a normal arc from a vertex to a vertex when there is such that , and for . We add a lazy arc from a vertex to a vertex when for . Note that traversing a normal arc corresponds to performing task , while traversing a lazy arc corresponds to performing no task. Since a feasible solution of Pinwheel Covering corresponds to an infinite walk in , is a yes-instance if and only if contains a dicycle. Similarly, is a strong yes-instance if and only if contains a dicycle containing a lazy arc. Both conditions can be checked in time using depth first search.
In a similar way to (Exact) Pinwheel Covering, we prove the following two claims to bound each by a function of .
Claim 19.
Suppose that is a strong yes-instance of Pinwheel Packing. Then, there exists a feasible solution such that at least one integer is not covered by in every consecutive integers, that is, (4) holds for all .
Proof of Claim 19.
If is a strong yes-instance, then the digraph in the proof of Claim 18 has a dicycle containing a lazy arc. Let be a feasible solution of Pinwheel Packing that corresponds to an infinite walk traversing such a dicycle repeatedly. Since the length of the dicycle is at most , in every consecutive steps along this walk, we traverse at least one lazy arc. This means that, in every consecutive days, there is at least one day on which no task is performed. Therefore, (4) holds for all .
Claim 20.
Let be a sequence of positive integers with , and let . If is a strong yes-instance of Pinwheel Packing and , then is a yes-instance of Pinwheel Packing.
Proof of Claim 20.
Suppose that is a strong yes-instance of Pinwheel Packing and . By Claim 19, there exist pairwise disjoint sets such that at least one integer is not covered by in every consecutive integers. Let be an infinite sequence of all integers not covered by , which are arranged in ascending order. For , set
Then, obviously, are pairwise disjoint. For , since
holds for every , we see that task is performed every days. Therefore, is a feasible solution for the instance .
We are now ready to show the following theorem.
Theorem 21 (see [10, Corollary 3.2]).
Pinwheel Packing can be solved in time, where is the input size of the problem.
Proof.
Let be an instance of Pinwheel Packing. Without loss of generality, we may assume that . If , then is a yes-instance, as we can simply perform each task exactly once every days. Thus, it suffices to consider the case where .
If for every , then we can check the feasibility of in time by Claim 18. Otherwise, let be the minimum integer with , which can be computed in time. Then, we obtain
| (10) |
in the same way as (5). We observe that is a yes-instance if and only if is a strong yes-instance, as the “only if” part is trivial and the “if” part follows from Claim 20 and (10). Therefore, it suffices to determine whether is a strong yes-instance or not, which can be done in time by Claim 18. This running time is bounded by , because for .
