Download presentation
Presentation is loading. Please wait.
Published byAlice Morton Modified over 9 years ago
1
9/29/2011Lecture 3.2 -- Strong Induction1 Lecture 3.2: Strong Induction CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag
2
9/29/2011Lecture 3.2 -- Strong Induction2 Course Admin HW2 due tomorrow at 11am Mid-Term 1 We are grading them now, and should have the results by next weekend Solution has been posted HW1 graded Please pick up your graded answers, if you haven’t done so already Any questions, please get in touch with the TA Further questions, please contact me
3
9/29/2011Lecture 3.2 -- Strong Induction3 Outline More practice: induction Strong Induction
4
9/29/2011Lecture 3.2 -- Strong Induction4 Induction: some more exercises (Rosen) Show that n < 2 n, for n=0, 1, 2,… Prove (generalized De Morgan’s)
5
9/29/2011Lecture 3.2 -- Strong Induction5 Strong Mathematical Induction If P(0) and k 0 (P(0) P(1) … P(k)) P(k+1) Then n 0 P(n) In our proofs, to show P(k+1), our inductive hypothesis assures that ALL of P(0), P(1), … P(k) are true, so we can use ANY of them to make the inference.
6
9/29/2011Lecture 3.2 -- Strong Induction6 Example Recall the Fibonacci sequence: {f n } = 0,1,1,2,3,5,8,13,21,34,55,… defined by f 0 = 0, f 1 = 1, and for n > 1 f n = f n-1 +f n-2. Notice that every third Fibonacci number is even: LEMMA: For all natural numbers n, 2|f 3n.
7
9/29/2011Lecture 3.2 -- Strong Induction7 Example Proof. Base case n = 0. f 3·0 = f 0 =0 which is divisible by 2 Induction step, n > 0: Assume F 3k is divisible by 2 F 3k+3 = f 3k+2 +f 3k+1 = (f 3k+1 +f 3k ) +f 3k+1 = 2f 3k+1 +f 3k By hypothesis, 2|f 3k therefore 2|(2f 3k+1 +f 3k ), so 2|f 3k+3, and the proof is complete.
8
9/29/2011Lecture 3.2 -- Strong Induction8 Strong Induction Example Sometimes a stronger version of induction is needed, one that allows us to go back to smaller values than just the previous value of n. E.g. consider the Fibonacci sequence vs. the sequence 2 n : {f n } = 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 {2 n } = 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 LEMMA: For all n, f n < 2 n
9
9/29/2011Lecture 3.2 -- Strong Induction9 Strong Induction Example LEMMA: For all n, f n < 2 n Proof. Base n = 0: f 0 = 0 < 1 = 2 0 Induction n > 0: Assume f k < 2 k Now, f k+1 = f k +f k-1 < 2 k +f k-1 Q: Now what?
10
9/29/2011Lecture 3.2 -- Strong Induction10 Strong Induction Example A: Would want to apply same formula to k-1. But strictly speaking, can’t because induction hypothesis only let us look at previous domino. This limitation on induction need not be so: If we could assume that the first k dominos falling implies that the k+1 th domino falls, would be able to reduce back to smaller values, as needed here. Strong induction formalizes this ability.
11
9/29/2011Lecture 3.2 -- Strong Induction11 Strong Induction Example So now, we can complete stuck proof: LEMMA: For all n, f n < 2 n Proof. Base cases (both needed as can’t apply induction step on f 1 since f -1 is undefined) n = 0: f 0 = 0 < 1 = 2 0 n = 1: f 1 = 1 < 2 = 2 1
12
9/29/2011Lecture 3.2 -- Strong Induction12 Strong Induction Completing Example So now, we can complete stuck proof: LEMMA: For all n, f n < 2 n Proof. Base cases (both needed as can’t apply induction step on f 1 since f -1 is undefined) n = 0: f 0 = 0 < 1 = 2 0 n = 1: f 1 = 1 < 2 = 2 1 Induction n > 0: f k+1 = f k +f k-1 < 2 k + 2 k-1 applying both P (k) and P (k-1) which can be assumed by strong induction hypothesis. Doing more algebra: 2 k + 2 k-1 = 2 k (1 + ½) = 1.5*2 k < 2*2 k = 2 k+1 Therefore, f k+1 < 2 k+1
13
9/29/2011Lecture 3.2 -- Strong Induction13 Another Example(Rosen) Prove that every integer > 1 can be expressed as a product of prime numbers
14
9/29/2011Lecture 3.2 -- Strong Induction14 Today’s Reading Rosen 5.2
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.