Definition · Weighted completion timeEach job carries a positive weight w_j, and the objective is sum w C = sum over j of w_j C_j. The weight is the cost of one unit of waiting for that job: twice the weight means an hour of delay hurts twice as much. Weights are not priorities and they are not ranks — they are multipliers, and the arithmetic uses their sizes.
Theorem · The weighted exchange identityLet a and b be adjacent with a first. Swapping them changes sum w C by exactly w_a p_b − w_b p_a, whatever the start time and whatever the rest of the order.
Only C_a and C_b change, for the same reason as in the unweighted case: earlier jobs are untouched, and later jobs start once the same two jobs have been done.
Let the pair start at t. Before, the two contribute w_a(t + p_a) + w_b(t + p_a + p_b). After, they contribute w_b(t + p_b) + w_a(t + p_b + p_a).
Subtracting, every term in t cancels, w_a p_a cancels against itself and w_b p_b against itself, and what is left is w_a p_b − w_b p_a.
□
Divide the improvement condition w_a p_b − w_b p_a < 0 by the positive quantity w_a w_b and it becomes p_a / w_a > p_b / w_b. This is why the weights must be strictly positive and why the lab refuses a weight of zero rather than accepting it: the ratio is a division, and a job of no weight at all is a job whose position cannot be argued about by this method.
Definition · Smith's ruleThe weighted shortest processing time rule, or Smith's rule, orders the jobs by p / w ascending. It minimises sum w C. With all the weights equal it is p divided by a constant, so it is shortest-first again — the unweighted theorem is the special case, not a separate result.
Four jobs, three rules, and two of them wrong
jobs A 3:1 B 8:4 C 2:3 D 6:2 p:w
ratios A 3 B 2 C 2/3 D 3
typed A B C D sum wC 124
WEIGHT B C D A sum wC 113 heaviest weight first
SPT C A D B sum wC 109 shortest time first
WSPT C B A D sum wC 97 the ratio
best of all 24 orders 97 attained twice: C B A D and C B D A
makespan 19 in every one of them
B is both the longest job and the heaviest, which is what makes the instance worth looking at: the two one-number rules disagree about it as loudly as they can. Heaviest-first puts B at the very front, where its eight hours delay everything else. Shortest-first puts it at the very back, where four units of weight wait the whole nineteen hours. The ratio puts it second, and the 97 is not available any other way.
Example · The one swap that separates the two rulesHeaviest-first produces B C D A. The ratio of B is 2 and the ratio of C is 2/3, so the pair at the front is out of order and the identity says the swap moves w_B p_C − w_C p_B = 4 × 2 − 3 × 8 = 8 − 24 = −16.
Make that one swap and the order becomes C B D A, worth 113 − 16 = 97, which is optimal. So the entire gap between the rival rule and the theorem on this instance is one adjacent pair, and the exact size of the gap was available from two multiplications before the swap was made.
Where the walk from the typed order goes
start A B C D sum wC 124
1 swap A,B w_A p_B − w_B p_A = 1(8) − 4(3) = −4 120
2 swap A,C w_A p_C − w_C p_A = 1(2) − 3(3) = −7 113
3 swap B,C w_B p_C − w_C p_B = 4(2) − 3(8) = −16 97
stop C B A D sum wC 97 Smith’s own order
the finished schedule, job by job
C p 2 w 3 C 2 wC 6
B p 8 w 4 C 10 wC 40
A p 3 w 1 C 13 wC 13
D p 6 w 2 C 19 wC 38
97
Three swaps, three subtractions, and the walk stops on Smith's order without ever having been told what Smith's rule is. That is the same demonstration as in the unweighted case with one difference worth noticing: the largest single improvement, −16, came last. There is no reason for the improvements to get smaller, and a reader who stops swapping because the gains look small has stopped early.
The unweighted rule is not merely analogous to this one; it is this one. Set every weight to the same value w and the ratio p/w orders the jobs exactly as p does, so Smith's rule returns the shortest-first order and sum w C = w sum C is minimised by minimising sum C. The lab has a preset with four equal weights for exactly this check, and the two rules return the same order on it.
One warning about the ratio, because it is the kind of thing that survives into practice as folklore. p/w is an ordering key and nothing else. It is not a cost, it is not a priority score to be compared across instances, and adding the ratios up or averaging them computes nothing. The only fact about it is that sorting by it ascending minimises sum w C.