Settling Worst-Case Ratio of Smith's Rule for Exponential Jobs
Question
There are jobs and identical machines. Job has a weight and a processing time , exponentially distributed with mean , independently of everything else.
Whenever a machine is free, a policy decides which job to start. It sees which jobs have finished, but not how long a running job will take. Jobs cannot be interrupted, and machines may be left idle on purpose. The goal is to minimise , where is the completion time of job . OPT is the best policy.
WSEPT (weighted shortest expected processing time first, i.e. Smith’s rule) sorts the jobs by , largest first. Whenever a machine falls idle, it starts the next job on this list. WSEPT is optimal on one machine [1], but not on two or more. So the question is roughly:
How much worse than OPT can WSEPT be?
Write for the supremum of WSEPT/OPT over all instances on machines.
History
- 1986. For deterministic processing times, Kawaguchi and Kyan prove that the worst-case ratio of Smith’s rule is exactly [2].
- 1990. Weiss expresses the cost through the squared machine loads and proves additive bounds for WSEPT [3].
- 1999. Möhring, Schulz and Uetz prove [4].
- 2010/2013. Jagtenberg, Schwiegelshohn and Uetz build a stochastic version of the Kawaguchi–Kyan instance. As it gives the lower bound [5, 6].
- 2018. Jäger and Skutella generalise the Kawaguchi–Kyan bound to stochastic jobs, which gives for exponential jobs [7]. Jäger’s thesis adds bounds for each , e.g. [8].
- 2021. Jäger writes in [8], p. 127: “It remains open to locate the worst-case approximation ratio of the WSEPT rule for exponentially distributed processing times within the interval [1.243, 4/3].”
The comes from an argument for each fixed realisation of the processing times. For such a realisation, greedy load balancing is never worse than times the best assignment in terms of squared loads, a deterministic result of Avidor, Azar and Sgall [9]. The argument only uses , never that the jobs are memoryless.
Results
1. The worst case over all . Let
For every and every instance, . The bound is tight: as . Interval arithmetic certifies .
The extremal instance is the Jagtenberg–Schwiegelshohn–Uetz one with optimised parameters. Each machine gets one unit of work in tiny jobs (“dust”), and there is one long job of mean for every machines. They used about machines per long job. With the exact OPT their instance gives . Their printed comes from an approximation of OPT. So the 2013 lower bound was essentially the answer all along, and what was missing was just a proof that nothing beats it.

2. Each fixed . The worst case is always “dust plus jobs”:
Here the are independent exponentials with means , and the water level solves . The numerator is “dust first, then the jobs” (left of the figure). The denominator is “the jobs first, then the dust water-filled around them” (right).
3. Two machines.
The supremum is approached by one job of mean plus dust of total mean .
| 2 | 3 | 4 | 5 | 6 | 8 | 16 | ||
|---|---|---|---|---|---|---|---|---|
| best “ equal jobs + dust” | 1.22043 | 1.23093 | 1.23124 | 1.23650 | 1.23528 | 1.23834 | 1.24168 | 1.24422 |
The values for and are exact. For the other the table gives lower bounds on . We conjecture they are exact: numerical search over all for found nothing larger. If they are, is not monotone in .
Methods
The full proofs are in notes/proof.md, and tbh I didn’t check it line by line. But for human readers, the main ideas are:
Reduction (known). Splitting the weight vector into prefixes of the WSEPT list shows that the worst case has . Then all Smith ratios are equal, so the adversary chooses the order of the list [3, 10].
Cost = squared loads [3]. A policy cannot see when it starts job , so the start time is independent of . Also . Together these give
with equality for policies that never idle. Here is the total work done on machine , and is the same for every policy. So the whole question is “how ragged the final loads are”.
WSEPT: only the last jobs matter. When the last job on the list starts, every machine has been busy the whole time. So up to that moment all loads are equal. By memorylessness, the jobs running at that moment have fresh exponential remainders. Hence , where is this final set of jobs and . The adversary puts the jobs with the largest last. (This step is essentially in [3].)
OPT: sand and stones. Even an OPT that knew all processing times in advance could not make the loads more level than in a relaxation: keep those jobs as rigid “stones”, and turn every other job into divisible “sand”.
- The best arrangement puts one stone on each machine and water-fills the sand around them.
- The resulting raggedness is convex in the amount of sand.
- So by Jensen’s inequality, the random amount of sand can be replaced by its mean .
Then the bounds meet. Turning all other jobs into dust can only increase the upper bound, and the instance “ stones + dust” attains it. WSEPT pours the dust first and then the stones stick out. The policy “stones at time 0, then dust” water-fills without knowing anything in advance. That is result 2.
For exponential jobs, the probabilities that a job has started or is running by time satisfy the time-indexed LP of Skutella, Sviridenko and Uetz [11]. Pricing machine time at gives, for every ,
Jensen’s inequality, with weights , merges the stones into one class of equal stones. This leaves WSEPT’s cost unchanged and can only decrease . So every instance has ratio at most that of a single class, which is at most . Conversely, as the water level of a single class becomes deterministic and equals the maximiser of . So the instance above reaches .
For two machines, both sides can be computed by hand. On the WSEPT side, . On the OPT side, the imbalance is at least how far the longest job overshoots all the others combined. By memorylessness, the second moment of this overshoot is , where is the total of the others.
Checks.
- and are enclosed by interval branch and bound (Arb), plus analytic bounds on the tails.
- Every inequality in the proof was compared with an exact dynamic program for OPT (idling allowed) on about a thousand random instances with to .
- Adversarial searches found no instance above the bounds.
Reproduce
git clone https://github.com/CHHC-L/wsept-exponential
cd wsept-exponential
pip install -r requirements.txt
make
# certified enclosures of rho*(2) and rho_inf:
python src/cert_rho2.py
python src/cert_rho_inf.py
# compare every bound in the proof with the exact DP on random instances:
python src/check_bounds.py
Code, checks and proofs (notes/proof.md): github.com/CHHC-L/wsept-exponential
Note
Most of the code, including the “formal” proof, was done by Claude Opus 5.5.
References
- M. H. Rothkopf. Scheduling with random service times. Management Science 12(9):707–713, 1966.
- T. Kawaguchi, S. Kyan. Worst case bound of an LRF schedule for the mean weighted flow-time problem. SIAM J. Comput. 15(4):1119–1129, 1986.
- G. Weiss. Approximation results in parallel machines stochastic scheduling. Annals of Operations Research 26:195–242, 1990.
- R. H. Möhring, A. S. Schulz, M. Uetz. Approximation in stochastic scheduling: the power of LP-based priority policies. J. ACM 46(6):924–942, 1999.
- C. Jagtenberg, U. Schwiegelshohn, M. Uetz. Lower bounds for Smith’s rule in stochastic machine scheduling. WAOA 2010, LNCS 6534:142–153, 2011.
- C. Jagtenberg, U. Schwiegelshohn, M. Uetz. Analysis of Smith’s rule in stochastic machine scheduling. Operations Research Letters 41(6):570–575, 2013.
- S. Jäger, M. Skutella. Generalizing the Kawaguchi–Kyan bound to stochastic parallel machine scheduling. STACS 2018, LIPIcs 96:43:1–43:14, 2018.
- S. Jäger. Approximation in deterministic and stochastic machine scheduling. PhD thesis, TU Berlin, 2021.
- A. Avidor, Y. Azar, J. Sgall. Ancient and new algorithms for load balancing in the norm. Algorithmica 29(3):422–441, 2001.
- C. Jagtenberg. On machine scheduling with exponentially distributed processing times. MSc thesis, Utrecht University, 2010.
- M. Skutella, M. Sviridenko, M. Uetz. Unrelated machine scheduling with stochastic processing times. Mathematics of Operations Research 41(3):851–864, 2016.