Single Machine Scheduling

1. Assumptions

During single machine scheduling, we assume:

  1. A set of jobs is immediately ready to be scheduled.
  2. Deterministic processing times known in advance.
  3. No preemption.
  4. Single server machine.
  5. No explicit setup times.
  6. No machine idling while jobs are waiting.

In single machine scheduling, there is no advantage in using preemption. This is because interlacing jobs results in an average later completion time than running them sequentially.

This is a non-idling schedule as there are no gains by inserting idle times within a single machine.

2. Trivial Case

is trivial: its optimised by any random schedule since is the same for all schedules.

3. SPT

Here, the shortest processing time (SPT) is optimal.

PROOF (EXAMINABLE!)

Let denote the -th scheduled job, with processing time and completion time . Since all jobs are released at time , we have:


This is minimized when , i.e. shorter jobs are best scheduled earlier.

The complexity of this is just the cost of sorting: .

4. WSPT

Now, weighted shortest processing time (WSPT, Smith's Rule) is optimal - schedule jobs in non-decreasing order:

PROOF (EXAMINABLE!)

Assume a non WSPT schedule to be optimal. Thus, adjacent jobs , in s.t. . Let be the schedule obtained by swapping and . Then, for , where is the jobs scheduled before and :

For :

Therefore, if as in , then:

Hence, is better than , contradicting the optimality of . Thus, every optimal schedule must be WSPT.

5. Job Chains

A job chain is a set of jobs with precedence constraints such that each job has at most one predecessor and one successor.

5.1 Non-Interruptible Chains

If chains are non-interruptible, then the optimal schedule is to schedule chains in non-decreasing order of their total processing times (i.e. treat the chain as a single job).

5.2 Interruptible Chains

If chains are interruptible, WPST may be applied to sub-chains. For a given chain , we define its -factor as:

Thus, we find among all initial sub-chains of of length the one with the minimum ratio. This determines the -factor of the chain.

5.3 Chain Method

To schedule, we use the chain method:

  1. Compute the -factor for each chain.
  2. Select chain with the minimum -factor, breaking ties arbitrarily.
  3. Schedule the initial-subchain that determines . Remove the corresponding jobs from and update .
  4. If jobs remain to be scheduled, repeat from step 2.

This is optimal for .

6. Stochastic Scheduling

If is uncertain, it becomes a random variable. Since the maximum completion time is now intractable, we instead optimize . Shortest expected processing time (SEPT) is optimal for this problem:

This is minimized when , i.e. shorter expected jobs are best scheduled earlier.

This also generalizes to Weighted Shortest Expected Processing Time (WSEPT), which schedules jobs in increasing ratios.

If the are exponentially distributed with rates , and the weights are , this is known as the -rule.

7. Summary

ProblemP/NPTimesOptimal Policy
PDeterministicRandom
PDeterministicSPT
PDeterministicWSPT
PDeterministicChain Method
PStochasticSEPT
PStochasticWSEPT
Back to Home