edited by
537 views
1 votes
1 votes
while solving this recursive equation:

T(n)=T(n/3)+T(2n/3)+n;

i tried the master theorem ignoring the less long term T(n/3)

this gave me : T(n)=T(2n/3)+n; and it leads to O(n) Time complexity.

And doing with recursive tree  method it gave me   N(logN base 3/2)..

So what is wrong with master theorem approach?
edited by

3 Answers

0 votes
0 votes
The problem is ignoring the smaller term. You cannot ignore the smaller term like this because even though small it has an effect on the overall running of the function or relation. So whenever you encounter such problems, use recurrence tree method only.
0 votes
0 votes

The master theorem can be employed to solve recursive equations of the form

images/lecture05/masterTheoremForm.png

where a ≥ 1, b > 1, and f(n) is asymptotically positive.

The equation that you are trying to solve can't be solved effectively by using master theorem, Best to go with recursive tree method to get the optimal answer.

Related questions

0 votes
0 votes
1 answer
1
_Madhuri asked Nov 2, 2021
331 views
What will be the recurrence relation for max heapify. Please explain with example.
1 votes
1 votes
0 answers
2
srestha asked May 19, 2019
640 views
Let $A(n)$ denotes the number of $n$ bit binary strings which have no pair of consecutive $1’s.$ what will be recurrence relation for it and what will be it’s Time Co...
0 votes
0 votes
1 answer
3
jatin khachane 1 asked Jan 2, 2019
353 views
Let T(n) be a function defined by the recurrence T(n)=2T(n/2)+√n for n≥2 andT(1)=1Can someone please explain solution of this using back substitution
0 votes
0 votes
3 answers
4
aditi19 asked Oct 6, 2018
1,153 views
what is the recurrence relation for merge sort?