GATE Computer ScienceHardGATE CS (PYQ pattern)

Six jobs have (processing time, weight): (4,3), (2,5), (7,2), (3,6), (5,4), (1,1). A single machine runs them one at a time without gaps. The minimum possible value of Σ weight × completion time is:

  1. A. 186
  2. B. 189
  3. C. 179
  4. D. 183

Correct answer: C. 179

Smith's rule orders jobs by non-decreasing p/w (exchange argument) and gives 179, equal to the brute-force minimum over all 720 orders. Shortest-processing-time order gives 186 and highest-weight-first gives 189.

More Algorithms questions

Exams that ask this topic