GateAI
Asymptotic Analysis

GATE CSE 2015 Set 3 · Q4

MCQ1 markMedium

Time

Consider the equality ∑i=0ni3=X\sum_{i=0}^{n} i^3 = X and the following choices for XX I. Θ(n4)\Theta(n^4) II. Θ(n5)\Theta(n^5) III. O(n5)O(n^5) IV. Ω(n3)\Omega(n^3) The equality above remains correct if XX is replaced by

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) I or III or IV but not II

Asymptotic Analysis

The sum of cubes of the first nn integers is given by the formula:

∑i=0ni3=(n(n+1)2)2=n2(n+1)24=n4+2n3+n24\sum_{i=0}^{n} i^3 = \left(\frac{n(n+1)}{2}\right)^2 = \frac{n^2(n+1)^2}{4} = \frac{n^4 + 2n^3 + n^2}{4}

The leading term is n44\frac{n^4}{4}, so the exact growth rate is Θ(n4)\Theta(n^4).

Let us analyze the given asymptotic choices for XX:

  • I. Θ(n4)\Theta(n^4): True, since n4+2n3+n24=Θ(n4)\frac{n^4 + 2n^3 + n^2}{4} = \Theta(n^4).

  • II. Θ(n5)\Theta(n^5): False, because the polynomial has degree 44, not 55.

  • III. $O(n^5)$: True, because O(n5)O(n^5) represents an upper bound and n4≤c⋅n5n^4 \le c \cdot n^5 for all sufficiently large nn.

  • IV. Ω(n3)\Omega(n^3): True, because Ω(n3)\Omega(n^3) represents a lower bound and n4≥c⋅n3n^4 \ge c \cdot n^3 for all sufficiently large nn.

Therefore, replacing XX with I, III, or IV keeps the equality correct, but II does not [1]. This corresponds to option (C) [1].

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 Q4 of the GATE CSE 2015 Set 3 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 GATE CSE 2015 Set 3 has 2.

How GATE tests Asymptotic Analysis

More from GATE CSE 2015 Set 3

Share this solution

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

GateAI solution cardGATE CSE 2015 Set 3 · Q4 · MCQ

Consider the equality Σi=0n i3 = X and the following choices for X I. (n4) II. (n5) III. O(n5) IV. (n3) The equality above remains correct if X is replaced by

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.