Chapter 3: Q38SE (page 233)
Exercise 37-40 deal with the problem of scheduling n jobs on a single processor. To complete job j, 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 jobs.
38. The slackness of a job requiring time and with deadline d is d - t , the difference between its deadline and the time it requires. Find an example that shows that scheduling jobs by increasing slackness does not always yield a schedule with the smallest possible maximum lateness.
Short Answer
Answers could vary
For example, use the five jobs of the previous exercise.
The ordering job 3, job1, job 4,job 2, job 5 in the previous exercise resulted in a maximal lateness of 5, which implies that scheduling jobs by increasing slackness does not always yield a schedule with the smallest possible maximum lateness.