Section 2.4: Recursion and Recurrence Relations

Abstract:

In this section we examine the definition and multiple applications of recursion, and encounter many examples. We also solve one type of linear recurrence relation to give a general closed-form solution.

Recursion

A recursive definition is one in which

  1. A basis case (or cases) is given, and

  2. an inductive or recursive step describes how to generate additional cases from known ones.
Example: the Factorial function sequence:

  1. F(0)=1, and

  2. F(n)= nF(n-1).
Note: This method of defining the Factorial function obviates the need to ``explain'' the fact that F(0)=0!=1. For that reason, it's better than defining the Factorial function as ``the product of the first n positive integers,'' which it is from n=1 on....

In this section we encounter examples of several different objects which are defined recursively (See Table 2.5, p. 131):

Solving Recurrence Relations

Vocabulary:

The author suggests an ``expand, guess, verify'' method for solving recurrence relations.

Examples:

  1. Practice 11, p. 121

  2. Practice 19, p. 128

  3. Practice 21, p. 133

Example: general linear first-order recurrence relations with constant coefficients.

displaymath156

``Expand, guess, verify'' (then prove by induction!):

displaymath157



LONG ANDREW E
Wed Sep 25 10:31:55 EDT 2002