Lecture Outline Strengthening Induction Hypothesis. Lecture Outline - - PowerPoint PPT Presentation

lecture outline
SMART_READER_LITE
LIVE PREVIEW

Lecture Outline Strengthening Induction Hypothesis. Lecture Outline - - PowerPoint PPT Presentation

Lecture Outline Strengthening Induction Hypothesis. Lecture Outline Strengthening Induction Hypothesis. Strong Induction Lecture Outline Strengthening Induction Hypothesis. Strong Induction Well ordered principle. Tutoring Option. How does


slide-1
SLIDE 1

Lecture Outline

Strengthening Induction Hypothesis.

slide-2
SLIDE 2

Lecture Outline

Strengthening Induction Hypothesis. Strong Induction

slide-3
SLIDE 3

Lecture Outline

Strengthening Induction Hypothesis. Strong Induction Well ordered principle.

slide-4
SLIDE 4

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well.

slide-5
SLIDE 5

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points.

slide-6
SLIDE 6

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points. 4.2 Decent effort.

slide-7
SLIDE 7

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points. 4.2 Decent effort. Less than full points.

slide-8
SLIDE 8

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points. 4.2 Decent effort. Less than full points. 4.3 Didn’t understand HW solutions.

slide-9
SLIDE 9

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points. 4.2 Decent effort. Less than full points. 4.3 Didn’t understand HW solutions. Uh oh.

slide-10
SLIDE 10

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points. 4.2 Decent effort. Less than full points. 4.3 Didn’t understand HW solutions. Uh oh. 4.4 Can try again.

slide-11
SLIDE 11

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points. 4.2 Decent effort. Less than full points. 4.3 Didn’t understand HW solutions. Uh oh. 4.4 Can try again. Limit: 2 on average.

slide-12
SLIDE 12

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points. 4.2 Decent effort. Less than full points. 4.3 Didn’t understand HW solutions. Uh oh. 4.4 Can try again. Limit: 2 on average.

  • 5. Begins for second homework.
slide-13
SLIDE 13

Tutoring Option.

How does tutoring work?

  • 1. (Ideally) You work on homework and solve (most of) it.
  • 2. You do not need to write-up or turn in.
  • 3. You read and understand homework solutions.
  • 4. You see a tutor, who gives you a short oral quiz.

4.1 If you do well. Full points. 4.2 Decent effort. Less than full points. 4.3 Didn’t understand HW solutions. Uh oh. 4.4 Can try again. Limit: 2 on average.

  • 5. Begins for second homework.

Questions?

slide-14
SLIDE 14

Strenthening Induction Hypothesis.

Theorem: The sum of the first n odd numbers is a perfect square. Theorem: The sum of the first n odd numbers is k2. kth odd number is 2(k −1)+1. Base Case 1 (1th odd number) is 12. Induction Hypothesis Sum of first k odds is perfect square a2 = k2. Induction Step

  • 1. The (k +1)st odd number is 2k +1.
  • 2. Sum of the first k +1 odds is

a2 +2k +1 = k2 +2k +1

  • 3. k2 +2k +1 = (k +1)2

... P(k+1)!

slide-15
SLIDE 15

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard.

slide-16
SLIDE 16

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard.

slide-17
SLIDE 17

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard.

slide-18
SLIDE 18

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard.

slide-19
SLIDE 19

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard.

slide-20
SLIDE 20

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard.

slide-21
SLIDE 21

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard.

slide-22
SLIDE 22

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard. Alright!

slide-23
SLIDE 23

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard. Alright! Tiled 4×4 square with 2×2 L-tiles.

slide-24
SLIDE 24

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard. Alright! Tiled 4×4 square with 2×2 L-tiles. with a center hole.

slide-25
SLIDE 25

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard. Alright! Tiled 4×4 square with 2×2 L-tiles. with a center hole. Can we tile any 2n ×2n with L-tiles (with a hole)

slide-26
SLIDE 26

Tiling Cory Hall Courtyard.

Use these L-tiles. A B C D E To Tile this 4×4 courtyard. Alright! Tiled 4×4 square with 2×2 L-tiles. with a center hole. Can we tile any 2n ×2n with L-tiles (with a hole) for every n!

slide-27
SLIDE 27

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole.

slide-28
SLIDE 28

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1.

slide-29
SLIDE 29

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0.

slide-30
SLIDE 30

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1

slide-31
SLIDE 31

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a.

slide-32
SLIDE 32

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1)

slide-33
SLIDE 33

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1) = 22k ∗22

slide-34
SLIDE 34

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1) = 22k ∗22 = 4∗22k

slide-35
SLIDE 35

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1) = 22k ∗22 = 4∗22k = 4∗(3a+1)

slide-36
SLIDE 36

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1) = 22k ∗22 = 4∗22k = 4∗(3a+1) = 12a+3+1

slide-37
SLIDE 37

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1) = 22k ∗22 = 4∗22k = 4∗(3a+1) = 12a+3+1 = 3(4a+1)+1

slide-38
SLIDE 38

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1) = 22k ∗22 = 4∗22k = 4∗(3a+1) = 12a+3+1 = 3(4a+1)+1 a integer

slide-39
SLIDE 39

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1) = 22k ∗22 = 4∗22k = 4∗(3a+1) = 12a+3+1 = 3(4a+1)+1 a integer = ⇒ (4a+1) is an integer.

slide-40
SLIDE 40

Hole have to be there? Maybe just one?

Theorem: Any tiling of 2n ×2n square has to have one hole. Proof: The remainder of 22n divided by 3 is 1. Base case: true for k = 0. 20 = 1 Ind Hyp: 22k = 3a+1 for integer a. 22(k+1) = 22k ∗22 = 4∗22k = 4∗(3a+1) = 12a+3+1 = 3(4a+1)+1 a integer = ⇒ (4a+1) is an integer.

slide-41
SLIDE 41

Hole in center?

Theorem: Can tile the 2n ×2n square to leave a hole adjacent to the center. Proof:

slide-42
SLIDE 42

Hole in center?

Theorem: Can tile the 2n ×2n square to leave a hole adjacent to the center. Proof: Base case: A single tile works fine.

slide-43
SLIDE 43

Hole in center?

Theorem: Can tile the 2n ×2n square to leave a hole adjacent to the center. Proof: Base case: A single tile works fine. The hole is adjacent to the center of the 2×2 square.

slide-44
SLIDE 44

Hole in center?

Theorem: Can tile the 2n ×2n square to leave a hole adjacent to the center. Proof: Base case: A single tile works fine. The hole is adjacent to the center of the 2×2 square. Induction Hypothesis:

slide-45
SLIDE 45

Hole in center?

Theorem: Can tile the 2n ×2n square to leave a hole adjacent to the center. Proof: Base case: A single tile works fine. The hole is adjacent to the center of the 2×2 square. Induction Hypothesis: Any 2n ×2n square can be tiled with a hole at the center.

slide-46
SLIDE 46

Hole in center?

Theorem: Can tile the 2n ×2n square to leave a hole adjacent to the center. Proof: Base case: A single tile works fine. The hole is adjacent to the center of the 2×2 square. Induction Hypothesis: Any 2n ×2n square can be tiled with a hole at the center. 2n 2n 2n+1 2n+1

slide-47
SLIDE 47

Hole in center?

Theorem: Can tile the 2n ×2n square to leave a hole adjacent to the center. Proof: Base case: A single tile works fine. The hole is adjacent to the center of the 2×2 square. Induction Hypothesis: Any 2n ×2n square can be tiled with a hole at the center. 2n 2n 2n+1 2n+1 What to do now???

slide-48
SLIDE 48

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere.

slide-49
SLIDE 49

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem

slide-50
SLIDE 50

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis!

slide-51
SLIDE 51

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine.

slide-52
SLIDE 52

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere.

slide-53
SLIDE 53

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere. Induction Hypothesis:

slide-54
SLIDE 54

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere. Induction Hypothesis: “Any 2n ×2n square can be tiled with a hole anywhere.” Consider 2n+1 ×2n+1 square.

slide-55
SLIDE 55

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere. Induction Hypothesis: “Any 2n ×2n square can be tiled with a hole anywhere.” Consider 2n+1 ×2n+1 square.

slide-56
SLIDE 56

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere. Induction Hypothesis: “Any 2n ×2n square can be tiled with a hole anywhere.” Consider 2n+1 ×2n+1 square. Use induction hypothesis in each.

slide-57
SLIDE 57

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere. Induction Hypothesis: “Any 2n ×2n square can be tiled with a hole anywhere.” Consider 2n+1 ×2n+1 square. Use induction hypothesis in each.

slide-58
SLIDE 58

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere. Induction Hypothesis: “Any 2n ×2n square can be tiled with a hole anywhere.” Consider 2n+1 ×2n+1 square. Use induction hypothesis in each. Use L-tile and ...

slide-59
SLIDE 59

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere. Induction Hypothesis: “Any 2n ×2n square can be tiled with a hole anywhere.” Consider 2n+1 ×2n+1 square. Use induction hypothesis in each. Use L-tile and ... we are done.

slide-60
SLIDE 60

Hole can be anywhere!

Theorem: Can tile the 2n ×2n to leave a hole adjacent anywhere. Better theorem ...better induction hypothesis! Base case: Sure. A tile is fine. Flipping the orientation can leave hole anywhere. Induction Hypothesis: “Any 2n ×2n square can be tiled with a hole anywhere.” Consider 2n+1 ×2n+1 square. Use induction hypothesis in each. Use L-tile and ... we are done.

slide-61
SLIDE 61

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes.

slide-62
SLIDE 62

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n.

slide-63
SLIDE 63

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2.

slide-64
SLIDE 64

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step:

slide-65
SLIDE 65

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “

slide-66
SLIDE 66

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “ Either n +1 is a prime or n +1 = a·b where 1 < a,b < n +1.

slide-67
SLIDE 67

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “ Either n +1 is a prime or n +1 = a·b where 1 < a,b < n +1. P(n) says nothing about a, b!

slide-68
SLIDE 68

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “ Either n +1 is a prime or n +1 = a·b where 1 < a,b < n +1. P(n) says nothing about a, b! Strong Induction Principle: If P(0) and (∀k ∈ N)((P(0)∧...∧P(k)) = ⇒ P(k +1)), then (∀k ∈ N)(P(k)).

slide-69
SLIDE 69

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “ Either n +1 is a prime or n +1 = a·b where 1 < a,b < n +1. P(n) says nothing about a, b! Strong Induction Principle: If P(0) and (∀k ∈ N)((P(0)∧...∧P(k)) = ⇒ P(k +1)), then (∀k ∈ N)(P(k)). P(0) = ⇒ P(1) = ⇒ P(2) = ⇒ P(3) = ⇒ ···

slide-70
SLIDE 70

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “ Either n +1 is a prime or n +1 = a·b where 1 < a,b < n +1. P(n) says nothing about a, b! Strong Induction Principle: If P(0) and (∀k ∈ N)((P(0)∧...∧P(k)) = ⇒ P(k +1)), then (∀k ∈ N)(P(k)). P(0) = ⇒ P(1) = ⇒ P(2) = ⇒ P(3) = ⇒ ··· Strong induction hypothesis: “a and b are products of primes”

slide-71
SLIDE 71

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “ Either n +1 is a prime or n +1 = a·b where 1 < a,b < n +1. P(n) says nothing about a, b! Strong Induction Principle: If P(0) and (∀k ∈ N)((P(0)∧...∧P(k)) = ⇒ P(k +1)), then (∀k ∈ N)(P(k)). P(0) = ⇒ P(1) = ⇒ P(2) = ⇒ P(3) = ⇒ ··· Strong induction hypothesis: “a and b are products of primes” = ⇒ “n +1 = a·b

slide-72
SLIDE 72

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “ Either n +1 is a prime or n +1 = a·b where 1 < a,b < n +1. P(n) says nothing about a, b! Strong Induction Principle: If P(0) and (∀k ∈ N)((P(0)∧...∧P(k)) = ⇒ P(k +1)), then (∀k ∈ N)(P(k)). P(0) = ⇒ P(1) = ⇒ P(2) = ⇒ P(3) = ⇒ ··· Strong induction hypothesis: “a and b are products of primes” = ⇒ “n +1 = a·b = (factorization of a)(factorization of b)” n +1 can be written as the product of the prime factors!

slide-73
SLIDE 73

Strong Induction.

Theorem: Every natural number n > 1 can be written as a product of primes. Fact: A prime n has exactly 2 factors 1 and n. Base Case: n = 2. Induction Step: P(n) = “n can be written as a product of primes. “ Either n +1 is a prime or n +1 = a·b where 1 < a,b < n +1. P(n) says nothing about a, b! Strong Induction Principle: If P(0) and (∀k ∈ N)((P(0)∧...∧P(k)) = ⇒ P(k +1)), then (∀k ∈ N)(P(k)). P(0) = ⇒ P(1) = ⇒ P(2) = ⇒ P(3) = ⇒ ··· Strong induction hypothesis: “a and b are products of primes” = ⇒ “n +1 = a·b = (factorization of a)(factorization of b)” n +1 can be written as the product of the prime factors!

slide-74
SLIDE 74

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k).

slide-75
SLIDE 75

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))”

slide-76
SLIDE 76

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and

slide-77
SLIDE 77

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and (∀k ∈ N)(Q(k)) ≡ (∀k ∈ N)(P(k))

slide-78
SLIDE 78

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and (∀k ∈ N)(Q(k)) ≡ (∀k ∈ N)(P(k)) (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ (P(0)···P(k)∧P(k +1)))

slide-79
SLIDE 79

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and (∀k ∈ N)(Q(k)) ≡ (∀k ∈ N)(P(k)) (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ (P(0)···P(k)∧P(k +1)))

slide-80
SLIDE 80

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and (∀k ∈ N)(Q(k)) ≡ (∀k ∈ N)(P(k)) (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ (P(0)···P(k)∧P(k +1))) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ P(k +1))

slide-81
SLIDE 81

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and (∀k ∈ N)(Q(k)) ≡ (∀k ∈ N)(P(k)) (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ (P(0)···P(k)∧P(k +1))) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ P(k +1))

slide-82
SLIDE 82

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and (∀k ∈ N)(Q(k)) ≡ (∀k ∈ N)(P(k)) (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ (P(0)···P(k)∧P(k +1))) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ P(k +1))

slide-83
SLIDE 83

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and (∀k ∈ N)(Q(k)) ≡ (∀k ∈ N)(P(k)) (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ (P(0)···P(k)∧P(k +1))) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ P(k +1)) Strong Induction Principle: If P(0) and (∀k ∈ N)((P(0)∧...∧P(k)) = ⇒ P(k +1)), then (∀k ∈ N)(P(k)).

slide-84
SLIDE 84

Induction = ⇒ Strong Induction.

Let Q(k) = P(0)∧P(1)···P(k). By the induction principle: “If Q(0), and (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) then (∀k ∈ N)(Q(k))” Also, Q(0) ≡ P(0) , and (∀k ∈ N)(Q(k)) ≡ (∀k ∈ N)(P(k)) (∀k ∈ N)(Q(k) = ⇒ Q(k +1)) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ (P(0)···P(k)∧P(k +1))) ≡ (∀k ∈ N)((P(0)···∧P(k)) = ⇒ P(k +1)) Strong Induction Principle: If P(0) and (∀k ∈ N)((P(0)∧...∧P(k)) = ⇒ P(k +1)), then (∀k ∈ N)(P(k)).

slide-85
SLIDE 85

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n).

slide-86
SLIDE 86

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n). Consider smallest m, with ¬P(m),

slide-87
SLIDE 87

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n). Consider smallest m, with ¬P(m), P(m −1) = ⇒ P(m) must be false (assuming P(0) holds.)

slide-88
SLIDE 88

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n). Consider smallest m, with ¬P(m), P(m −1) = ⇒ P(m) must be false (assuming P(0) holds.) This is a proof of the induction principle! I.e., (¬∀n)P(n) = ⇒ ((∃n)¬(P(n −1) = ⇒ P(n)).

slide-89
SLIDE 89

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n). Consider smallest m, with ¬P(m), P(m −1) = ⇒ P(m) must be false (assuming P(0) holds.) This is a proof of the induction principle! I.e., (¬∀n)P(n) = ⇒ ((∃n)¬(P(n −1) = ⇒ P(n)). (Contrapositive of Induction principle (assuming P(0))

slide-90
SLIDE 90

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n). Consider smallest m, with ¬P(m), P(m −1) = ⇒ P(m) must be false (assuming P(0) holds.) This is a proof of the induction principle! I.e., (¬∀n)P(n) = ⇒ ((∃n)¬(P(n −1) = ⇒ P(n)). (Contrapositive of Induction principle (assuming P(0)) It assumes that there is a smallest m where P(m) does not hold.

slide-91
SLIDE 91

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n). Consider smallest m, with ¬P(m), P(m −1) = ⇒ P(m) must be false (assuming P(0) holds.) This is a proof of the induction principle! I.e., (¬∀n)P(n) = ⇒ ((∃n)¬(P(n −1) = ⇒ P(n)). (Contrapositive of Induction principle (assuming P(0)) It assumes that there is a smallest m where P(m) does not hold. The Well ordering principle states that for any subset of the natural numbers there is a smallest element.

slide-92
SLIDE 92

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n). Consider smallest m, with ¬P(m), P(m −1) = ⇒ P(m) must be false (assuming P(0) holds.) This is a proof of the induction principle! I.e., (¬∀n)P(n) = ⇒ ((∃n)¬(P(n −1) = ⇒ P(n)). (Contrapositive of Induction principle (assuming P(0)) It assumes that there is a smallest m where P(m) does not hold. The Well ordering principle states that for any subset of the natural numbers there is a smallest element. Smallest may not be what you expect: the well ordering principal holds for rationals but with different ordering!!

slide-93
SLIDE 93

Well Ordering Principle and Induction.

If (∀n)P(n) is not true, then (∃n)¬P(n). Consider smallest m, with ¬P(m), P(m −1) = ⇒ P(m) must be false (assuming P(0) holds.) This is a proof of the induction principle! I.e., (¬∀n)P(n) = ⇒ ((∃n)¬(P(n −1) = ⇒ P(n)). (Contrapositive of Induction principle (assuming P(0)) It assumes that there is a smallest m where P(m) does not hold. The Well ordering principle states that for any subset of the natural numbers there is a smallest element. Smallest may not be what you expect: the well ordering principal holds for rationals but with different ordering!! E.g. Reduced form is “smallest” representation of the representations a/b that represent a single quotient.

slide-94
SLIDE 94

Tournaments have short cycles

Def: A round robin tournament on n players: every player p plays every other player q, and either p → q (p beats q) or q → q (q beats q.)

slide-95
SLIDE 95

Tournaments have short cycles

Def: A round robin tournament on n players: every player p plays every other player q, and either p → q (p beats q) or q → q (q beats q.) Def: A cycle: a sequence of p1,...,pk, pi → pi+1 and pk → p1.

slide-96
SLIDE 96

Tournaments have short cycles

Def: A round robin tournament on n players: every player p plays every other player q, and either p → q (p beats q) or q → q (q beats q.) Def: A cycle: a sequence of p1,...,pk, pi → pi+1 and pk → p1. A B C D

slide-97
SLIDE 97

Tournaments have short cycles

Def: A round robin tournament on n players: every player p plays every other player q, and either p → q (p beats q) or q → q (q beats q.) Def: A cycle: a sequence of p1,...,pk, pi → pi+1 and pk → p1. A B C D Theorem: Any tournament that has a cycle has a cycle of length 3.

slide-98
SLIDE 98

Tournaments have short cycles

Def: A round robin tournament on n players: every player p plays every other player q, and either p → q (p beats q) or q → q (q beats q.) Def: A cycle: a sequence of p1,...,pk, pi → pi+1 and pk → p1. A B C D Theorem: Any tournament that has a cycle has a cycle of length 3.

slide-99
SLIDE 99

Tournaments have short cycles

Def: A round robin tournament on n players: every player p plays every other player q, and either p → q (p beats q) or q → q (q beats q.) Def: A cycle: a sequence of p1,...,pk, pi → pi+1 and pk → p1. A B C D Theorem: Any tournament that has a cycle has a cycle of length 3.

slide-100
SLIDE 100

Tournaments have short cycles

Def: A round robin tournament on n players: every player p plays every other player q, and either p → q (p beats q) or q → q (q beats q.) Def: A cycle: a sequence of p1,...,pk, pi → pi+1 and pk → p1. A B C D Theorem: Any tournament that has a cycle has a cycle of length 3.

slide-101
SLIDE 101

Tournament has a cycle of length 3 if at all.

slide-102
SLIDE 102

Tournament has a cycle of length 3 if at all.

Assume the the smallest cycle is of length k.

slide-103
SLIDE 103

Tournament has a cycle of length 3 if at all.

Assume the the smallest cycle is of length k. Case 1: Of length 3. Done.

slide-104
SLIDE 104

Tournament has a cycle of length 3 if at all.

Assume the the smallest cycle is of length k. Case 1: Of length 3. Done. Case 2: Of length larger than 3. p1 p2 p3 p4 ··· ··· ··· ··· ··· pk

slide-105
SLIDE 105

Tournament has a cycle of length 3 if at all.

Assume the the smallest cycle is of length k. Case 1: Of length 3. Done. Case 2: Of length larger than 3. p1 p2 p3 p4 ··· ··· ··· ··· ··· pk “p3 → p1” = ⇒ 3 cycle Contradiction.

slide-106
SLIDE 106

Tournament has a cycle of length 3 if at all.

Assume the the smallest cycle is of length k. Case 1: Of length 3. Done. Case 2: Of length larger than 3. p1 p2 p3 p4 ··· ··· ··· ··· ··· pk “p3 → p1” = ⇒ 3 cycle Contradiction. “p1 → p3” = ⇒ k −1 length cycle! Contradiction!

slide-107
SLIDE 107

Horses of the same color...

Theorem: All horses have the same color.

slide-108
SLIDE 108

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true.

slide-109
SLIDE 109

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color.

slide-110
SLIDE 110

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)?

slide-111
SLIDE 111

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). 1,2,3,...,k,k +1

slide-112
SLIDE 112

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). 1,2,3,...,k,k +1 Second k have same color by P(k). 1,2,3,...,k,k +1

slide-113
SLIDE 113

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). 1,2,3,...,k,k +1 Second k have same color by P(k). 1,2,3,...,k,k +1 A horse in the middle in common! 1,2,3,...,k,k +1

slide-114
SLIDE 114

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). 1,2,3,...,k,k +1 Second k have same color by P(k). 1,2,3,...,k,k +1 A horse in the middle in common! 1,2,3,...,k,k +1 All k must have the same color. 1,2,3,...,k,k +1

slide-115
SLIDE 115

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). Second k have same color by P(k). A horse in the middle in common! How about P(1) = ⇒ P(2)?

slide-116
SLIDE 116

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). Second k have same color by P(k). A horse in the middle in common! How about P(1) = ⇒ P(2)?

slide-117
SLIDE 117

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). 1,2 Second k have same color by P(k). A horse in the middle in common! How about P(1) = ⇒ P(2)?

slide-118
SLIDE 118

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). 1,2 Second k have same color by P(k). 1,2 A horse in the middle in common! How about P(1) = ⇒ P(2)?

slide-119
SLIDE 119

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). 1,2 Second k have same color by P(k). 1,2 A horse in the middle in common! 1,2 No horse in common! How about P(1) = ⇒ P(2)?

slide-120
SLIDE 120

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). 1,2 Second k have same color by P(k). 1,2 A horse in the middle in common! 1,2 No horse in common! How about P(1) = ⇒ P(2)?

slide-121
SLIDE 121

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. New Base Case: P(2): there are two horses with same color. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). Second k have same color by P(k). A horse in the middle in common! Fix base case.

slide-122
SLIDE 122

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. New Base Case: P(2): there are two horses with same color. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). Second k have same color by P(k). A horse in the middle in common! Fix base case. ...Still doesn’t work!!

slide-123
SLIDE 123

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. New Base Case: P(2): there are two horses with same color. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). Second k have same color by P(k). A horse in the middle in common! Fix base case. ...Still doesn’t work!! (There are two horses is ≡ For all two horses!!!)

slide-124
SLIDE 124

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. New Base Case: P(2): there are two horses with same color. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). Second k have same color by P(k). A horse in the middle in common! Fix base case. ...Still doesn’t work!! (There are two horses is ≡ For all two horses!!!) Of course it doesn’t work.

slide-125
SLIDE 125

Horses of the same color...

Theorem: All horses have the same color. Base Case: P(1) - trivially true. New Base Case: P(2): there are two horses with same color. Induction Hypothesis: P(k) - Any k horses have the same color. Induction step P(k +1)? First k have same color by P(k). Second k have same color by P(k). A horse in the middle in common! Fix base case. ...Still doesn’t work!! (There are two horses is ≡ For all two horses!!!) Of course it doesn’t work. As we will see, it is more subtle to catch errors in proofs of correct theorems!!

slide-126
SLIDE 126

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y.

slide-127
SLIDE 127

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code!

slide-128
SLIDE 128

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’)

slide-129
SLIDE 129

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases:

slide-130
SLIDE 130

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12)

slide-131
SLIDE 131

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12) , P(13)

slide-132
SLIDE 132

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12) , P(13) P(14)

slide-133
SLIDE 133

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12) , P(13) P(14) P(15).

slide-134
SLIDE 134

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12) , P(13) P(14) P(15). Yes.

slide-135
SLIDE 135

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12) , P(13) P(14) P(15). Yes. Strong Induction step:

slide-136
SLIDE 136

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12) , P(13) P(14) P(15). Yes. Strong Induction step: Recursive call is correct: P(n −4)

slide-137
SLIDE 137

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12) , P(13) P(14) P(15). Yes. Strong Induction step: Recursive call is correct: P(n −4) = ⇒ P(n).

slide-138
SLIDE 138

Strong Induction and Recursion.

Thm: For every natural number n ≥ 12, n = 4x +5y. Instead of proof, let’s write some code! def find-x-y(n): if (n==12) return (3,0) elif (n==13): return(2,1) elif (n==14): return(1,2) elif (n==15): return(0,3) else: (x’,y’) = find-x-y(n-4) return(x’+1,y’) Base cases: P(12) , P(13) P(14) P(15). Yes. Strong Induction step: Recursive call is correct: P(n −4) = ⇒ P(n). Slight differences: showed for all n ≥ 16 that ∧n−1

i=4 P(i) =

⇒ P(n).

slide-139
SLIDE 139

Summary: principle of induction.

Today: More induction.

slide-140
SLIDE 140

Summary: principle of induction.

Today: More induction. (P(0)

slide-141
SLIDE 141

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1))))

slide-142
SLIDE 142

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n))

slide-143
SLIDE 143

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0

slide-144
SLIDE 144

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

slide-145
SLIDE 145

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove.
slide-146
SLIDE 146

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0,
slide-147
SLIDE 147

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0, P(n) =

⇒ P(n +1).

slide-148
SLIDE 148

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0, P(n) =

⇒ P(n +1). Statement is proven!

slide-149
SLIDE 149

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0, P(n) =

⇒ P(n +1). Statement is proven! Strong Induction:

slide-150
SLIDE 150

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0, P(n) =

⇒ P(n +1). Statement is proven! Strong Induction: (P(0)∧((∀n ∈ N)(P(n)) = ⇒ P(n +1))))

slide-151
SLIDE 151

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0, P(n) =

⇒ P(n +1). Statement is proven! Strong Induction: (P(0)∧((∀n ∈ N)(P(n)) = ⇒ P(n +1)))) = ⇒ (∀n ∈ N)(P(n))

slide-152
SLIDE 152

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0, P(n) =

⇒ P(n +1). Statement is proven! Strong Induction: (P(0)∧((∀n ∈ N)(P(n)) = ⇒ P(n +1)))) = ⇒ (∀n ∈ N)(P(n)) Also Today: strengthened induction hypothesis.

slide-153
SLIDE 153

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0, P(n) =

⇒ P(n +1). Statement is proven! Strong Induction: (P(0)∧((∀n ∈ N)(P(n)) = ⇒ P(n +1)))) = ⇒ (∀n ∈ N)(P(n)) Also Today: strengthened induction hypothesis. Strengthen theorem statement. Sum of first n odds is n2. Hole anywhere. Not same as strong induction.

slide-154
SLIDE 154

Summary: principle of induction.

Today: More induction. (P(0)∧((∀k ∈ N)(P(k) = ⇒ P(k +1)))) = ⇒ (∀n ∈ N)(P(n)) Statement to prove: P(n) for n starting from n0 Base Case: Prove P(n0).

  • Ind. Step: Prove. For all values, n ≥ n0, P(n) =

⇒ P(n +1). Statement is proven! Strong Induction: (P(0)∧((∀n ∈ N)(P(n)) = ⇒ P(n +1)))) = ⇒ (∀n ∈ N)(P(n)) Also Today: strengthened induction hypothesis. Strengthen theorem statement. Sum of first n odds is n2. Hole anywhere. Not same as strong induction.

Induction ≡ Recursion.