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:

  1. Substitution method
  2. Recursion Tree Method
  3. Master Theorem
  4. Akra-Bazzi method (section 4.7 of the CLRS book)