GATE CS 2001 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0167

Let \(f (n) =n^{2} logn\) and \(g(n) = n(logn)^{10}\) be two positive functions of n. Which of the following statements is correct ?
  1. A
    f (n) = O(g(n))and g(n) \(\neq\) O(f (n))
  2. B
    g(n) = O(f (n)) and f (n) \(\neq\) O(g(n))
  3. C
    f (n) \(\neq\) O(g(n)) and g(n) \(\neq\) O(f (n))
  4. D
    f (n) = O(g(n))and g(n) = O(f (n))

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/709/gate2001-1-16

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