2
30kviews
Which are the different methods of solving recurrences? Explain with example.
1 Answer
| written 8.8 years ago by |
There are mainly three ways for solving recurrences.
1) Substitution Method: We make a guess for the solution and then we use mathematical induction to prove the the guess is correct or incorrect.
For example consider the recurrence T(n) = 2T(n/2) + n
We guess the solution as T(n) = …