• edited by
4,036 views
1 1 vote
which of the following cannot be solved using masters theorem?

a) T(n) = 2T(n/2) + n/logn

b) T(n) = 2T(n/2) + logn

c)T(n)=T(n/2)+logn

d) non of these

2 Answers

1 1 vote
General form of master's theorem -

T(n)=aT(n/b)+Q(n^k (log^p)n)

where a>=1,b>1,k>=0 and p is real.

according to this all are satisfied so ans is D.
1 1 vote

 

Inadmissible equations

The following equations cannot be solved using the master theorem:

  • a is not a constant; the number of subproblems should be fixed

  • non-polynomial difference between f(n) and  (see below; extended version applies)

  •   cannot have less than one sub problem

  • f(n), which is the combination time, is not positive

  • case 3 but regularity violation.

In the second inadmissible example above, the difference between  and  can be expressed with the ratio . It is clear that  for any constant . Therefore, the difference is not polynomial and the basic form of the Master Theorem does not apply. The extended form (case 2b) does apply, giving the solution .

I have completely copied this portion from wikipedia https://en.wikipedia.org/wiki/Master_theorem_(analysis_of_algorithms). 

and from the second inadmissible equation, it is clear that the correct answer is A

Position:
Show:

Related questions

2 2 votes
1 answers 1 answer
1.1k
1.1k views
2 2 votes
1 answers 1 answer
1.7k
1.7k views
0 0 votes
1 1 answer
867
867 views
rexritz asked Aug 13, 2023
867 views
$T\left ( n \right )= 8T\left ( \frac{n}{2} \right )+\left ( n\cdot logn \right )^{2.99}$Also can $\mathcal{O}(n^{3})$ be an upper bound to above recurrence relation?
0 0 votes
1 answers 1 answer
11.0k
11.0k views
lucasbbs asked Feb 28, 2022
10,988 views
How do I apply the master theorem in the above recurrence? Please give details about which case and on hiow to solve the asymptotic analysis...