in Algorithms edited by
454 views
1 vote
1 vote

Which of the following are TRUE?

  1. $n! = \theta ((n + 1)!)$
  2. $\log4 n   = \theta ( \log2 n  )$
  3. $\sqrt{\log n} = O(\log \log n)$
  1. (i) & (iii) only
  2. (i) & (ii) only
  3. (ii) only
  4. (i),(ii) and (iii)
in Algorithms edited by
by
454 views

1 comment

Can anyone explain the answer?
0
0

1 Answer

3 votes
3 votes
Best answer

i)   n! = ϴ((n + 1)!)  is false as...
we can't find any constant C1>0 such that C1((n+1)!) <= n! for all n>=n0
ii)  log4 n   = ϴ( log2 n  ) is true as...
Let there exists some constant  C1 and C2 such that C1( log2 n) <=  log4 n and log4 n <=  C2(log2 n) for all n>=n0.

Let us find value of C1

C1<= (log4 n / log2 n )

C1<= (log4 n . logn 2)
C1<= log4 2
C1<= 1/2
 Similarly we can find value of C2

log4 n <=  C2(log2 n).
(log4 n / log2 n ) <= C2

(log4 n . logn 2)<= C2

log4 2<=C2
1/2 <= C2
Here we are able to find C1 and C2 which satisfy C1( log2 n) <=  log4 n and log4 n <=  C2(log2 n) for all n >= n0. Hence we can say that  log4 n   = ϴ( log2 n  ) is true
 

iii) √logn = O(log log n) is false as...
let n= 2^2^K

√logn= √(2 K)= (2 K/2)
log log n= K
We can't find a constant C such that 
(2 K/2) <= CK for all n > =n0 where (log log n)= K

So right option is C.

selected by

1 comment

can we not the value of c < 1/(n+1) . for it , condition would be satisfied . plzz explain why we cant take any value of c here.
0
0
Answer:

Related questions