Question: Task: Use a recursion tree to determine a good asymptomatic upper bound on the recurrence T(n) = 3T(n/2) + n. Use the substitution method to

Task: Use a recursion tree to determine a good asymptomatic upper bound on the recurrence T(n) = 3T(n/2) + n. Use the substitution method to verify your answer.

Solution:

Task: Use a recursion tree to determine a good asymptomatic upper bound

Could you please explain step by step what is going on in this problem? What is required to find, and why do we substitute a particular condition into the equation? Why they have T(n[n/2]) instead of just T(n)? How did we get 3cn^(lg(3))/2^lg(3) - 3n + n?

Since in a recursion tree, the depth of the tree will be lg(n), and the number of nodes that are i levels below the root is 3i. This means that we would estimate that the runtime is i=0lg(n)3i(n/2i)=ni=0lg(n)(3/2)i=n.5(3/2)lg(n)1nlg(3). We can see this by performing a substutiton T(n)cnlg(3)2n. Then, we have that T(n)=3T(nn/2)+n3cnlg(3)/2lg(3)3n+n=cnlg(3)n So, we have that T(n)O(nlg(3))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!