ABSTRACT

This toolkit contains the mathematical strategies required to transform recurrence relations—where a function is defined in terms of itself—into closed-form expressions. Converting to closed form allows for direct calculation of values and clear asymptotic analysis.


The Primary Solving Techniques

  • Master Theorem
    • Usage: A rapid “plug-and-play” shortcut for divide-and-conquer recurrences of the form .
    • Logic: Compare with to determine if the work is concentrated at the root, the leaves, or evenly distributed.
  • Unraveling (Iteration Method)
    • Usage: Best for recurrences that are easy to expand step-by-step to find a summation pattern.
    • Step: Repeatedly substitute the recurrence into itself ( times) until a pattern emerges, then solve the resulting summation.
  • Guess and Check (Substitution Method)
    • Usage: When a pattern is easily spotted from small values of .
    • Constraint: Requires a formal Proof by Induction to verify the guess is mathematically sound for all .
  • Characteristic Polynomial
    • Usage: For linear recurrences like Fibonacci where depends on multiple previous terms.
    • Logic: Solve the roots of the characteristic equation to find the growth constant .

Master Theorem Quick-Reference

For , the complexity is determined by:

ConditionResultIntuition
Work is dominated by the non-recursive part.
Work is distributed evenly across tree levels.
Work is dominated by the recursive calls (leaves).

🧮 Summary Comparison

TechniqueEffortReliabilityBest Use Case
Master Theorem🟢 Low🟡 HighStandard forms.
Unraveling🟡 Med🟢 HighSingle-term recurrences (Hanoi/Sums).
Guess & Check🟡 Med🔴 Low*When the pattern is obvious (Power of 2).
HRRCC🔴 High🟢 HighLinear sequences (Fibonacci).

NOTE

Low reliability refers to the difficulty of making the initial guess, not the validity of the induction proof.


Examples

Pair of Elements

Find the number of pairs of elements from a set of size

Let be the number of unordered pairs of elements from a set of size

Find the Pattern

10
21
33
46
510
We find the pattern to be matching that of the diagonal column from [[Pascal’s IdentityPascal’s Triangle]]

NOTE

There is another definition for this sequence, it is called Triangle Numbers This is due to the number of elements that can arrange them into a equilateral triangle

Partition the Set

Splitting all the pairs into 2 disjoint sets

Solution

Unraveling
Guess and Check

Guess

Requires an induction proof to verify that the guess I have is correct Claim: for all Base Case: Base case holds Inductive Hypothesis: Suppose that for some , Inductive Step: Want to show that

Since Induction holds, the closed form for

The Tower of Hanoi

How many moves it take to relocate all disks to another pole?

  • Can only move one disk at a time
  • Cannot put a larger disk on top of a smaller disk

Find the Pattern

Let be the number of moves to solve puzzle with disks

11
23
37
415
By the pattern, we can find the ,

NOTE

Might be helpful to think recursively in order to prove the correctness of

Recursive solution

  1. Move the the stack of the smallest disks to an empty pole
  2. Move the largest disk to the remaining empty pole
  3. Move the stack of the smallest disks to the pole with the largest disk

Solution

Guess and Check

Guess

Requires Induction Proof Claim: For each positive integer , Base Case: if , then According to the recurrence, plugging into the formula gives Inducive Hypothesis Suppose is a positive integer greater than and, as the induction hypothesis, assume that . Inductive Step We need to show that

Unravel
Folder Contents

4 items under this folder.