GATE / CS ARCHIVE

GATE CSE 2023 / QUESTION 29

GATE CSE 2023 Q29

Algorithms · Asymptotic Analysis & Recurrences · Full GATE CSE 2023 paper

GATE 2023, Q29 1 mark · MSQ
Report issue

Asymptotic Analysis & Recurrences

Question 29, GATE 2023: For f(n)=n and g(n)=n², select true claims: A f∈O(g); B f∈Ω(g); C f∈o(g); D f∈Θ(g).
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, C

f(n)/g(n)=n/n²=1/n tends to 0. Hence f=o(g), which also implies f=O(g). A positive constant lower bound proportional to n² cannot hold for all large n, so f is neither Ω(g) nor Θ(g). Answer A, C.

Teaching detail. The asymptotic definitions distinguish an upper bound from a tight bound. For n≥1, n≤n², so O(g) holds with constant 1. Little-o requires that for every ε>0, n≤εn² for all sufficiently large n; choosing n≥1/ε establishes it. An Ω(n²) lower bound would require 1/n≥c for some fixed c>0 eventually, which is impossible. Since Θ requires both O and Ω, it fails as well. A vanishing ratio is stronger evidence than a few sample comparisons.

Original paper, page 27 · Answer key