GATE / CS ARCHIVE

GATE CSE 1993 / QUESTION 8.7

Summing big-O terms in a multiple-select item

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

GATE 1993, Q8.7 2 marks · MSQ
Report issue

Asymptotic Analysis & Recurrences

Question 8.7, GATE 1993: Classify Σ(k=1…n)O(n) among O(n),O(n²),O(n³),O(3n²),O(1.5n²).
Tap to enlarge
Select all that apply
Answer & solution

Answer: B,C,D,E under a uniform O(n) bound (no official key was published)

If each summand has magnitude at most Cn with the same constant C, the sum has magnitude at most Cn². Thus it belongs to O(n²),and constant factors 3 or 1.5 do not change that class. O(n³) is also a valid looser upper bound,so C must be selected in a literal multiple-select reading. O(n) is not guaranteed because n terms each equal to n sum to n². The notation needs a uniform bound over k: if hidden constants depend unboundedly on k, such as terms kn, the sum can instead be Θ(n³). Big-O is an upper-bound class,not an assertion of tightness.

Original paper, page 9