I understand the math here
n! < n^n.
But why can't O(log(n!))
simply be just O(log(n!))
?
Why is there a need, given f(n) ~ O(g(n))
, f(n) != g(n)
is a must ? I repeatedly see the pattern in textbooks. Can't comprehend the need for it.
Is it because we want to map all f(n)'s to a limited list of g(n)'s - logn, n, nlogn, n^2, n^3
etc?
Ex -
Is log(n!) = Θ(n·log(n))? Why can't it just be O(log(n!))