Recurrence Relation

Context: FIT1058_MOC, FIT2004_MOC · defines a sequence from earlier terms · base case(s) + general case · turned into a closed form by Mathematical Induction FIT2004 use: a recursive algorithm’s running time obeys a recurrence (, ) — solved for a Big-O class by telescoping in Solving Recurrences (Telescoping).

Quick Revision

  • 🎯 Objective: each term as an expression in previous terms ➔ base case(s) + general case.
  • 📦 Core Components: base case + general rule ➔ must determine every term uniquely.
  • ⚡ Key Constraint: a -step rule needs base cases; closed form via explore–formulate–prove.

📝 Core

1. The Definition

  • Recurrence ➔ each term from previous terms; base case ➔ finitely many initial terms given explicitly; general case ➔ a rule for a generic term.

2. Base Case Is Essential

  • Rule alone defines nothing ➔ gives odds from , evens from — same rule, different sequence.
  • Depth = base count ➔ a -step rule needs base cases; with only fixes just the odd positions.

3. Recurrence → Closed Form

  • Explore ➔ formulate ➔ prove ➔ compute first terms, guess the pattern, prove by Mathematical Induction.

When It Flips: the recurrence is easiest to write; the closed form reveals growth and gives any term directly. When no closed form exists (Fibonacci at first), bounds can still be proved by induction. The programming analogue is Recursion.

📊 Exam Execution Trace

Manual Execution Trace

:

Step / State
0 (Init)1—1
1213
2337
34715

🧠 Active Recall