Greedy Algorithms: A Scheduling Application: Correctness Proof Part I
Greedy Algorithms: A Scheduling Application: Correctness Proof Part I
A Scheduling Application:
Correctness Proof Part I
Algorithms: Design
and Analysis, Part II
Correctness Claim
Claim: Algorithm #2 (order jobs according to decreasing ratios
wj /lj ) is always correct.
Tim Roughgarden
Correctness Proof
Assume: All wj /lj ’s distinct.
Assume: [Just by renaming jobs] w1 /l1 > w2 /l2 > . . . > wn /ln .
Tim Roughgarden
Correctness Proof (con’d)
So far:
1. w1 /l1 > w2 /l2 > . . . > wn /ln
2. In optimal σ ∗ , ∃ consecutive jobs i, j with i > j.
stuff stuff
σ∗ new schedule
Tim Roughgarden