17,263 views
9 9 votes
How to solve above recurrence relation (With substitution method)??

2 Answers

1 1 vote

answer Wii be  O(n log4/3 n) using recursive tree method. 

0 0 votes

$T(n) = T(n/4) + T(3n/4) + n$

$a_{1} = 1 , a_{2} = 1$

$b_{1} = 1/4 , b_{2} = 3/4$

$g(n) = n$

$g(u) = u$

$(1/4)^p + (3/4)^p = 1$

when $p = 1, LHS = RHS$

This method gives $T(x) \epsilon \Theta(f(x))$

$f(x) = x^p.( 1 + \int_{1}^{x} g(u)/u^{p+1} )$

        $= x.( 1 + \int_{1}^{x} u/u^{2} )$                                        

        $= x.( 1 + \int_{1}^{x} 1/u )$

        $= x.( 1 + log x )$

$T(n) = \Theta(nlogn)$ , on replacing $x$ witn $n$

1. https://www.youtube.com/watch?v=Gl2v9G0Rn4k

• edited by
Position:
Show:

Related questions

1 1 vote
2 2 answers
1.5k
1.5k views
mdboi asked Oct 28, 2022
1,542 views
how do i apply master theorem to this? T(n)=2T(n/2)−n^3n
1 1 vote
1 1 answer
5.0k
5.0k views
ItzDc asked Jun 3, 2022
4,972 views
I can't figure out how to proceed and which case it's falling under after calculating h(n)
2 2 votes
3 3 answers
16.2k
16.2k views
sabir asked Nov 26, 2015
16,210 views
Which is right method to apply for this substitute or recursion...Can we convert it in master theorem format
2 2 votes
6 6 answers
26.8k
26.8k views
mohitrai0_0 asked Sep 28, 2018
26,804 views
I was wondering whether the recurrence T(n) = T(n/2) + 2n could be solved by using master theorem, and what would be the way. I tried solving the recurrence but can't. Th...