Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.

Similar presentations


Presentation on theme: "CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA."— Presentation transcript:

1 CSE 20 DISCRETE MATH Prof. Shachar Lovett http://cseweb.ucsd.edu/classes/wi15/cse20-a/ Clicker frequency: CA

2 Todays topics Proof by induction Section 3.6 in Jenkyns, Stephenson

3 Mathematical induction

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

5 Example

6 Proof by induction template

7 A.1 B.2 C.n D.n+1 E.Other

8 Proof by induction template

9

10 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.

11 Proof by induction template

12

13 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 integer n>=1

14 Proof by induction template

15

16 Proof of inductive step (Isolation inductive case for n) (Using inductive assumption for n) (Simplification)

17 Proof by induction template

18 Mathematical induction P(a)P(a+1)P(a+2)P(a+3)P(a+4) …

19 Mathematical induction P(a)P(a+1)P(a+2)P(a+3)P(a+4) …

20 Mathematical induction P(a)P(a+1)P(a+2)P(a+3)P(a+4) …

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

22 Another example: induction with sets Theorem: if |A|=n then |P(A)|=2 n. Proof by induction on n. Base case: Inductive case: Assume… WTS… Proof… 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.

23 Another example: induction with sets

24 A.Theorem is true for some set B.Theorem 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.

25 Another example: induction with sets

26 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.

27 Another example: induction with sets

28

29 Proof of inductive step

30 Proof of inductive step (contd)

31 Next class More fun with induction Read section 3.6 in Jenkyns, Stephenson


Download ppt "CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA."

Similar presentations


Ads by Google