Approximation Algorithms for Scheduling Unrelated Parallel Machines 2: Enumerating Long Assignments and Rounding the LP Gives a (1 + ε)-Approximation for MakespanResearch Paper
Motivation
Scheduling independent jobs on unrelated parallel machines to minimize the makespan is one of the basic NP-hard problems of scheduling theory: each job has its own processing time on each machine, with no relation between machines, and the goal is to finish all jobs as early as possible. When the number of machines is part of the input, Lenstra, Shmoys and Tardos showed that no polynomial algorithm can come within a factor below 3/2 of the optimum unless P = NP. When the number of machines is a fixed constant, the picture is different: the problem admits a polynomial approximation scheme, a family of algorithms that reach any accuracy .
Such a scheme was already known. Horowitz and Sahni (1976) gave a fully polynomial approximation scheme for fixed , but its space requirement grows like . The second application of the Rounding Theorem in the 1987 report of Lenstra, Shmoys and Tardos is a scheme whose space is polynomial in the input size, in , and in . This mission formalizes the approximation guarantee of that scheme (Theorem 3 of the report).
Timeline:
- 1976. Horowitz and Sahni, a fully polynomial approximation scheme for a fixed number of unrelated machines, with exponential space in .
- 1985. Potts, a 2-approximation for unrelated machines whose running time is times a polynomial, based on LP rounding with enumeration.
- 1987. Lenstra, Shmoys and Tardos, the Rounding Theorem, a polynomial 2-approximation for arbitrary , and, for fixed , the scheme formalized here (FOCS 1987; journal version in Mathematical Programming 46, 1990).
Setting
There are machines and jobs. If job is scheduled on machine it takes time units, a positive integer; is the processing-time matrix. A schedule assigns every job to one machine. The load of machine is , the makespan is the largest load, and is the smallest makespan over all schedules.
Fix an integer deadline and an accuracy . Assigning job to machine is long if and short otherwise. A schedule of long assignments is a partial assignment of jobs to machines using only long assignments; its long load on machine is , and is admissible if for every .
For a threshold and deadlines , the linear program (LP) of the Rounding Theorem has a variable for every pair with , the constraints for each job, and for each machine. The residual LP of is (LP) for the jobs left unassigned by , with and .
The procedure , on input , tries every admissible ; if the residual LP is feasible it takes a vertex , rounds it to a 0-1 solution of the integer program (IP) of the Rounding Theorem, and combines the result with . It answers 'no' if no residual LP is feasible. A -relaxed decision procedure answers 'no' only when no schedule has makespan at most , and otherwise returns a schedule of makespan at most . The binary search of Lemma 1 runs such a procedure on deadlines between and , where is the makespan of the greedy schedule, and returns the best schedule found.
Formalization targets
Goal: Theorem 3
For every , every positive integer matrix , every , every LP solver , the procedure run with exists, and the binary search driven by any such procedure returns a schedule with
Milestones (§3, p. 6)
- Every machine in an admissible carries fewer than long assignments, and for
- If some schedule has makespan at most , its long part is admissible and its short part is a feasible solution of the residual LP.
- If the short assignments take at most on machine , the combined schedule has load at most on every machine.
- exists for every LP solver and is a -relaxed decision procedure.
Significance
Theorem 3 shows that for a fixed number of unrelated machines, the makespan can be approximated to any accuracy in polynomial time while keeping the memory polynomial in . It is an early instance of the pattern "enumerate the large items, solve an LP for the small ones, round", which recurs in later approximation schemes for scheduling and packing. Together with the 2-approximation of the same paper (mission 1 of this series) and the 3/2 hardness bound (mission 3), it delimits what is achievable for unrelated machines.
The theorem is proved in the paper; none of it is known to have a machine-checked proof. Formalizing it requires a precise account of the enumeration of long assignments, the residual LP, and the binary search, and it exercises the Rounding Theorem, which this series poses in mission 1, outside its original setting (with a non-integral threshold ).
Difficulty
The arithmetic of the scheme is short; the content lies in the Rounding Theorem, which turns a vertex of the residual LP into a 0-1 schedule exceeding each deadline by at most the threshold. The obvious argument, rounding an arbitrary feasible LP solution, fails: a non-vertex solution may split many jobs across many machines, and rounding them can overload a machine by far more than . The bound depends on the structure of vertices of (LP), which an arbitrary feasible point does not have. A second difficulty is the count of milestone 1, which must be done with a real exponent and a strict inequality.
Formalization scope
- Machines are
Fin m, jobsFin n, processing times a matrixP : Matrix (Fin m) (Fin n) ℕwith all entries positive. Load, makespan and optimal schedules are those of the publishedMatousekLP.Scheduling.Schedule, applied to the real cast ofP. - A vertex of an LP is a point of
Set.extremePointsof its feasible region. Variables absent from the paper's (LP) are kept as matrix entries fixed to , which leaves the vertices unchanged. - The LP solver is a parameter (a vertex selector) and is a predicate on procedures: each answer must extend an admissible schedule of long assignments, round the selected vertex within its support, and satisfy the (IP) load bound. The guarantee is proved for every such procedure. The output is thereby tied to what the algorithm computes, so the bound is not witnessed by an optimal schedule.
- The binary search is a definition: greedy start, (the paper's rounded up because makespans are integers), , best stored schedule as output.
- Not formalized: that is fixed, the polynomial running time, and the space bound polynomial in , and the input size. The guarantee is stated for every . The count of milestone 1, on which the running-time claim rests, is formalized, with the real power
Real.rpow. - The constants are exact: , , . Milestone 1 needs and for strictness.
- Theorem 1 (the Rounding Theorem) and Lemma 1 are milestones of mission 1 of this series and are not restated here.
Welcome contributions: a proof of the Rounding Theorem in the generality of real deadlines and thresholds, proofs of the counting bound, and lemmas on the binary search that are reusable for any relaxed decision procedure.
Selected references
- J.K. Lenstra, D.B. Shmoys, É. Tardos, Approximation algorithms for scheduling unrelated parallel machines, CWI Report OS-R8714, Centre for Mathematics and Computer Science, Amsterdam, 1987 (the source; Theorem 3, p. 6). Journal version: Mathematical Programming 46 (1990) 259–271. https://doi.org/10.1007/BF01585745
- E. Horowitz, S. Sahni, Exact and approximate algorithms for scheduling nonidentical processors, Journal of the ACM 23 (1976) 317–327. https://doi.org/10.1145/321941.321951
- C.N. Potts, Analysis of a linear programming heuristic for scheduling unrelated parallel machines, Discrete Applied Mathematics 10 (1985) 155–164. https://doi.org/10.1016/0166-218X(85)90009-5
- D.S. Hochbaum, D.B. Shmoys, Using dual approximation algorithms for scheduling problems: theoretical and practical results, Journal of the ACM 34 (1987) 144–162. https://doi.org/10.1145/7531.7535