All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · November 2021

Which of the given options provides the increasing order of asymptotic complexity of f1, f2, f3 f4 functions and ? f1(n) = 2n A. f2(n) = n3/2 B. f3(n) = n log n C. f4(n) = nlog n D.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. C, B, D, A

Explanation

n log n < n^(3/2) < n^(log n) < 2ⁿ (n^(log n) = 2^((log n)²) grows slower than 2ⁿ). So C, B, D, A.

More Data Structures and Algorithms questions