Release Times
In some problems, we are given a set of release times
1. Complexity of RT Problems
- Random order amongst the ready jobs minimizes
. - FIFO (First Come First Serve) amongst the ready jobs minimizes
and the variance of the waiting times.
1.1 Sub-optimality of SPT
We may try to extend SPT to
- Wait for the next shortest job to be released. Disproven with very long waiting times, in which a longer job could have been scheduled.
- Schedule the shortest job amongst the ready jobs. Disproven with a counterexample, by having a very short job that realeases just after a long job has scheduled.
1.2 Preemption
For
Call
1.3 Approximation & Worst Case Ratios
With SRPT, we can make a good approximation for
where
An
-approximation algorithm means there is no instance with ratio worse than .
1.4 Convert-Preemptive Schedule Approx.
The convert-preemptive schedule method:
- Treat jobs as preemptive and schedule them with SRPT for the resulting
problem. - Schedule jobs non-preemptively in the order they were completed in the preemptive schedule.
This can be shown to be a 2-approximation for
PROOF (EXAMINABLE!)
Let
be the convert-preemptive schedule. Then:
- In
jobs are served as some number of blocks of jobs, a set of jobs that is scheduled consecutively without idle time. - 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 . - Assume jobs are indexed in order of scheduling of
. Then, for job : . - Since
and have the same completion order in SRPT, we have . - Also,
. - Hence,
. - Since the optimal non preemptive schedule
is also a valid schedule for , we have . - Hence,
.
2. Summary
| Problem | P/NP | Optimal Policy |
|---|---|---|
| P | Random, FIFO | |
| P | SRPT | |
| NP-hard | ||
| NP-hard | ||
| NP-hard | ||
| NP-hard | ||
| NP-hard | ||
| NP-hard |