Question: Problem 2 (20 points) 1. (5 pts) Consider the recurrence T(n)=T(3n/4)+T(n/5)+n2,T(1)=1. Show that the solution to this is O(n2) using the substitution method (look at
Problem 2 (20 points) 1. (5 pts) Consider the recurrence T(n)=T(3n/4)+T(n/5)+n2,T(1)=1. Show that the solution to this is O(n2) using the substitution method (look at Section 4.3 of the book for a similar example). 2. (5 pts) Consider the function A(n)=2A(n1)/A(n2), with A(1)=A(2)=1. Find a () bound for A(n). 3. (10 pts) For each pair of functions indicate whether f(n) =O(g(n)),f(n)=(g(n)) or f(n)=(g(n)). Apply the definition of O(0,0,Q(O and show constants c,n0 such that the definition is true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
