0
$\begingroup$

Which function grows faster:

$$f(n) = 4^{n^2 \log_2 n} \text{ or } g(n) = (n!)^n$$

Which is true?

  • $f(n) = O(g(n))$
  • $g(n) = O(f(n))$
  • i.e., $f(n) = \Theta(g(n))$
  • none of the above?

For lower values of $n$, it looks like $f(n)$ is bigger, but I'm not sure for very big values of $n$.

Ainsley H.
18.1k3 gold badges44 silver badges68 bronze badges
asked Sep 27, 2023 at 9:29
$\endgroup$

1 Answer 1

3
$\begingroup$

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} \frac{f(n)}{g(n)} \ge \lim_{n \to \infty} \frac{n^{2 n^2}}{n^{n^2}} = \lim_{n \to \infty} n^{n^2} = +\infty. $$

answered Sep 27, 2023 at 10:56
$\endgroup$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.