2
votes
Which one grows faster, an exponential function where the exponent grows faster than logarithmic or a factorial powered by n?
With some manipulations:
$$
f(n) = 4^{n^2 \log n} = (2^2)^{n^2 \log n} = (2^{\log n})^{2n^2} = n^{2 n^2}.
$$
and:
$$
g(n)= (n!)^n \le (n^n)^n = n^{n^2}.
$$
Taking the limit:
$$
\lim_{n \to \infty} \...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
asymptotics × 1421time-complexity × 251
landau-notation × 223
algorithms × 217
algorithm-analysis × 209
recurrence-relation × 202
big-o-notation × 156
runtime-analysis × 142
complexity-theory × 134
master-theorem × 66
terminology × 43
recursion × 35
data-structures × 31
proof-techniques × 31
notation × 26
sorting × 25
mathematical-analysis × 23
graphs × 20
upper-bound × 16
lower-bounds × 14
discrete-mathematics × 13
loops × 13
combinatorics × 12
arrays × 10
space-complexity × 10