From … to Induction CS 270 Math Foundations of CS Jeremy Johnson.

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

Lesson 10.4: Mathematical Induction
1.1The Principle of Mathematical Induction 1.2Divisibility Chapter Summary Case Study Mathematical Induction 1.
Disjunctive Normal Form CS 680: Formal Methods Jeremy Johnson.
MA/CSSE 473/474 How (not) to do an induction proof.
13.4 Mathematical Induction. Mathematical Induction is a common method of proving that each statement of an infinite sequence of mathematical statements.
1 Intro to Induction Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Discrete Structures Chapter 5: Sequences, Mathematical Induction, and Recursion 5.2 Mathematical Induction I [Mathematical induction is] the standard proof.
Chapter 10 Sequences, Induction, and Probability Copyright © 2014, 2010, 2007 Pearson Education, Inc Mathematical Induction.
Properties of the Integers: Mathematical Induction
Induction and Recursion by: Mohsin tahir (GL) Numan-ul-haq Waqas akram Rao arslan Ali asghar.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Algorithm Design and Analysis (ADA)
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Sequences and Series (T) Students will know the form of an Arithmetic sequence.  Arithmetic Sequence: There exists a common difference (d) between each.
MATH 224 – Discrete Mathematics
Sequences and Series By: Olivia, Jon, Jordan, and Jaymie.
Copyright © Cengage Learning. All rights reserved.
Chapter 6 Mathematical Induction
Discrete Mathematics, 1st Edition Kevin Ferland
Discrete Maths Objective to introduce mathematical induction through examples , Semester 2, Mathematical Induction 1.
Discrete Maths: Induction/1 1 Discrete Maths Objective – –to introduce mathematical induction through examples , Semester
1 Put your name if you want your attendance credit. Please put your as well. CSC 320 is done at 11:30 so I did NOT fill in the box for 11:30 for.
9.4 Mathematical Induction
Analysis of Algorithms CS 477/677 Instructor: Monica Nicolescu Lecture 3.
Mathematical Induction Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Mathematical induction is a legitimate method.
Disjunctive Normal Form CS 270: Math Foundation of CS Jeremy Johnson.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
(CSC 102) Lecture 23 Discrete Structures. Previous Lecture Summery  Sequences  Alternating Sequence  Summation Notation  Product Notation  Properties.
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
8.4 Mathematical Induction Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Recursively defined sequences Write the first 5.
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction Linda Shapiro Winter 2015.
Mathematical Induction
1 2/21/2016 MATH 224 – Discrete Mathematics Sequences and Sums A sequence of the form ar 0, ar 1, ar 2, ar 3, ar 4, …, ar n, is called a geometric sequence.
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.
Other Forms of Induction CS 270 Math Foundations of CS Jeremy Johnson.
Section 8.4 Mathematical Induction. Mathematical Induction In this section we are going to perform a type of mathematical proof called 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 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.
Algorithmic Foundations COMP108 COMP108 Algorithmic Foundations Mathematical Induction Prudence Wong
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
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.
11.7 – Proof by Mathematical Induction
COMP108 Algorithmic Foundations Mathematical Induction
Induction and recursion
CSE 311: Foundations of Computing
Disjunctive Normal Form
CSNB 143 Discrete Mathematical Structures
Elementary Metamathematics
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
Notes 9.5 – Mathematical Induction
Other Forms of Induction
Lecture 3.2: Induction, and Strong Induction
Lecture 3.2: Induction, and Strong Induction
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Lesson 11 – Proof by induction
Lecture 3.2: Induction, and Strong Induction
Lecture 18 Section 4.1 Thu, Feb 10, 2005
Mathematical Induction
Lecture 3.1: Mathematical Induction
Follow me for a walk through...
Chapter 11: Further Topics in Algebra
Mathematical Induction
Mathematical Induction
Mathematical Induction
Lecture 3.1: Mathematical Induction
11.4 Mathematical Induction
COMP108 Algorithmic Foundations Mathematical Induction
Chapter 1 Automata CE year IV.
Presentation transcript:

From … to Induction CS 270 Math Foundations of CS Jeremy Johnson

Objective To illustrate the shortcomings to the proof techniques seen so far and to introduce the principle of induction which allows the proof of infinitely many cases at once. With practice, students should be able to carry out simple inductive proofs following the lecture.

Outline 1.Motivating Example 2.Induction Principle 3.Inductive Proofs 1.Distributive Law 2.DeMorgan’s Law 3.Sums 4.Counting Clauses

Atmost One Recall the condition for at most one of the variables P 1,…,P t to be true P 1  (  P 2     P t ) … P t-2  (  P t-1   P t ) P t-1   P t We see a pattern and fill in the dots

Atmost One When converting to CNF we used a generalized version of the distributive law P 1  (  P 2     P t )  P 1  (  P 2     P t ) (  P 1   P 2 )    (  P 1   P t ) Again we fill in the dots and assume the distributive law generalizes appropriately

Generalized Distributive Law A  (B  C)  (A  B)  (A  C) What about A  (B  C  D)  (A  B)  (A  C)  (A  D) What does this mean? (B  C  D) and (A  B)  (A  C)  (A  D)

Generalized Distributive Law A  (B  C  D)  A  ((B  C)  D)  (A  (B  C))  (A  D)  ((A  B)  (A  C))  (A  D)  (A  B)  (A  C)  (A  D)

Generalized Distributive Law A  (B  C  D  E)  A  ((B  C  D)  E)  (A  (B  C  D))  (A  E)  ((A  B)  (A  C)  (A  D))  (A  E)  (A  B)  (A  C)  (A  D)  (A  E)

Generalized Distributive Law A  (B  C  D  E  F)  A  ((B  C  D  E)  F)  (A  (B  C  D  E))  (A  F)  ((A  B)  (A  C)  (A  D)  (A  D))  (A  F)  (A  B)  (A  C)  (A  D)  (A  E)  (A  F) …

Generalized Distributive Law

Induction Principle Let S(n) be a statement paramterized by a non-negative integer n If S(0) is true and S(n)  S(n+1) then S(n) holds for all non-negative integers. S(0), S(0)  S(1)  S(1) S(1), S(1)  S(2)  S(2) S(2), S(2)  S(3)  S(3) … This allows a proof of infinitely many cases

Inductive Proofs Let S(n) be a statement paramterized by n a nonnegative integer. To prove S(n) holds for all non-negative integers. 1.Prove S(0) [Base case] 2.Assume S(n) [inductive hypothesis] and prove S(n+1). This proves S(n)  S(n+1) Can start with a positive integer k and show S(n) holds for all integers  k.

Generalized Distributive Law

Exercise Generalized DeMorgan’s Law

Solution

Counting Clauses We would like a formula for the number of clauses in the N-queens problem. Count the number of clauses for atmost_one, atleast_one and exactly_one Sum over all rows, columns and diagonals

Number of Clauses in atmost_one

Summation Formula

Counting Clauses M(n) number of clauses for atmost_one L(n) number of clauses for atleast_one E(n) number of clauses for exactly_one M(n) = n(n-1)/2 L(n) = 1 E(n) = M(n)+E(n)

Clauses in N-Queens SAT Problem