Let f and g be functions of natural numbers given by f(n) = n and g(n) = n2. Which of the following statements is/are TRUE?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2023 · Q29
Time
Select all that applyOne or more correct
Solution
Official answer: A) f ∈ O(g); C) f ∈ o(g)
Asymptotic AnalysisWe are given the functions and for .
To determine the asymptotic relations, consider the limit of their ratio as :
Option A (): means that for some constant and all sufficiently large . Since for all , this holds (with ). Thus, (A) is TRUE.
Option B (): requires that for some constant and all sufficiently large . Since , grows strictly slower than , so this does not hold. Thus, (B) is FALSE.
Option C (): (little-o notation) is defined by . Since this limit evaluates to , (C) is TRUE.
Option D (): requires both and . Since , (D) is FALSE.
Hence, the correct statements are A and C.
Try the question first, then check your work.
Examiner trap
Evaluate the limit . If the limit is , then is strictly asymptotically smaller than , which implies and .
This Asymptotic Analysis previous year question is Q29 of the GATE CSE 2023 paper. Find more GATE CSE PYQs on Asymptotic Analysis in Algorithms, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Asymptotic Analysis PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Asymptotic Analysis has 31 GATE CSE PYQs across 19 papers from 2011 to 2026. 2 of them are 1-mark MSQs like this one, and GATE CSE 2023 has 2.
How GATE tests Asymptotic AnalysisIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.