GATE IT 2004 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0150

Let f(n), g(n) and h(n) be functions defined for positive integers such that \(f(n) = O(g(n)), \; g(n) \neq O(f(n)), \; g(n) = O(h(n)), \text{ and } h(n) = O(g(n)).\)Which one of the following statements is FALSE?
  1. A
    \(f(n) + g(n) = O(h(n) + h(n))\)
  2. B
    \(f(n) = O(h(n))\)
  3. C
    \(h(n) \neq O(f(n))\)
  4. D
    \(f(n)h(n) \neq O(g(n)h(n))\)

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/3698/gate2004-it-55

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