ABSTRACT

The Guess and Check method is a two-phase strategy for solving recurrences. First, you use intuition or small-value testing to “guess” the closed form. Second, you use Mathematical Induction to “check” (prove) that your guess is correct for all .


The Two-Step Workflow

Step 1: The Guess

Analyze the recurrence to find a pattern. You can do this by:

  • Tabulating Values: Calculate for and look for familiar sequences (powers of 2, squares, factorials).
  • Unraveling: Expand the recurrence a few times to see the general shape of the growth.

Step 2: The Check (Induction)

Once you have a “Claim” (), you must prove it:

  1. Base Case: Prove the claim holds for the smallest possible (usually or ).
  2. Inductive Hypothesis: Assume the claim is true for some (i.e., ).
  3. Inductive Step: Use the recurrence formula and your hypothesis to show that also matches the guess.

Case Studies

1. Pair of Elements (Triangle Numbers)

The Recurrence: with .

  • The Guess: By tabulating values , we identify the pattern of Triangle Numbers. We guess .
  • The Check (Inductive Step): Substitute the hypothesis: .
  • Result: The guess is verified.

2. The Tower of Hanoi

The Recurrence: with .

  • The Guess: Tabulating values suggests the form .

  • The Check (Inductive Step):

    Substitute the hypothesis: .

  • Result: The guess is verified.


Pros and Cons

FeatureDescription
StrengthExtremely powerful for non-standard recurrences that don’t fit the Master Theorem or HRRCC.
WeaknessYou must guess the exact form. If your guess is off by a constant (e.g., guessing instead of ), the induction will fail.
FlexibilityCan be used to prove Upper Bounds () even if you don’t know the exact closed form.

Expert Tips

  • Loose Guesses: If you can’t find the exact closed form, try to prove an inequality (e.g., “I guess ”) to establish the Big-O bound.
  • Inductive Strengthening: Sometimes, the induction only works if you subtract a lower-order term from your guess (e.g., guessing instead of just ).