Release Times

In some problems, we are given a set of release times for each job . This means that job cannot be scheduled before time .

1. Complexity of RT Problems

is still trivial, we keep the server busy whenever possible:

and are NP-hard. This is the same as minimizing response time ().

1.1 Sub-optimality of SPT

We may try to extend SPT to by:

1.2 Preemption

For , we can use preemption to schedule jobs in Shortest Remaining Processing Time (SRPT) order. This is optimal, and can be implemented with a priority queue.

Call the remaining processing time for a ready job at time . SRPT schedules preemptively the unfinished job with the shorted remaining processing time .

1.3 Approximation & Worst Case Ratios

With SRPT, we can make a good approximation for . An algorithm has worst case ratio for the problem of minimizing if:

where is the optimal schedule and is the schedule produced by algorithm .

An -approximation algorithm means there is no instance with ratio worse than .

1.4 Convert-Preemptive Schedule Approx.

The convert-preemptive schedule method:

This can be shown to be a 2-approximation for .

PROOF (EXAMINABLE!)

Let be the convert-preemptive schedule. Then:

  1. In jobs are served as some number of blocks of jobs, a set of jobs that is scheduled consecutively without idle time.
  2. For job , is the nearest job before in served after an idle period (the start of the block). Then, starts at time and there is no idle time between and .
  3. Assume jobs are indexed in order of scheduling of . Then, for job : .
  4. Since and have the same completion order in SRPT, we have .
  5. Also, .
  6. Hence, .
  7. Since the optimal non preemptive schedule is also a valid schedule for , we have .
  8. Hence, .

2. Summary

ProblemP/NPOptimal Policy
PRandom, FIFO
PSRPT
NP-hard
NP-hard
NP-hard
NP-hard
NP-hard
NP-hard
Back to Home