MATH 302 Lecture 13

From Notes
Jump to navigation Jump to search

« previous | Wednesday, October 12, 2011 | next »


Strong Induction (cont'd)

"Once you see one you've seen them all."

Well-ordering Principle

Every non-empty subset or has a smallest element.


Division Algorithm

Take an integer and a positive integer , then we have for some with , that

For example:

With these conditions, and are unique.


Given a set , then

b a t b − at
10 3 0 10
    1 7
    -1 13
    2 4
    3 1

We can show that

  1. is non-empty
  2. Let be the minimal element in . Then for and


Structural Induction and Recursion

Define for recursively and uniquely for all positive integers:

Basis step.

Recursive step. for

Exercises

fa :: Integer -> Integer fa n

 | n < 0     = fail "n must be positive"
 | n == 0    = 1
 | otherwise = 3 * fa (n-1)

fb :: Integer -> Integer fb n

 | n < 0     = fail "n must be positive"
 | n == 0    = 1
 | otherwise = 3 * fb (n-1) + 2

fc :: Integer -> Integer fc n

 | n < 0     = fail "n must be positive"
 | n == 0    = 1
 | otherwise = 2^(fc (n-1))

Fibonacci Numbers

Basis step. , and

Recursive step.


We want to show that for , where

Proof by strong induction.

Basis step. for , we have:

  • 2: . True.
  • 3: . True.

Inductive step. For some , we assume that all preceding values are true. Then by the recursive relation, we have


Thus the general result follows by the principle of strong mathematical induction.

Structural definition of sets

  • Σ: alphabet (set of acceptable chars)
  • Σ*: words in the alphabet

Basis step. The empty word: λ ∈ Σ*

Recursive step. if w ∈ Σ* and x ∈ Σ, then wx ∈ Σ*.

Definition of Concatenation

Basis step. For w ∈ Σ and λ ∈ Σ*, we have = w

Recursive step. For w ∈ Σ, v ∈ Σ and x ∈ σ*, if wv is defined, then w(vx) = (wv)x.