GateAI
Asymptotic Analysis

GATE CSE 2022 · Q11

MCQ1 markMedium

Time

Which one of the following statements is TRUE for all positive functions f(n)f(n)?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) f(n2) = (f(n)2), when f(n) is a polynomial

Asymptotic Analysis

Let us analyze each option for positive functions f(n)f(n):

  • Option A: Let f(n)f(n) be a polynomial of degree k>0k > 0, i.e., f(n)=aknk+ak−1nk−1+⋯+a0f(n) = a_k n^k + a_{k-1} n^{k-1} + \dots + a_0 with ak>0a_k > 0. Then, f(n2)=ak(n2)k+⋯=akn2k+⋯=Θ(n2k)f(n^2) = a_k (n^2)^k + \dots = a_k n^{2k} + \dots = \Theta(n^{2k}). Also, (f(n))2=(aknk+… )2=ak2n2k+⋯=Θ(n2k)(f(n))^2 = (a_k n^k + \dots)^2 = a_k^2 n^{2k} + \dots = \Theta(n^{2k}). Hence, f(n2)=Θ(f(n)2)f(n^2) = \Theta(f(n)^2) is TRUE.

  • Option B: For a constant function f(n)=c>0f(n) = c > 0, f(n2)=cf(n^2) = c and (f(n))2=c2(f(n))^2 = c^2, so lim⁡n→∞f(n2)(f(n))2=1c≠0\lim_{n \to \infty} \frac{f(n^2)}{(f(n))^2} = \frac{1}{c} \neq 0. Thus, f(n2)=o(f(n)2)f(n^2) = o(f(n)^2) is false.

  • Option C: For an exponential function such as f(n)=2nf(n) = 2^n, f(n2)=2n2f(n^2) = 2^{n^2} and (f(n))2=(2n)2=22n(f(n))^2 = (2^n)^2 = 2^{2n}. Since 2n22^{n^2} grows strictly faster than 22n2^{2n}, 2n2≠O(22n)2^{n^2} \neq O(2^{2n}), so this statement is false.

  • Option D: For f(n)=22nf(n) = 2^{2^n}, f(n2)=22n2f(n^2) = 2^{2^{n^2}} and (f(n))2=22n+1(f(n))^2 = 2^{2^{n+1}}. Here (f(n))2(f(n))^2 grows faster than f(n2)f(n^2) for certain slowly growing functions (or consider f(n)=2−nf(n) = 2^{-n}, or f(n)=1/nf(n) = 1/n if restricted to strictly decaying functions). For f(n)=2−nf(n) = 2^{-n}, f(n2)=2−n2f(n^2) = 2^{-n^2} while (f(n))2=2−2n(f(n))^2 = 2^{-2n}, and 2−n22−2n→0\frac{2^{-n^2}}{2^{-2n}} \to 0, so f(n2)≠Ω((f(n))2)f(n^2) \neq \Omega((f(n))^2).

Therefore, option A is the only correct statement.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Asymptotic Analysis previous year question is Q11 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Asymptotic Analysis in Algorithms, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Asymptotic Analysis in GATE CSE

Asymptotic Analysis has 31 GATE CSE PYQs across 19 papers from 2011 to 2026. 15 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2022.

How GATE tests Asymptotic Analysis

More from GATE CSE 2022

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2022 · Q11 · MCQ

Which one of the following statements is TRUE for all positive functions f(n)?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.