GATE CS 2017, set 1 · Question 4 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider the following functions from positive integers to real numbers:
10, √n, n, log₂ n, 100/n.
The CORRECT arrangement of the above functions in increasing order of asymptotic complexity is:

  1. (A) log₂ n, 100/n, 10, √n, n
  2. (B) 100/n, 10, log₂ n, √n, n
  3. (C) 10, 100/n, √n, log₂ n, n
  4. (D) 100/n, log₂ n, 10, √n, n
Answer

Answer (B)

Answer from the official GATE CS 2017 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes