GATE / CS ARCHIVE

GATE CSE 2015 SET 3 / QUESTION 20

GATE CSE 2015 Set 3 Q20

Algorithms · Asymptotic Analysis & Recurrences · Full GATE CSE 2015 Set 3 paper

GATE 2015 Set 3, Q20 1 mark · MCQ
Report issue

Asymptotic Analysis & Recurrences

Question 20, GATE 2015: Let X=Σ(i³), i=0,...,n. Which asymptotic descriptions of X are valid? I: Θ(n⁴); II: Θ(n⁵); III: O(n⁵); IV: Ω(n³). Options: (A) only I; (B) only II; (C) I or III or IV, but not II; (D) II or III or IV, but not I.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. The exact polynomial is n⁴/4+n³/2+n²/4. Its leading term supplies a two-sided Θ(n⁴) bound; a looser upper bound n⁵ and looser lower bound n³ remain valid, whereas a two-sided n⁵ bound does not.

2. Sum(i³, i=0..n)=[n(n+1)/2]²=Θ(n⁴). It is consequently O(n⁵) and Ω(n³), but not Θ(n⁵). Thus I, III, IV, C; equality to an asymptotic class is conventional membership notation.

Original paper, page 60 · Answer key