solve the following recurrence relations a. π(π) = π( π/4) + π( π/2 ) + π^2 b. T(n) = T(n/5) + T(4n/5) + n c. π(π) = 3π( n/4 ) + ππ^2 f. π(π) = (π/πβ5) * π(π β 1) + 1 g. π(π) = π(log π) + log π h. π(π) = π (π^ 1/ 4) + 1 i. π(π) = π + 7 βπ β π(βπ) j. π(π) = π ( 3π/4 ) + 1/root(n)
The Answer to the Question
is below this banner.
Can't find a solution anywhere?
NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?
Get the Answers Now!You will get a detailed answer to your question or assignment in the shortest time possible.
Here's the Solution to this Question
a.
so, we have geometric series:
c.
Comparing withΒ Β :
so, we have:
by Master Theorem:
b.
additive term is exactly the current subproblem size, so T(n) is simply the sum of all numbers that appear in this tree. the:
Β andΒ
so,
g.
for recursion tree:
there areΒ Β Β levels, and each subproblem at level i has one problem of sizeΒ
whereΒ Β andΒ
So, the upper bound we have:
This is true becauseΒ Β for large n, andΒ Β and use geometric series.Β
Also,Β
so,
j.
Comparing withΒ Β :
so, we have:
then, by Master Theorem:
h.
i.
letΒ Β , then:
f.