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 ?
- A
f (n) = O(g(n))and g(n) \(\neq\) O(f (n))
- B
g(n) = O(f (n)) and f (n) \(\neq\) O(g(n))
- C
f (n) \(\neq\) O(g(n)) and g(n) \(\neq\) O(f (n))
- 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 solution
Official 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