Complexity of Machine Scheduling Problems 6: DIRECTED HAMILTON PATH Reduces to No-Wait Flow Shop Makespan and Total Completion TimeResearch Paper
Motivation
In a no-wait flow shop every job passes through the machines in the same order, and once it has started it may never wait between two machines. The constraint comes from processes in which the material changes state if it is left standing, such as hot metal rolling, chemical and food processing, and some pharmaceutical lines; see the survey of Hall and Sriskandarajah (doi:10.1287/opre.44.3.510). The question of how hard it is to schedule such a shop well is the question this mission formalizes.
Brucker, Lenstra and Rinnooy Kan settled it for the case in which the number of machines is part of the input. In their report Complexity of Machine Scheduling Problems (Mathematisch Centrum, 1975; journal version in Annals of Discrete Mathematics 1, 1977, doi:10.1016/S0167-5060(08)70743-X), Theorem 5 reduces DIRECTED HAMILTON PATH to the no-wait flow shop. Both minimizing the makespan and minimizing the total completion time are thereby NP-complete.
Timeline.
- 1964: Gilmore and Gomory solve the two-machine no-wait flow shop with makespan in polynomial time (doi:10.1287/opre.12.5.655).
- 1972: Wismer (doi:10.1287/opre.20.3.689) and Reddi and Ramamoorthy (doi:10.1057/jors.1972.52) show that no-wait makespan minimization is a travelling-salesman problem with arc weights computed from the processing times.
- 1972: Karp proves DIRECTED HAMILTON CIRCUIT NP-complete (doi:10.1007/978-1-4684-2001-2_9).
- 1975: Brucker, Lenstra and Rinnooy Kan reduce DIRECTED HAMILTON CIRCUIT to DIRECTED HAMILTON PATH (their Theorem 2(d)), and DIRECTED HAMILTON PATH to and to (Theorem 5).
- 1984: Röck shows that the problem stays NP-hard for three machines (doi:10.1145/62.65).
Setting
There are jobs and machines. Job needs processing time on machine . Write
for the time job spends on its first machines. Because a job never waits, a schedule is determined by the start times . The operation of on occupies , and job completes at . A schedule is feasible when no two distinct jobs occupy the same machine at the same time. The delay
is the least gap that lets follow on every machine.
A directed graph on has a Hamilton path if its vertices can be ordered with every .
From the paper builds an instance with jobs and machines. Each ordered pair of distinct jobs is assigned a middle machine , and the partial sums are perturbed from by or on the machines and just before the machines , depending on whether the pair is an arc. The parameters satisfy and .
Formalization targets
Goal (Theorem 5)
where is polynomial-time many-one reducibility between the binary-coded recognition languages.
Milestones, in the order the proof uses them
- Eq. (9): is the least gap between and for which follows on every machine.
- The travelling-salesman reformulation: if all processing times are positive, a feasible schedule with (resp. ) exists iff some job order has path length (resp. summed completion times along the path) at most .
- An admissible ordering exists for every .
- All processing times of the construction are at least .
- The delays of the construction: if , and otherwise.
- Theorem 5(a), the equivalence: has a Hamilton path .
- Theorem 5(b), the equivalence: has a Hamilton path .
- Theorem 2(d), off the goal's path: has a Hamilton circuit iff the graph obtained by splitting a vertex into and a new sink has a Hamilton path.
Significance
The result. Theorem 5, together with the NP-completeness of DIRECTED HAMILTON PATH, places both no-wait criteria among the NP-complete problems once is part of the input. The Gilmore–Gomory algorithm for two machines therefore cannot be extended to arbitrary unless P = NP, and heuristics and exact exponential methods for no-wait shops are justified. The reduction also gives a structural fact of independent use: every directed graph can be realized, up to two arc-weight values, as the delay matrix of a no-wait flow shop.
Formalizing it. The result has been proved for fifty years; to our knowledge no machine-checked version exists. This mission produces a checked no-wait flow shop model, a checked travelling-salesman reformulation of it, the correctness of the paper's construction, and a polynomial-time reduction in an explicit Turing-machine model. It also records a gap in the printed proof: the ordering the paper calls easy to construct does not exist for .
Difficulty
Three steps are not routine.
- The passage from schedules to job orders assumes that the order in which jobs start is the order in which they visit every machine. With zero processing times this fails, so the reformulation needs the positivity milestone.
- Computing the delays requires a case analysis over all machines and all pairs of perturbations. The property of is exactly what keeps the "" and "" cases from colliding, and the constants , are tight enough that the comparison must be done carefully.
- The goal asks for an actual Turing machine with a polynomial step bound. It has to build for every and handle separately. The equivalences alone do not give this.
Formalization scope
Jobs and machines are -based (Fin n, Fin m); cum p ℓ i is the paper's , and the machine indices are the paper's -based indices. Start times are natural numbers, and release dates are . Section 3 computes times from processing orders on integer data, and every criterion is regular, so real start times would not change the yes-instances. A zero-length operation occupies the empty interval. is stated as for every job. The delays, the partial sums of the construction and its processing times are computed in . The instance uses their conversion to , which is exact by milestone 4. The threshold of Theorem 5(b) is compared in , as printed.
The paper's loose phrases are made explicit as follows:
- "scheduled directly after" means "precedes on every machine";
- "equivalent to solving the TRAVELLING SALESMAN problem" means the two threshold equivalences of milestone 2, with the version as the reading of "constructed as in (a)";
- "such an ordering can easily be constructed" is stated for , the only case in which it is true.
Directed graphs are Boolean adjacency matrices. A graph with or vertices has a Hamilton path, and a one-vertex graph has a Hamilton circuit iff it has a loop.
The goal is CookPvsNP.PolyReducible from the published definition CookPvsNP_defs, with polynomial time measured on Cook's one-tape Turing machines. Instances are coded with the alphabet BSym and binary code encNats of the published ProjSchedTW.Complexity.Encoding (Neumann, Schwindt and Zimmermann). A graph is coded as followed by its adjacency matrix; a flow-shop instance as , , the matrix and the threshold .
Stating only the equivalences 6–7 and calling the result "reducible" would drop polynomiality; the goal therefore asserts PolyReducible. The target languages contain exactly the no-wait flow-shop instances, with no waiting allowed, so the reduction cannot land in a looser problem. The parameters always carry , .
Contributions are welcome at every level:
- the general travelling-salesman reformulation, which is reusable for any no-wait flow-shop result;
- the combinatorial existence of ;
- the arithmetic of the construction;
- Turing-machine infrastructure for computing arithmetic list transformations in polynomial time, which every reduction in this series needs.
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. doi:10.1016/S0167-5060(08)70743-X
- R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. doi:10.1007/978-1-4684-2001-2_9
- P. C. Gilmore, R. E. Gomory, Sequencing a one state-variable machine: a solvable case of the traveling salesman problem, Operations Research 12 (1964) 655–679. doi:10.1287/opre.12.5.655
- D. A. Wismer, Solution of the flowshop-scheduling problem with no intermediate queues, Operations Research 20 (1972) 689–697. doi:10.1287/opre.20.3.689
- S. S. Reddi, C. V. Ramamoorthy, On the flow-shop sequencing problem with no wait in process, Operational Research Quarterly 23 (1972) 323–331. doi:10.1057/jors.1972.52
- H. Röck, The three-machine no-wait flow shop is NP-complete, Journal of the ACM 31 (1984) 336–345. doi:10.1145/62.65
- N. G. Hall, C. Sriskandarajah, A survey of machine scheduling problems with blocking and no-wait in process, Operations Research 44 (1996) 510–525. doi:10.1287/opre.44.3.510
- S. A. Cook, The complexity of theorem-proving procedures, STOC 1971, 151–158. doi:10.1145/800157.805047