Method

Basic method

This method uses induction to prove solutions to Recursive Complexity Definitions. As such, it follows the typical inductive structure:

  • Base case: show that the inequality holds for small .
  • Inductive step: substitute formula into recurrence and rearrange to obtain solution.

As this method can only prove a recurrence relation and not obtain a novel solution, it can only be used in instances where it is possible to make a good guess for the formula. This requires experience but can be made easier with heuristics.

Changing variables

Sometimes a variable substitution can be used to transform a recurrence relation into something similar to a familiar formula. For example, given

we can let (), and substitute to obtain

This gives us the relation

which has the known solution of . Undoing the substitution yields a solution for of .

Selecting substitution

Given a formula containing the recursive term , a substitution should be made such that is of the form for integers and . Common substitutions include:

  • More generally, for

Example

Given the recurrence equation , we can apply the substitution method to prove that this is equivalent to :

Base case

  • When , .
  • When , , so it does not hold for .
  • When , .
  • When , , so it does hold for .

Inductive step

Substituting into the recursive definition of gives . This can be rearranged in several steps:

  • As , this can be rewritten as: .