Lecture 3.2: Induction and Strong Induction (contd.)

Slides:



Advertisements
Similar presentations
Induction and recursion
Advertisements

Recursive Definitions Rosen, 3.4. Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Induction and recursion
Discrete Mathematics, 1st Edition Kevin Ferland
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
Lecture 3.1: Mathematical Induction CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Lecture 3.4: Recursive Algorithms CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
1 Lecture 3.3: Recursion CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Lecture 4.3: Closures and Equivalence Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
Lecture 2.5: Sequences CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Zeph Grunschlag.
Inductive Proofs and Inductive Definitions Jim Skon.
Lecture 1.4: Rules of Inference, and Proof Techniques* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Mathematical Induction Section 5.1. Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If.
9/13/2011Lecture Sequences1 Lecture 2.5: Sequences* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph.
Mathematical Induction
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
1 CMSC 341 Math Review. 2 Exponents Identities (X A ) B = X AB X A * X B = X A+B X A / X B = X A-B X A + X B  X A+B.
CS Discrete Mathematical Structures Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, 9:30-11:30a.
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
Induction Practice CS1050. Prove that whenever n is a positive integer. Proof: Basis Case: Let n = 1, then.
Lecture 1.5: Proof Techniques CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren 1.
Section 5.1. Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach a particular.
9/29/2011Lecture Strong Induction1 Lecture 3.2: Strong Induction CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures.
9/27/2011 Lecture Mathematical Induction1 Lecture 3.1: Mathematical Induction* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
1 Mathematical Induction. 2 What is induction? A method of proof It does not generate answers: it only can prove them Three parts: Base case(s): show.
Lecture 3.4: Recursive Algorithms CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Zeph Grunschlag.
Lecture 1.5: Proof Techniques
Lecture 5.4: Paths and Connectivity
Lecture 5.2: Special Graphs and Matrix Representation
Lecture 4.1: Relations Basics
Lecture 1.5: Proof Techniques
Induction and recursion
Lecture 4.3: Closures and Equivalence Relations
Lecture 3.2: Induction and Strong Induction (contd.)
Use mathematical induction to prove that the formula is true for all natural numbers m. {image} Choose the first step of the proof from the following:
Chapter 5 Induction and Recursion
Induction and recursion
Lecture 3.2: Induction, and Strong Induction
CS 250, Discrete Structures, Fall 2015
CS 250, Discrete Structures, Fall 2011 Nitesh Saxena
CS 250, Discrete Structures, Fall 2014
Lecture 3.2: Induction, and Strong Induction
CS 250, Discrete Structures, Fall 2014
CS 250, Discrete Structures, Fall 2013
CS 250, Discrete Structures, Fall 2015
CS 250, Discrete Structures, Fall 2015
Lecture 4.3: Closures and Equivalence Relations
Lecture 3.2: Induction, and Strong Induction
Lecture 1.6: Proof Techniques (contd)
Lecture 1.3: Predicate Logic
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
Lecture 2.1: Sets and Set Operations*
CS 250, Discrete Structures, Fall 2013
CS 250, Discrete Structures, Fall 2013
Lecture 3.1: Mathematical Induction
Lecture 4.1: Relations Basics
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
Lecture 1.6: Proof Techniques (contd)
Induction Chapter
Mathematical Induction
Mathematical Induction
Lecture 3.1: Mathematical Induction
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
Lecture 1.3: Predicate Logic
CS 250, Discrete Structures, Fall 2012
Presentation transcript:

Lecture 3.2: Induction and Strong Induction (contd.) CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag

Lecture 3.2: Induction and Strong Induction (contd) Course Admin Mid-Term 1 We are grading them, and should have the results by this weekend Solution has been posted HW2 being graded Solution to be provided 1/14/2019 Lecture 3.2: Induction and Strong Induction (contd)

Lecture 3.2: Induction and Strong Induction (contd) Course Admin HW3 to be posted soon Early coming week Covers “Induction and Recursion” (Chapter 5) 1/14/2019 Lecture 3.2: Induction and Strong Induction (contd)

Induction: some more exercises (Rosen) Show that n < 2n , for n=0, 1, 2,… Prove (generalized De Morgan’s) 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Slightly harder exercise Prove that if a set S has |S| = n, then |P(S)| = 2n Base case (n=0): S=ø, P(S) = {ø} and |P(S)| = 1 = 20 Assume P(k): If |S| = k, then |P(S)| = 2k Prove that if |S’| = k+1, then |P(S’)| = 2k+1 S’ = S U {a} for some S  S’ with |S| = k, and a  S’. Partition the power set of S’ into the sets containing a and those not. We count these sets separately. 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Slightly harder exercise (contd) Assume P(k): If |S| = k, then |P(S)| = 2k Prove that if |S’| = k+1, then |P(S’)| = 2k+1 S’ = S U {a} for some S  S’ with |S| = k, and a  S’. Partition the power set of S’ into the sets containing a and those not. P(S’) = {X : a  X} U {X : a  X} Since these are all the subsets of elements in S. P(S’) = {X : a  X} U P(S) Subsets containing a are made by taking any set from P(S), and inserting an a. 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Slightly harder exercise (contd) Assume P(k): If |S| = k, then |P(S)| = 2k Prove that if |S’| = k+1, then |P(S’)| = 2k+1 S’ = S U {a} for some S  S’ with |S| = k, and a  S’. P(S’) = {X : a  X} U {X : a  X} Subsets containing a are made by taking any set from P(S), and inserting an a. P(S’) = {X : a  X} U P(S) |P(S’)| = |{X : a  X}| + |P(S)| = 2 |P(S)| So |{X : a  X}| = |P(S)| = 22k = 2k+1 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Lecture 3.2 -- Induction, and Strong Induction Example Recall the Fibonacci sequence: {fn } = 0,1,1,2,3,5,8,13,21,34,55,… defined by f0 = 0, f1 = 1, and for n > 1 fn = fn-1+fn-2 . Notice that every third Fibonacci number is even: LEMMA: For all natural numbers n, 2|f3n. 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Lecture 3.2 -- Induction, and Strong Induction Example Proof. Base case n = 0. f3·0 = f0 =0 which is divisible by 2  Induction step, n > 0: Assume F3k is divisible by 2 F3k+3 = f3k+2 +f3k+1 = (f3k+1 +f3k) +f3k+1 = 2f3k+1 +f3k By hypothesis, 2|f3k therefore 2|(2f3k+1 +f3k), so 2|f3k+3 , and the proof is complete. 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

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. 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

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 2n: {fn } = 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 {2n } = 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 LEMMA: For all n, fn < 2n 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Strong Induction Example LEMMA: For all n, fn < 2n Proof. Base n = 0: f0 = 0 < 1 = 20  Induction n > 0: Assume fk< 2k Now, fk+1 = fk +fk-1 < 2k +fk-1 Q: Now what? 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

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+1th domino falls, would be able to reduce back to smaller values, as needed here. Strong induction formalizes this ability. 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Strong Induction Example So now, we can complete stuck proof: LEMMA: For all n, fn < 2n Proof. Base cases (both needed as can’t apply induction step on f1 since f-1 is undefined) n = 0: f0 = 0 < 1 = 20  n = 1: f1 = 1 < 2 = 21  1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Strong Induction Completing Example So now, we can complete stuck proof: LEMMA: For all n, fn < 2n Proof. Base cases (both needed as can’t apply induction step on f1 since f-1 is undefined) n = 0: f0 = 0 < 1 = 20  n = 1: f1 = 1 < 2 = 21  Induction n > 0: fk+1 = fk +fk-1 < 2k + 2k-1 applying both P (k) and P (k-1) which can be assumed by strong induction hypothesis. Doing more algebra: 2k + 2k-1= 2k(1 + ½) = 1.5*2k < 2*2k = 2k+1 Therefore, fk+1 < 2k+1 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction

Another Example (Rosen) Prove that every integer > 1 can be expressed as a product of prime numbers 1/14/2019 Lecture 3.2 -- Induction, and Strong Induction