performancetime-complexityruntime-compilation

Time complexity in ascending order


What is the ascending order of growth rate of the following functions:

  1. 2^((logn)^1/2)

  2. 2^n

  3. 2^(n/2)
  4. n^(4/3)
  5. n(logn)^3
  6. n^logn
  7. 2^(n^2)
  8. n!

    log n is with base 2.


Solution


  • Compiling all of the reasoning steps above, we deduce the ascending order to be:

    (1). enter image description here

    (5). enter image description here

    (4). enter image description here

    (6). enter image description here

    (3). enter image description here

    (2). enter image description here

    (7). enter image description here

    (8). enter image description here