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

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!