Let f(n), g(n) and h(n) be nonnegative functions defined for positive integers…

PYQ GATE 2004Modified — slightly modified from the official paper; see the solution

Let f(n), g(n) and h(n) be nonnegative functions defined for positive integers such that f(n) = O(g(n)), g(n) ≠ O(f(n)), g(n) = O(h(n)), and h(n) = O(g(n)). Which one of the following statements is FALSE?

  1. A.

    f(n) + h(n) = O(g(n) + h(n))

  2. B.

    f(n) = O(h(n))

  3. C.

    h(n) ≠ O(f(n))

  4. D.

    f(n)h(n) ≠ O(g(n)h(n))

Attempted by 346 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…