Question: For the following function, find a function as simple as possible that reflects its asymptotic behavior (use big-notation). What does as simple as possible mean to begin with? A short definition would be helpful!
$$f(n) = 3^{2n-1} + 4^n + n^2 log(n!)$$
What I've did:
$3^{2n-1} \in O(2n)$
$4^n \in O(4^{n})$
$n^2 \in O(n^2)$
$\log(n!)\in O(max(log(n), 1) = O(log(n))$
And so
$n^2 \log(n!)\in O(max(n^2, log(n)) = O(n^2)$
Finally I get
$f(n)\in O(n^2 * 4^n * n^2 * 2n) = O(2*n^5*4n)$
Is this correct?
$3^{2n-1} \in O(2n)$ is quite false !
It's $3^{2n-1} \in O(9^n)$ (as $3^{2n}=9^n$, essentially) and his dominates $4^n$ in the second term and certainly everything polynomial and logarithmic.
So $f(n) \in O(9^n)$ is IMHO the simplest assymptotic form (single exponential term).