0 votes
Prove Ө(log2 *log3 *log4 *...*logn) = Ө(n log n)

That is, prove both the the big Oh and big Omega side.
in Asymptotic Analysis by AlgoMeister (768 points)
reshown by
We observe that log 1 + log2 + log3 + log4 +... + logn = log (1.2.3.4..n) = log (n!)

2 Answers

+1 vote
 
Best answer
log1 + log 2 + log 3 + ...... + log n = log ( 1*2*3 .... *n) = log(n!)

log1 + log 2 + log 3 + ...... + log n  <= log n + log n + log n + ..... + log n

                                                      <= n log n

log1 + log 2 + log 3 + ...... + log n  = O(n log n)

log1 + log 2 + log 3 + ...... + log n  >= n/2 log n/2

log1 + log 2 + log 3 + ...... + log n  = big-omega(n log n)

so, log1 + log 2 + log 3 + ...... + log n  = Theta(n log n)
by AlgoMeister (900 points)
selected by
–1 vote

Hi there

Simplely, you are already be able to compare two function.

They are the same n items on both side, like A1*A2*...An  and B1*B2*...Bn and here we got An = lognn and B1 = B2 = Bn = log2n (hopes you means that is based 2  by convention)

It is clear that A1 = log2n = B1 = log2n ; A2​=log3n < B2 = log2n, A3 = log4n < B3= log2n ...

for most easy example, log24=2, log44 = 1, log84 < 1 the larger the base is, the smaller the logan is.

so...each item in the array A is equal or less than the counterpart in array B, thus, A = O(B) //BigOh

by Active (284 points)
edited by
Thank you Winterrollx. But what I actually want to know is whether log2n *log3n *... *lognn = Theta((log n)^n), not big-Oh. Otherwise that is a too simple question to ask. I have edited the question.
The Book: Analysis and Design of Algorithms | Presentations on Slideshare | Lecture Notes, etc
...