Sunday, December 09, 2012
Exchange Argument
Job i has a length ti and a deadline di. The goal is to assign a starting time si to each job such that each job is delayed as little as possible. A job i is delayed if the finishing time fi>di. The lateness of the job i is max(0,fi−di). Show that the schedule has the least maximum lateness when ∀i,j[si<sj⟹di<dj].
== Attempt ==
Suppose otherwise i.e. given an optimal schedule with the least maximum lateness among all jobs, suppose there exists in this schedule job i and j with si<sj and dj<di, and one of the two jobs has the maximum lateness in the schedule.
Case 1: suppose the earlier job i has the maximum lateness in the schedule
Since dj<di, the lateness of the next job j must be greater than that of job i. A contradiction i.e. case 1 is not possible.
Case 2: suppose job j has the maximum lateness in the schedule
This means:
ti−di<ti+S+tj−dj |
ti−di+(S+tj) |
ti+S+tj−dj |