CMSC 603 Notes, 3/19/99

Dr. Sherman advised that Transformation should be added to our
list of proof techniques.

Discussed Exam 1
 

Generating Functions

Sequence
    F = ( 0, 1, 1, 2, 3, 5, 8, ...)

Generating Function
    G(x) = 0x0 + 1x1 + 2x2 + 2x3 + ...

                   ¥
          = å fixi
                          i=0
The advantage to Generating Functions is that once the sequence is transformed
we can use the power of Calculas to manipulate the function.

Ideas:

Method:
  1. Choose general form of generaing function G(x)
  2. Using recurrence, derive formula for G(x) in terms of x
  3. Deive a closed-form expression for the coefficients of G(x)
Example:
    Fibonacci numbers

              0 ,             n = 0
    fn =    1 ,              n = 1
              fn-1 + fn-2 ,   n > 1

    1)  Choose general from
                          ¥
            G(x) = å fixi
                          i=0

    2) Solve for G(x) in terms of x

          fn = fn-1 + fn-2 ,   n > 1
            ¥              ¥                 ¥
            å fixi = ( å fi-1xi ) + ( å fi-2xi )
            i=2                    i=2                        i=2
            ¥                       ¥                         ¥
            å fixi        = ( xå fi-1xi-1 )  +  ( x2å fi-2xi-2 )
            i=2                               i=2                                   i=2
         G(x) - 0 - x    x[G(x) - 0]            x2G(x)

         G(x) = x + xG(x) + x2G(x)