Question: Use the substitution method to show that for the recurrence equation: 1) T(1) = 5 T(n) = T (n-1) + 4 prove the solution is
Use the substitution method to show that for the recurrence equation:
1) T(1) = 5
T(n) = T (n-1) + 4
prove the solution is T(n) = O(N^3). if not why?
2) T(1) = 4
T(n) = T(n01) + 7n
prove the solution is T(n) = O(N) if not why?
3) T(1) = 2
T(n) = T(n/2) + n
prove the solution is T(n) = O(log n) if not why?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
