GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Three enhancements with speed-ups 30, 20 and 15 apply to disjoint parts of a program's original run time. The first two each apply to 25% of the time and will both be used. What percentage of the original time must the third apply to for an overall speed-up of 10?

  1. A. 45.1%
  2. B. 42.1%
  3. C. 42.9%
  4. D. 96.4%

Correct answer: A. 45.1%

1/10 = (1 − 0.25 − 0.25 − f) + 0.25/30 + 0.25/20 + f/15 → 0.1 = 0.5208 − f(1 − 1/15) → f = 0.4509. Dropping the f/15 term gives 42.1%; dropping the two enhanced parts' remaining time gives 42.9%.

More Computer Organization and Architecture questions

Exams that ask this topic