One-Processor Scheduling with Symmetric Earliness and Tardiness Penalties 3: For Maximum Discrepancy, Some Optimum Schedule Is in Standard Form and Has the Release Time PropertyResearch Paper
Motivation
In just-in-time scheduling each job has a preferred time, and finishing it early is as undesirable as finishing it late. Garey, Tarjan and Wilfong (Math. Oper. Res. 13 (1988), 330–348) study the one-processor version in which task has a length and a preferred starting time , and the discrepancy of a task started at time is . The penalty is symmetric: earliness and tardiness cost the same. The paper shows that minimizing the total discrepancy is NP-complete, gives an algorithm for a fixed task order, and, in §3, gives an efficient algorithm for minimizing the maximum discrepancy : a linear-time test for a given bound after an sort, combined with a search over .
This mission formalizes the structural core of §3: the normal-form theorems (Theorem 4, Corollaries 1 and 2) on which the paper's algorithm for maximum discrepancy is built. The two companion missions of the series cover the NP-completeness result (THEOREM 1) and the fixed-order algorithm (THEOREMS 2 and 3).
Setting
Fix a bound . A schedule has maximum discrepancy at most exactly when every task starts no earlier than its release time and finishes no later than its deadline (p. 342). These release times and deadlines are in special form: with , for every task
From here on the data are arbitrary reals , , in special form for some .
A schedule is an execution order ( is the task in position ) with starting times , such that a task finishes no later than any later-positioned task starts: for . It is feasible if and for every . Its makespan is , and it is optimum if it is feasible and no feasible schedule has a smaller makespan.
Let be a task of largest deadline. A schedule has the release time property if every task executed after has release time strictly later than the starting time of . When the tasks are indexed with , a schedule is in standard form with split index , , if it begins with an optimum schedule of , followed by started at the maximum of and the completion time of that first part, followed by in this order without idle time.
Formalization targets
Goal: Corollary 2 (p. 344)
Milestones
- Theorem 4 (pp. 342–343): if a feasible schedule exists, some optimum schedule has the release time property with respect to any task of largest deadline.
- The deadline split (proof of Corollary 1, p. 344): in every feasible schedule with the release time property, a task precedes if and only if .
- Corollary 1 (p. 344): some optimum schedule executes before exactly the tasks of deadline at most , for some .
- Release before finish (p. 344): every task executed after has .
- Normalization after (p. 344): an optimum schedule with the release time property can be changed, without moving later and without touching the tasks before it, so that there is no idle time from the start of on and the later tasks run in deadline order.
Two companion items state the reformulation of the maximum-discrepancy bound as release times and deadlines, and the special form with .
Significance
Corollary 2 reduces the search for an optimum schedule of to candidates, one per split index, each assembled from an optimum schedule of a shorter prefix. This is the dynamic program of §3.2, which the paper implements in time after an sort; combined with a search over it minimizes the maximum discrepancy. Without the special form, deciding whether one processor can meet arbitrary release times and deadlines is NP-complete (reference [4] of the paper, Garey and Johnson 1979), so the normal form is what separates the tractable case from the general one.
The results are proved in the paper; no machine-checked proof of them is known on Prove2Me. A formal proof of Corollary 2 would certify the correctness of the split-index recursion and, together with the companions, of the reduction from maximum discrepancy to this release-time/deadline problem.
Difficulty
The obvious argument fails in Theorem 4. Exchanging a straggler (a task after released no later than starts) with shifts the tasks between them, and for general release times and deadlines those tasks can become infeasible. The paper's argument uses the special form at every step: a task released after starts has , hence exactly, and this equality is what bounds how far tasks may move. It also needs an extremal choice of the optimum schedule (fewest tasks after , then fewest tasks between and the first straggler), which requires showing that optimum schedules exist over the reals. The passage to standard form then combines this with an earliest-deadline exchange for the tasks after and the replacement of the first part by an optimum sub-schedule without losing feasibility of the later tasks.
Formalization scope
Tasks are indexed by Fin N (0-based: the paper's are ; the paper's in Corollary 2 is the index ). All data are real. A schedule is a permutation σ : Fin N ≃ Fin N with starting times s : Fin N → ℝ; "executed before/after" refers to σ, not to a comparison of starting times, because zero-length tasks may share a starting time. Execution intervals meet at most at endpoints. The makespan is a supremum over Fin N; "optimum" quantifies over all feasible schedules, not only standard-form ones.
The standing hypotheses on every structural item are , , (from , the in , and nonnegative lengths); since , start times are nonnegative, as the paper assumes throughout. The special form is a hypothesis of every structural item and cannot be dropped. The paper's dummy task () is not a task; an empty first part completes at time . Corollary 1's "the set of all tasks with deadline or less" is read as excluding , the only reading under which it is true. The page's "(which can be assumed optimum)" is part of the standard form. The deadline-split and release-before-finish milestones are stated for every feasible schedule, as their arguments allow.
A trivializing formalization is excluded: the standard form pins 's start to and the later tasks to consecutive positions in index order, so the goal is not Corollary 1 restated with an unconstrained split.
Running times (, ) and the algorithm of §3.2 are out of scope. The development needs only finite permutations, finite suprema and the exchange arguments of §3.1; the existence of an optimum schedule (minimum makespan over finitely many orders, earliest-start schedules) is reusable for other single-machine problems with release times and deadlines. Proofs of any milestone, and a sorry-free proof of the existence of optimum schedules, are welcome.
Selected references
- M. R. Garey, R. E. Tarjan, G. T. Wilfong, One-Processor Scheduling with Symmetric Earliness and Tardiness Penalties, Mathematics of Operations Research 13(2):330–348, 1988. https://doi.org/10.1287/moor.13.2.330
- M. R. Garey, D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979 (reference [4] of the paper, cited on p. 342 for the NP-completeness of one-processor scheduling with release times and deadlines). ISBN 0-7167-1045-5