Recurrence Relation
Recurrence relation defines a sequence of values by giving one or more initial terms, together with an equation expressing each subsequent term in terms of earlier ones.
Fibonacci Sequence
The famous Fibonacci sequence is defined by a particularly simple recurrence relation:
The initial two terms of the Fibonacci sequence are defined as and . All subsequent terms are defined by the equation , for
Solving Recurrences
I know 3 main techniques to solve recurrence:
- Substitution method
- Recursion Tree Method
- Master Theorem
- Akra-Bazzi method (section 4.7 of the CLRS book)