Complexity of Machine Scheduling Problems 3: KNAPSACK Reduces to Single-Machine Total Weighted TardinessResearch Paper
Motivation
Minimizing total weighted tardiness on a single machine, written , is one of the basic problems of deterministic scheduling. A job that finishes after its due date is penalized in proportion to its lateness and its weight. Practitioners use this criterion to model penalty clauses and customer priority. In the theory it was a reference problem for branch-and-bound methods and dominance rules throughout the 1960s and 1970s.
Close relatives are easy: with equal weights and a common due date, shortest-processing-time order is optimal. Whether the weighted problem admits a polynomial algorithm was open until the report of Brucker, Lenstra and Rinnooy Kan in 1975. Their Theorem 4(d) shows that KNAPSACK reduces to it, so the problem is NP-hard. The unweighted case is listed there as open (Section 5) and was settled only later by Du and Leung (1990).
Timeline:
- 1972: Karp proves KNAPSACK NP-complete (Karp 1972).
- 1975: Brucker, Lenstra and Rinnooy Kan, Mathematisch Centrum Report BW 43/75, Theorem 4(d), reduce KNAPSACK to (journal version: Annals of Discrete Mathematics 1, 1977).
- 1977: Lawler gives a pseudopolynomial algorithm for and shows that is strongly NP-hard (Lawler 1977).
- 1990: Du and Leung prove NP-hard (Du & Leung 1990).
Setting
A KNAPSACK instance consists of positive integers and . It is a yes-instance if some subset satisfies . Write and .
An instance of consists of jobs. Job has a processing time , a weight and a due date , all nonnegative integers, and every job is available at time . A schedule gives each job a start time , and no two jobs may overlap on the machine. Job completes at and has tardiness . The instance with threshold is a yes-instance if some schedule satisfies . A processing order determines the schedule without idle time, in which .
Reducibility (Section 2 of the paper) is polynomial-time many-one reducibility between the recognition versions. A polynomial-time Turing machine must map codes of KNAPSACK instances to codes of scheduling instances so that yes-instances map exactly to yes-instances.
The paper's construction has jobs: for , , , ; for each of the dummy jobs, , , . The threshold is , with and . The proof is phrased in terms of , the amount by which the -th job of the order misses the common due date.
Formalization targets
Goal: Theorem 4(d)
stated as CookPvsNP.PolyReducible SchedComplexity.OneMachine.knapsackLang wtLangMult. The scheduling side uses the multiplicity encoding of the paper's Remark (p. 23), in which a class of identical jobs is written once together with its cardinality.
The equivalence and its claims
Each milestone is a statement of the paper's proof (pp. 20–21) about the construction above, for every admissible :
- removal of idle time: every schedule is matched or improved by the schedule without idle time of some processing order;
- KNAPSACK has a solution iff some order has ; moreover ;
- identities and bounds (2)–(7) for the tail sums ;
- claims (A) with and ; (B) ; (C) ;
- the equivalence: KNAPSACK has a solution iff the constructed instance has a schedule with .
Significance
The theorem places among the NP-hard problems, so (unless P = NP) the research on it has to aim at enumerative methods, pseudopolynomial algorithms or approximation, not at an exact polynomial algorithm. Together with the companion reductions of Theorem 4, it drew the boundary between easy and hard single-machine problems that the later classification of Lageweg, Lawler, Lenstra and Rinnooy Kan made systematic.
The result is proved in the paper, and Lawler's later strong NP-hardness proof supersedes it. No machine-checked proof is known to exist. A formal proof adds three things. It makes the paper's "it is easily seen" steps and the encoding argument of the Remark explicit. It produces a reusable single-machine tardiness model with processing orders. It also fixes a gap in the printed construction: the printed need not be an integer.
Difficulty
The equivalence is not a local exchange argument. The threshold must separate orders with from all others, and the objective is a quadratic function of the order. The orders with can still differ in by the cross terms and by how the late jobs are arranged. The construction therefore needs a slack that absorbs these terms, and a scale large enough that a nonzero always costs more than the slack. Keeping exact track of every constant, including and , is where errors creep in.
Polynomiality is a second, separate difficulty. The construction has jobs, which is exponential in the binary length of the KNAPSACK input. The goal holds only for the encoding of the Remark, and a solver must also produce an explicit polynomial-time Turing machine.
Formalization scope
- Jobs of the order-based statements are
Fin n, numbered from ; a processing order isEquiv.Perm (Fin n)withπ ithe paper's .posCompletion p π kis the paper's for the 1-based position . - Start times are in . Every criterion is regular and the paper determines schedules by processing orders, so integer start times lose nothing. Tardiness and are computed in ; the bounds with halves are stated over exactly as printed.
- Corrected gap: the printed is a half-integer when is odd. The formalization uses its ceiling and computes from the same .
- is quantified over all integers with ; the positivity of the and are hypotheses, as the paper assumes them.
- Explicit readings of the paper's loose phrases: "we may assume [no idle time]" becomes a theorem that the schedule without idle time of some order is at least as good as any schedule; "easily seen" becomes the equivalence with ; "for some " in (5) and (7) becomes a reordering that keeps the first positions, and so keeps ; "we may assume " is a hypothesis of the milestones but not of the goal, whose reduction must handle every KNAPSACK instance.
- Reducibility is
CookPvsNP.PolyReduciblefrom the publishedCookPvsNP_defs. Codes use the alphabetBSymand the binary numeralsencNatsof the publishedProjSchedTW.Complexity.Encoding(Neumann, Schwindt and Zimmermann's encoding). KNAPSACK is restricted to positive integers, so that encoding'ssubsetSumLangis not reused. - The goal must not be weakened to the bare equivalence: polynomial-time computability of the reduction is part of the statement. The one-copy-per-job encoding of the target is ruled out: the paper does not claim polynomiality for it, and the goal uses the multiplicity encoding instead.
- Welcome contributions: proofs of the claims, a reusable lemma that idle time can be removed for regular criteria, and Turing-machine constructions for arithmetic on binary numerals, which the sibling missions of this series also need.
Selected references
- P. Brucker, J. K. Lenstra, A. H. G. Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75, Amsterdam, 1975; Annals of Discrete Mathematics 1 (1977) 343–362. https://ir.cwi.nl/pub/9725 , https://doi.org/10.1016/S0167-5060(08)70743-X
- R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. https://doi.org/10.1007/978-1-4684-2001-2_9
- E. L. Lawler, A "pseudopolynomial" algorithm for sequencing jobs to minimize total tardiness, Annals of Discrete Mathematics 1 (1977) 331–342. https://doi.org/10.1016/S0167-5060(08)70742-8
- J. Du, J. Y.-T. Leung, Minimizing total tardiness on one machine is NP-hard, Mathematics of Operations Research 15 (1990) 483–495. https://doi.org/10.1287/moor.15.3.483
- S. Cook, The P versus NP problem, Clay Mathematics Institute problem description, 2000. https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf