Question
Consider the following functions from positive integers to real numbers:
The CORRECT arrangement of the above functions in increasing order of asymptotic complexity is:
Official answer and solution
- Official answer
- B
- From
- Official GATE 2017 answer key
Solution
Evaluate the asymptotic behavior of each function as to establish their order of growth.
Let us examine the limit of each function as :
- : As , . Its complexity is , which decreases with and is asymptotically smaller than any positive constant.
- : This is a constant function, .
- : This function grows unboundedly as , but slower than any polynomial function with .
- : This is a polynomial of degree .
- : This is a linear function, which grows faster than .
Arranging these functions in increasing order of asymptotic complexity gives:
This corresponds to Option B.
Final answer
B
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 1
- Question
- 4 of 65, printed as CS Q.4
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.