GATE IT 2007 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0131

Consider n jobs \(J_1, J_2 \dots J_n\) such that job \(J_i\) has execution time \(t_i\) and a non-negative integer weight \(w_i\). The weighted mean completion time of the jobs is defined to be \(\frac{\sum_{i=1}^{n}w_iT_i}{\sum_{i=1}^{n}w_i}\), where \(T_i\) is the completion time of job \(J_i\). Assuming that there is only one processor available, in what order must the jobs be executed in order to minimize the weighted mean completion time of the jobs?
  1. A
    Non-decreasing order of \(t_i\)
  2. B
    Non-increasing order of \(w_i\)
  3. C
    Non-increasing order of \(w_it_i\)
  4. D
    Non-increasing order of \(w_i/t_i\)

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3459/gate2007-it-26

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com