CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.

Slides:



Advertisements
Similar presentations
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Advertisements

CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
PROOF BY CONTRADICTION
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Prof. Shachar Lovett Clicker frequency: CA CSE 20 Discrete math Prof. Shachar Lovett
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
TR1413: INTRO TO DISCRETE MATHEMATICS LECTURE 2: 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.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
1 Strong Mathematical Induction. Principle of Strong Mathematical Induction Let P(n) be a predicate defined for integers n; a and b be fixed integers.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
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.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
ICS 253 Presents Mathematical Induction Sultan Almuhammadi muhamadi
Mathematical Maxims and Minims, 1988
Chapter 6 Mathematical Induction
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
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.
CSNB143 – Discrete Structure Topic 5 – Induction Part I.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
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.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
October 3, 2001CSE 373, Autumn Mathematical Background Exponents X A X B = X A+B X A / X B = X A-B (X A ) B = X AB X N +X N = 2X N 2 N +2 N = 2 N+1.
Inductive Proofs and Inductive Definitions Jim Skon.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
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.
5-5 Indirect Proof. Indirect Reasoning: all possibilities are considered and then all but one are proved false. The remaining possibility must be true.
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.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Chapter 3 The Real Numbers.
Methods of Proof A mathematical theorem is usually of the form pq
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Notes 9.5 – Mathematical Induction
PROOF BY CONTRADICTION
Follow me for a walk through...
Mathematical Induction I
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Induction (Section 3.3).
Follow me for a walk through...
Induction Chapter
Chapter 11: Further Topics in Algebra
Follow me for a walk through...
Lecture 3.1: Mathematical Induction
Presentation transcript:

CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett

Today’s Topics: 1. Mathematical Induction Proof  Examples 2

1. Mathematical Induction 3

Mathematical induction 4

Induction  “For all integers n >= a, P(n).”  Base case - push first domino  Inductive step – n th domino pushes the n+1 th 5

Thm: Proof (by mathematical induction): Basis step: Show the theorem holds for n=____. ____________________________________________ Inductive step: Assume [or “Suppose”] that __________________. WTS: ____________________. _____________________________________________ So the inductive step holds, completing the proof. 6

Thm: Proof (by mathematical induction): Basis step: Show the theorem holds for n=____. ____________________________________________ Inductive step: Assume [or “Suppose”] that __________________. WTS: ____________________. _____________________________________________ So the inductive step holds, completing the proof. 7 A.1 B.2 C.k D.k+1 E.Other

Thm: Proof (by mathematical induction): Basis step: Show the theorem holds for n=1___. ___1=1*(1+1)/2_________________________________ Inductive step: Assume [or “Suppose”] that __________________. WTS: ____________________. _____________________________________________ So the inductive step holds, completing the proof. 8

Thm: Proof (by mathematical induction): Basis step: Show the theorem holds for n=1___. ____ 1=1*(1+1)/2 ________________________________ Inductive step: Assume [or “Suppose”] that __________________. WTS: ____________________. _____________________________________________ So the inductive step holds, completing the proof. 9 For the inductive step, we want to prove that IF the theorem is true for some n >=[basis], THEN the theorem is true for n+1. How do we prove an implication p→q? A.Assume p, WTS ¬q (“p and not q”). B.Assume p, WTS q. C.Assume q, WTS p. D.Assume p→q, show it does not lead to contradiction.

Thm: Proof (by mathematical induction): Basis step: Show the theorem holds for n=1__ _. ____ 1=1*(1+1)/2 ________________________________ Inductive step: Assume [or “Suppose”] that __________________. WTS: ____________________. _____________________________________________ So the inductive step holds, completing the proof. 10 A.Assume n>=1 B.Assume that for all n>=1 ----> C.Assume that for some n>=1,->

Thm: Proof (by mathematical induction): Basis step: Show the theorem holds for n=1___. ____ 1=1*(1+1)/2 ________________________________ Inductive step: Assume [or “Suppose”] that for some n>1, WTS: ____________________. _____________________________________________ So the inductive step holds, completing the proof. 11

Thm: Proof (by mathematical induction): Basis step: Show the theorem holds for n=1___. ____ 1=1*(1+1)/2 ________________________________ Inductive step: Assume [or “Suppose”] that for some n>1, WTS: ____________________. _____________________________________________ So the inductive step holds, completing the proof. 12 A.The negation is true. B.The theorem is true for some integer k+1. C.The theorem is true for n+1. D.The theorem is true for some intege n>=1

Thm: Proof (by mathematical induction): Basis step: Show the theorem holds for n=1___. ____ 1=1*(1+1)/2 ________________________________ Inductive step: Assume [or “Suppose”] that for some n>1, WTS: The theorem is true for n+1. _____________________________________________ So the inductive step holds, completing the proof. 13

Thm: 14

Mathematical induction  Want to prove “For all integers n >= a, P(n).”  Base case: verify for n=a (usually by a simple direct calculation)  Main step: Prove that P(n)  P(n+1) 15

Mathematical induction 16 P(1)P(2)P(3)P(4)P(5) …

Mathematical induction 17 P(1)P(2)P(3)P(4)P(5) …

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case:  Inductive case:  Assume…  WTS…  Proof… 18

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case:  Inductive case:  Assume…  WTS…  Proof… 19 A.Theorem is true for all n. B.Thereom is true for n=0. C.Theorem is true for n>0. D.Theorem is true for n=1.

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case: n=0. So A= . Then P(A)={  } so |P(A)|=1=2 0.  Inductive case:  Assume…  WTS…  Proof… 20

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case: n=0. So A= . Then P(A)={  } so |P(A)|=1=2 0.  Inductive case:  Assume…  WTS…  Proof… 21 A.Theorem is true for some set B.Thereom is true for all sets C.Theorem is true for all sets of size n. D.Theorem is true for some set of size n.

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case: n=0. So A= . Then P(A)={  } so |P(A)|=1=2 0.  Inductive case:  Assume theorem is true for all sets of size n.  WTS…  Proof… 22

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case: n=0. So A= . Then P(A)={  } so |P(A)|=1=2 0.  Inductive case:  Assume theorem is true for all sets of size n.  WTS…  Proof… 23 A.Theorem is true for some set of size >n. B.Thereom is true for all sets of size >n. C.Theorem is true for all sets of size n+1. D.Theorem is true for some set of size n+1.

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case: n=0. So A= . Then P(A)={  } so |P(A)|=1=2 0.  Inductive case:  Assume theorem is true for all sets of size n.  WTS: Theorem is true for all sets of size n+1.  Proof… 24

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case: n=0. So A= . Then P(A)={  } so |P(A)|=1=2 0.  Inductive case:  Assume theorem is true for all sets of size n.  WTS: Theorem is true for all sets of size n+1.  Proof. Try by yourself first! 25

Another example  Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n.  Base case: n=0. So A= . Then P(A)={  } so |P(A)|=1=2 0.  Inductive case:  Assume theorem is true for all sets of size n.  WTS: Theorem is true for all sets of size n+1.  Proof… 26 Let A={a 1,…,a n+1 } be a set of size n+1. Define B={S  A: a n+1  S} and C={S  A: a n+1  S}. P(A)=B  C and B  C=  hence |P(A)|=|B|+|C|. Also, |B|=|C| since we can define a bijective function f:B  C by f(S)=S  {a n+1 }. So, |P(A)|=2|B|. However, B=P({a 1,…,a n }) so by induction, |B|=2 n. We conclude that |P(A)|=2  2 n = 2 n+1. QED.