Skip to content
GATEiit

GATE CSE 2017 Session 1 Q14: Order functions by growth: 10, √n, n, log n, 100/n

Syllabus topic: Asymptotic worst-case time and space complexity

Question

Consider the following functions from positive integers to real numbers:

10, n, n, log⁡2n, 100n.

The CORRECT arrangement of the above functions in increasing order of asymptotic complexity is:

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: B (official GATE 2017 final answer key)

Concept used: Asymptotic growth ordering: decreasing functions < constants < logarithms < polynomial powers.

Concept notes

Loading notes…

First step: Note that 100/n tends to 0, 10 is constant, and compare log⁡2n with n for large n.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Asymptotic worst-case time and space complexity

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key