287 views

2 Answers

1 votes
1 votes

in c option 
it says f(n)<=2n+10 
        here f(n)=2n-4
means 
2n-4 <=2n+10
2* 2-4 <=2n  * 210

2-4 <=C * 210

where c is constant for c>0
there fore c option is true..

 

 similarly for (a) option there exist a positive constant for which this function  is theta of n hence true 
also we can both are asymptotically equal so (a) option is true.

(b) option  

f(n)>=n1000
2
n-4 >=n1000
asymptotically  we can say :2>=n1000 

apply log both side 
n * log 2 >=C * (10000log n)
clearly LHS is bigger so this option also true 
so (d) answer..

correct me  if any mistake thanks...
 

0 votes
0 votes

Ans : (b)

For very large value of n , n-10 ≈ n-4 ≈  n+3 ≈  n

Hence f(n)  = O(2n-10≈  O(2n) and Also  f(n)  = 2n+3  ≈  2n => f(n)  = Ω(2n)  => f(n)  = Θ(2n)

Now since f(n) > n1000 but f(n) ≥ 2n  Hence 2 asymptotically tight lower bound. Hence f(n)  = Ω(2n)

Hence f(n)  = Ω(n1000) is false.

Hence option (b) is answer.

edited by

No related questions found