GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 11

GATE CSE 2022 Q11

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

GATE 2022, Q11 1 mark · MCQ
Report issue

Asymptotic Analysis & Recurrences

Question 11, GATE 2022: For positive functions f(n), identify the universally valid statement under its specified restriction: A f(n²)=Θ(f(n)²) if f is polynomial; B f(n²)=o(f(n)²); C f(n²)=O(f(n)²) if f is exponential; D f(n²)=Ω(f(n)²).
Tap to enlarge
Your answer
Answer & solution

Official answer: A

For a positive polynomial of degree d with leading coefficient c>0, f(n²)~c n2d and f(n)²~c² n2d, so they are Θ-equivalent, A. B fails with f(n)=n. C fails with f(n)=2n, since 2n²/22n diverges. D fails with f(n)=log n, since 2log n/(log n)² tends to zero.

The ratio f(n²)/f(n)² tends to 1/c for a degree-d polynomial, a positive finite constant, which is exactly enough for a Θ comparison. In B the ratio for n is 1 rather than tending to zero. In C the ratio is 2n²−2n, unbounded. In D use log(n+1) if positivity is required even at n=1; the ratio still tends to zero.

Original paper, page 11 · Answer key