GATE 2023 CS – Question 29
Let f and g be functions of natural numbers given by $f(n) = n$ and $g(n) = n^2$. Which of the following statements is/are TRUE?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) $f \in O(g)$; (C) $f \in o(g)$
Explanation
n grows strictly slower than n², since n/n² → 0. So f ∈ O(g) and f ∈ o(g), while f ∉ Ω(g) and f ∉ Θ(g).