Friday, 12 June 2015

Q36,paper3 ,d13. The recurrence relation T(n)=mT(n/2)tan^2 is satisfied by



(A)    O(n2)
 (B) O(n1g m)
(C) O(n2 lg n)
(D) O(n 1g n)

Explanation 
Master Method is a direct way to get the solution. The master method works only for following type of recurrences 
T(n) = aT(n/b) + f(n) 
highest degree of f(n) is c.
There are following three cases:
T(n)= O(nc) where a<bc                       eq 1.
T(n)= O(nc log n) where bc=a. eq 2.
T(n)=O(nlogba) where a> bc.             eq 3

In our case
T(n)=mT(n/2)tan2

value of a is m, not known.  so we cannot say  a= 2^C OR NOT  . WE CAN NOT SAY WHICH EQUATION WILL FOLLOW.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.