Defining Recurrence Relations
A recurrence relation defines each term of a sequence using earlier terms, paired with initial conditions to start. Without initial conditions, the sequence is undetermined, just like a recursive function without a base case.
| Component | Description | Example |
|---|---|---|
| Recursive Rule | How a term depends on earlier ones | |
| Initial Conditions | The starting values needed to begin |
To unfold a recurrence, you compute it forward from the initial conditions. A closed form is a direct formula for avoiding earlier terms, such as for with .
Why Recurrences Matter
Recurrences model processes building on previous states, mirroring recursion in programming. They are central to algorithm analysis, describing running times like .
| Task | Method | Outcome |
|---|---|---|
| Evaluation | Unfolding forward | Exact sequence values |
| Solving | Characteristic equation or Master Theorem | Closed-form complexity () |
Common Pitfall: Supplying too few initial conditions. A recurrence reaching back steps needs starting values. requires two starting values, or the sequence remains undefined.