GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Longest-Processing-Time-first scheduling puts jobs, in non-increasing order of length, on the currently least loaded machine. For jobs of lengths 5, 5, 4, 4, 3, 3, 3 on 3 identical machines, what makespan does it achieve? (The optimal makespan is 9.)

  1. A. 9
  2. B. 11
  3. C. 10
  4. D. 12

Correct answer: B. 11

LPT loads: 5, 5, 4, then 4 goes to the machine with 4 (8), 3 to 5 (8), 3 to 5 (8), and the last 3 to 8 → 11. The optimal assignment {5,4}, {5,4}, {3,3,3} gives 9; this is the classic tight example of the 4/3 − 1/(3m) bound.

More Algorithms questions

Exams that ask this topic