Chapter 2: Q40SE (page 168)
Exercise 37-40 deal with the problem of scheduling n jobs on a single processor. To complete job , the processor must run job j for time without interruption. Each job has a deadline . If we start job at time , it will be completed at time . The lateness of the job measures how long it finishes after its deadline, that is, the lateness of job j is . We wish to devise a greedy algorithm that minimizes the maximum lateness of a job among the n jobs
40. Prove that scheduling jobs in order of increasing deadlines always produces a scheduling that minimizes the maximum lateness of a job. [Hint: First show that for a schedule to be optimal, jobs must be scheduling with no idle time between them and so that no job is scheduled before another with an earlier deadline. ]
Short Answer
Scheduling jobs in order of increasing deadlines always produces a schedule that minimizes the maximum lateness of a job