Question: Solve the following recurrence relations using substitution method: 1. T(n)=T(n 1)+n,T(1)=1 2. T(n) = 2T(n/2)+n,T(1) = 1 3. T(n) = 4T(n/2) + n, T(1)
Solve the following recurrence relations using substitution method: 1. T(n)=T(n 1)+n,T(1)=1 2. T(n) = 2T(n/2)+n,T(1) = 1 3. T(n) = 4T(n/2) + n, T(1) = 1 4. T(n)= 8T(n/2) + 1,7(1) = 1 5. T(n) = 2T(n/2)+vn,T(1) = 1 You must show 1) the exact closed form; 2) all detailed steps leading to the closed form.
Step by Step Solution
3.52 Rating (159 Votes )
There are 3 Steps involved in it
Following is the answer ... View full answer
Get step-by-step solutions from verified subject matter experts
