GATE / CS ARCHIVE

GATE CSE 2017 SET 1 / QUESTION 4

GATE CSE 2017 Set 1 Q4

Algorithms · Asymptotic Analysis & Recurrences · Full GATE CSE 2017 Set 1 paper

GATE 2017 Set 1, Q4 1 mark · MCQ
Report issue

Asymptotic Analysis & Recurrences

Question 4, GATE 2017: Arrange 10, √n, n, log₂n, 100/n in increasing asymptotic complexity. A log₂n,100/n,10,√n,n; B 100/n,10,log₂n,√n,n; C 10,100/n,√n,log₂n,n; D 100/n,log₂n,10,√n,n.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. Compare eventual growth rather than the values at a particular small n. The reciprocal 100/n tends to zero while 10 stays constant.

2. log₂n is unbounded, but log₂n/√n→0. Also √n/n=1/√n→0. These limiting ratios put logarithm below square root below linear growth.

3. Consequently 100/n < 10 < log₂n < √n < n in asymptotic growth, option B. Constants such as 100 do not reverse eventual ordering.

Original paper, page 3 · Answer key