367 views
0 votes
0 votes

How the case is matched  ? :

 

T(n) = 2T(n/2) + O(n * m)

we have a = 2, b = 2, c = 1 and c = $Log_ba$  (case 2)

Hence, T(n) = O(n * m * log n)

Now, substituting m with n

T(n) = O(n2 * log n)

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
jatin khachane 1 asked Dec 1, 2018
312 views
T(n)=4T(√n)+nHow can we solve it using master theorem using subsitution and renaming.
0 votes
0 votes
2 answers
2
Verma Ashish asked Sep 19, 2018
748 views
How to solve the given recurrence relation using master's theorem?T(n)=T(${n^{1/2}}$)+n
0 votes
0 votes
0 answers
3
hitendra singh asked Aug 8, 2018
770 views
consider the following c program AA(n){ if(n<=1) return (n2+n+1);else return ( 5A(n/2)+ 3A(n/2)+n2}find time complexity T(n)=?
0 votes
0 votes
1 answer
4
Venkat Sai asked Nov 3, 2017
360 views
can masters theorem be used when base condition is given in a recurrence ?can we directly apply masters theorem to any recurrence ?