Theorem 6.4 — a polynomial-time -approximation,
OpenSingleMachinePrec.VariableCost.Supplement.theorem_6_4approximation-algorithmsbounded-degreep2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling
An instance consists of jobs with nonnegative integer processing times and weights and a partial order of precedence constraints; a feasible schedule processes the jobs one at a time in an order in which comes before whenever , , and its cost is , where is the completion time of job .
For arbitrary precedence constraints, let (respectively ) be the largest number of jobs strictly below (respectively strictly above) a single job, and
Then there is a deterministic polynomial-time algorithm that outputs a feasible schedule with
The ratio is below whenever is bounded, e.g. for the posets with used in the NP-hardness proof of Lenstra and Rinnooy Kan.
Differences from the source:
- encoding: polynomial-time algorithm (unspecified machine model) → one multi-stack Turing machine (published PolyTimeComputable, Mathlib TM2ComputableInPolyTime) on binary strings, running in time polynomial in the length of the input code; p_j, w_j in binary, the precedence relation as its n×n matrix, the output a code of the processing order; reason: standard machine model; binary numbers keep input sizes as in the paper
- encoding: cost at most α·OPT over all non-preemptive schedules → the output is a feasible processing order (permutation, no idle time) whose ∑ w_j C_j is at most α times the cost of every feasible processing order; reason: inserting idle time never decreases ∑ w_j C_j, so the optimum over idle-free orders is OPT; comparing with every feasible order avoids a default-valued minimum
- reading: polynomial-time (2 − 2/f)-approximation algorithm → a deterministic one; reason: the proof (p. 661) derandomizes the sampling "by using the classical method of conditional probabilities"
- encoding: Δ_D = max{deg_D(j) : j ∈ N}, undefined for N = ∅ → 0 for an instance without jobs (then f = 2 and the ratio is 1); reason: the empty instance has only the empty schedule, of cost 0
Preamble
import Mathlib import Definitions.Def_SingleMachinePrec_VariableCost_Supplement_OrderClasses set_option autoImplicit false open QAlgorithms.Complexity
Formal statement
namespace SingleMachinePrec.VariableCost.Supplement
/-- Theorem 6.4 (p. 660): for arbitrary precedence constraints there is a deterministic
polynomial-time `(2 - 2/f)`-approximation algorithm, where
`f = 1 + max{min{Δ_D, Δ_U}, 1}` and `Δ_D`, `Δ_U` are the maximum numbers of jobs strictly below,
respectively strictly above, a job. -/
theorem theorem_6_4 :
HasPolyTimeApprox SchedInput.enc id (fun x => x.IsPoset)
(fun x => 2 - 2 / ((1 + max (min (maxDegD x.Prec) (maxDegU x.Prec)) 1 : ℕ) : ℝ)) := by sorry
end SingleMachinePrec.VariableCost.Supplement
Source
Ambühl, Mastrolilli, Mutsanas, Svensson, On the Approximability of Single-Machine Scheduling with Precedence Constraints, Math. Oper. Res. 36(4) (2011), p. 660, Theorem 6.4 (proof pp. 660–661)