in Study Resources
447 views
0 votes
0 votes
Hi everyone!

I've been recently asked by one of my friends to prove an equation but still, I'm confused how to get it started tho.

log(n!) = Ω(nlog(n))

Does anyone know how to help?
I'll be very grateful if someone comes to reply to my issue.

Thanks in advance.
in Study Resources
by
447 views

2 Comments

bro n! is just n^n
1
1
Thank you, brother.
0
0

1 Answer

0 votes
0 votes
Best answer
n! can be written as n(n-1)(n-2).....1.

$n! = n(n-1)(n-2)...1.$

Highest order term in the product is $n^{n}$.

In time complexity , the lower order terms do not contribute.

Thus , $n! = \Omega(n^{n}) => log(n!) = \Omega(log(n^{n})) = \Omega(nlog(n))$

More formally , $log(n!) = \Theta(nlog(n))$
selected by

1 comment

Thanks pal for your clear explanation, that helped me alot!
Finally, now I can understand this type of questions very easy and without any dark point remaining.
0
0