Question:

Rank the following functions by order of growth (Highest running time to lowest running time):
1. $n \times 3^n$
2. $2^{\log(n)}$
3. $n^{2/3}$
4. $4^n$
5. $4^{\log(n)}$
Choose the correct answer from the options given below: 

Show Hint

Exponential growth dominates polynomial growth, and logarithmic growth is the slowest.
Updated On: Apr 6, 2025
  • (E), (A), (D), (C), (B)
  • (D), (A), (E), (B), (C)
  • (D), (E), (A), (B), (C)
  • (E), (D), (A), (B), (C)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The growth order is evaluated as follows: - n × 3n: Exponential growth dominated by 3n. - 2lg n: Equivalent to n. - n2/3: Sub-linear polynomial growth. - 4n: Higher exponential growth compared to 3n. - 4lg n: Equivalent to n2, polynomial growth.
Was this answer helpful?
0
0