Extensible Networking Platform 1 1 - CSE 240 – Logic and Discrete Mathematics Review: Mathematical Induction Use induction to prove that the sum of the.

Slides:



Advertisements
Similar presentations
Mathematical Induction. Mathematical Induction is a technique for proving theorems Theorems are typically of the form P(n) is true for all positive integers.
Advertisements

Tutorial 2: First Order Logic and Methods of Proofs
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
THE WELL ORDERING PROPERTY Definition: Let B be a set of integers. An integer m is called a least element of B if m is an element of B, and for every x.
Discrete Math Methods of proof 1.
Mathematical Induction
Lesson 10.4: Mathematical Induction
PROOF BY CONTRADICTION
Mathematical Induction (cont.)
Lecture ,3.3 Sequences & Summations Proof by Induction.
Review for CS1050. Review Questions Without using truth tables, prove that  (p  q)   q is a tautology. Prove that the sum of an even integer and an.
Equivalence Relations
Discrete Structures Chapter 6: Set Theory
22C:19 Discrete Structures Induction and Recursion Fall 2014 Sukumar Ghosh.
Elementary Number Theory and Methods of Proof
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Induction and recursion
Discrete Structures & Algorithms More on Methods of Proof / Mathematical Induction EECE 320 — UBC.
1 Intro to Induction Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
Discrete Math CS 2800 Prof. Bart Selman Module
TR1413: INTRO TO DISCRETE MATHEMATICS LECTURE 2: MATHEMATICAL INDUCTION.
CSE115/ENGR160 Discrete Mathematics 03/22/12 Ming-Hsuan Yang UC Merced 1.
Lecture ,3.3 Sequences & Summations Proof by Induction.
1 Discrete Math CS 2800 Prof. Bart Selman Module Induction.
1 Section 3.3 Mathematical Induction. 2 Technique used extensively to prove results about large variety of discrete objects Can only be used to prove.
CSE115/ENGR160 Discrete Mathematics 03/29/11 Ming-Hsuan Yang UC Merced 1.
Mathematical Induction
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Mathematical Maxims and Minims, 1988
Lecture 9. Arithmetic and geometric series and mathematical induction
Chapter 6 Mathematical Induction
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.
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
Chapter Mathematical Induction 4.2 Strong Induction and Well-Ordering 4.3 Recursive Definitions and Structural Induction 4.4 Recursive Algorithms.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
Methods of Proof Dr. Yasir Ali. Proof A (logical) proof of a statement is a finite sequence of statements (called the steps of the proof) leading from.
CSE 321 Discrete Structures Winter 2008 Lecture 5 Rules of Inference.
1 INFO 2950 Prof. Carla Gomes Module Induction Rosen, Chapter 4.
Mathematical Induction
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.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
03/05/13 More Induction Discrete Structures (CS 173) Derek Hoiem, University of Illinois 1 Artist: Frank.
5-5 Indirect Proof. Indirect Reasoning: all possibilities are considered and then all but one are proved false. The remaining possibility must be true.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
9/27/2011 Lecture Mathematical Induction1 Lecture 3.1: Mathematical Induction* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from.
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
Mathematical Induction. The Principle of Mathematical Induction Let S n be a statement involving the positive integer n. If 1.S 1 is true, and 2.the truth.
Chapter 1 Logic and Proof.
CSE15 Discrete Mathematics 03/22/17
Direct Proof by Contraposition Direct Proof by Contradiction
Advanced Algorithms Analysis and Design
Chapter 3 The Real Numbers.
CSE 311: Foundations of Computing
Explorations in Artificial Intelligence
Induction and recursion
CSI Mathematical Induction
Lecture 3.1: Mathematical Induction
Dr. Halimah Alshehri MATH 151 Dr. Halimah Alshehri Dr. Halimah Alshehri.
Prof. Johnnie Baker Module Induction
Induction Chapter
Advanced Analysis of Algorithms
Mathematical Induction
CSE 321 Discrete Structures
Lecture 3.1: Mathematical Induction
THE WELL ORDERING PROPERTY
Presentation transcript:

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Review: Mathematical Induction Use induction to prove that the sum of the first n odd integers is n 2. Prove a base case (n=1) Base case (n=1): the sum of the first 1 odd integer is 1 2. Yes, 1 = 1 2. Prove P(k) P(k+1) Assume P(k): the sum of the first k odd ints is k … + (2k - 1) = k 2 Prove that … + (2k - 1) + (2k + 1) = (k+1) 2 Inductive hypothesis … + (2k-1) + (2k+1) =k 2 + (2k + 1) By inductive hypothesis = (k+1) 2 By arithmetic

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - a cool example Deficient Tiling A 2 n x 2 n sized grid is deficient if all but one cell is tiled. 2n2n 2n2n

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - a cool example We want to show that all 2 n x 2 n sized deficient grids can be tiled with tiles, called triominoes, shaped like:

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - a cool example Is it true for all 2 1 x 2 1 grids? Yes!

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - a cool example Inductive Hypothesis: We can tile any 2 k x 2 k deficient board using our fancy designer tiles. Use this to prove: We can tile any 2 k+1 x 2 k+1 deficient board using our fancy designer tiles.

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - a cool example 2k2k 2k2k 2k2k 2k2k 2 k+1 OK!! (by IH) ? ? ?

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - a cool example 2k2k 2k2k 2k2k 2k2k 2 k+1 OK!! (by IH)

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - a cool example

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - why does it work? Definition: A set S is well-ordered if every non-empty subset of S has a least element. Given (we take as an axiom): the set of natural numbers (N) is well- ordered. Is the set of integers (Z) well ordered? No. { x Z : x < 0 } has no least element.

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - why does it work? Is the set of non-negative reals (R) well ordered? No. { x R : x > 1 } has no least element.

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - why does it work? Proof of Mathematical Induction: We prove that (P(0) ( k P(k) P(k+1))) ( n P(n)) Proof by contradiction. Assume 1.P(0) 2. k P(k) P(k+1) 3. n P(n) n P(n)

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Mathematical Induction - why does it work? Assume 1.P(0) 2. n P(n) P(n+1) 3. n P(n) n P(n) Let S = { n : P(n) } Since N is well ordered, S has a least element. Call it k. What do we know? -P(k) is false because its in S. -k 0 because P(0) is true. -P(k-1) is true because P(k) is the least element in S. But by (2), P(k-1) P(k). Contradicts P(k-1) true, P(k) false. Done.

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Strong Mathematical Induction If P(0) and n 0 (P(0) P(1) … P(n)) P(n+1) Then n 0 P(n) In our proofs, to show P(k+1), our inductive hypothesis assumes that ALL of P(0), P(1), … P(k) are true, so we can use ANY of them to make the inference.

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Game with Matches Two players take turns removing any number of matches from one of two piles of matches. The player who removes the last match wins Show that if two piles contain the same number of matches initially, then the second player is guaranteed a win

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Strategy for Second Player Let P(n) denote the statement the second player wins when they are initially n matches in each pile Basis step: P(1) is true, because only 1 match in each pile, first player must remove one match from one pile. Second player removes other match and wins Inductive step: suppose P(j) is True for all j 1<=j <= k. Prove that P(k+1) is true, that is the second player wins when each piles contains k+1 matches

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Strategy for Second Player Suppose that the first player removes r matches from one pile, leaving k+1 –r matches there By removing the same number of matches from the other pile the second player creates the situation of two piles with k+1-r matches in each. Apply the inductive hypothesis and the second player wins each time. How is this different than regular induction?

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Postage Stamp Example Prove that every amount of postage of 12 cents or more can be formed using just 4-cent and 5-cent stamps P(n) : Postage of n cents can be formed using 4-cent and 5-cent stamps All n >= 12, P(n) is true

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Postage Stamp Proof Base Case: n = 12, n = 13, n = 14, n = 15 –We can form postage of 12 cents using 3, 4-cent stamps –We can form postage of 13 cents using 2, 4- cent stamps and 1 5-cent stamp –We can form postage of 14 cents using 1, 4-cent stamp and 2 5-cent stamps –We can form postage of 15 cents using 3, 5-cent stamps Induction Step –Let n >= 15 –Assume P(k) is true for 12 <= k <= n, that is postage of k cents can be formed with 4-cent and 5-cent stamps (Inductive Hypothesis) –Prove P(n+1) –To form postage of n +1 cents, use the stamps that form postage of n-3 cents (from I.H) with a 4-cent stamp Why does this work?

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Recursive Definitions We completely understand the function f(n) = n!, right? As a reminder, heres the definition: n! = 1 · 2 · 3 · … · (n-1) · n, n 1 Inductive (Recursive) Definition But equivalently, we could define it like this: Recursive CaseBase Case

Extensible Networking Platform CSE 240 – Logic and Discrete Mathematics Recursive Definitions Another VERY common example: Fibonacci Numbers Recursive CaseBase Cases Is there a non-recursive definition for the Fibonacci Numbers?