In our algorithms class, my professor insists that n! has a higher order of growth than n^n. This doesn't make sense to me, when I work through what each expression means.
n! = n * (n-1) * (n-2) * ... * 2 * 1
n^n = n * n * n * n * ... * n * n
Since n
is, by definition, greater than n -1
or n-2
, shouldn't any n^n, which is the product of n
number of n
's, be greater than n!, which is the product of an n
number of integers less than n
?
n^(1/2) * n^n
. – beachwood23 Feb 12 '14 at 16:55