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:
- (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
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