Chapter 1: Introduction Mathematical Proofs Mathematical Induction CS 340 Page 1.

Slides:



Advertisements
Similar presentations
PROOF BY CONTRADICTION
Advertisements

Chapter 4 Sequences and Mathematical Induction. 4.2 Mathematical Induction.
Mathematical Induction
Elementary Number Theory and Methods of Proof
13.4 Mathematical Induction. Mathematical Induction is a common method of proving that each statement of an infinite sequence of mathematical statements.
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
1.  The set N = {1,2,3,4,……..} is known as natural numbers or the set of positive integers  The natural numbers are used mainly for :  counting  ordering.
Fall 2007CS 2251 Proof by Induction. Fall 2007CS 2252 Proof by Induction There are two forms of induction Standard Induction –Prove the theorem is true.
Snick  snack CPSC 121: Models of Computation 2011 Winter Term 1 Revisiting Induction Steve Wolfman, based on work by Patrice Belleville and others 1.
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
CSE115/ENGR160 Discrete Mathematics 03/22/12 Ming-Hsuan Yang UC Merced 1.
Chapter 10 Sequences, Induction, and Probability Copyright © 2014, 2010, 2007 Pearson Education, Inc Mathematical Induction.
Copyright © Cengage Learning. All rights reserved.
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.
Mathematical Induction Readings on induction. (a) Weiss, Sec. 7.2, page 233 (b) Course slides for lecture and notes recitation. Every criticism from a.
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.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Mathematical Maxims and Minims, 1988
MATH 224 – Discrete Mathematics
Induction and recursion
Chapter 6 Mathematical Induction
Introduction to Proofs
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
MATH 224 – Discrete Mathematics
9.4 Mathematical Induction
1.1 Introduction to Inductive and Deductive Reasoning
Module #13: Inductive Proofs Rosen 5 th ed., § inference of a generalized conclusion from particular instances 2. mathematical demonstration of the.
Chapter 5: Recursion as a Problem-Solving Technique BACKTRACKING RECURSIVE GRAMMARS MATRIX OPERATIONS MATHEMATICAL INDUCTION RECURRENCE RELATIONS CS 240.
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.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
1 INFO 2950 Prof. Carla Gomes Module Induction Rosen, Chapter 4.
Lesson 80 - Mathematical Induction HL2 - Santowski.
1 Mathematical Induction CS 202 Epp, chapter 4. 2.
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.
CS104:Discrete Structures Chapter 2: Proof Techniques.
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.
Copyright © Cengage Learning. All rights reserved. Sequences and Series.
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.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Other Forms of Induction CS 270 Math Foundations of CS Jeremy Johnson.
Induction Practice CS1050. Prove that whenever n is a positive integer. Proof: Basis Case: Let n = 1, then.
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.
INDUCTION Lecture 22 CS2110 – Fall 2009 A well-known scientist (some say it was Bertrand Russell) once gave a public lecture on astronomy. He described.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Mathematical Induction And Recursion Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
3.3 Mathematical Induction 1 Follow me for a walk through...
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.
11.7 – Proof by Mathematical Induction
MATH 224 – Discrete Mathematics
Induction and recursion
Proofs, Recursion and Analysis of Algorithms
Induction and recursion
Other Forms of Induction
Direct Proof and Counterexample I
Induction Chapter
Advanced Analysis of Algorithms
Chapter 11: Further Topics in Algebra
Mathematical Induction
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Introduction to Proofs
Presentation transcript:

Chapter 1: Introduction Mathematical Proofs Mathematical Induction CS 340 Page 1

CS 340 Page 2 Math Review: Mathematical Proofs How do you prove that something is true about a set of values? Show that it’s true for the first few values in the set? Show that it’s true for the first few values in the set? Show that it’s true for every value in the set? Show that it’s true for every value in the set? But what if the set is infinite? But what if the set is infinite? But what if it’s only true for those first few values? But what if it’s only true for those first few values? Show that it’s true for several randomly chosen values in the set? Show that it’s true for several randomly chosen values in the set? But what if it’s only true for those randomly chosen values? But what if it’s only true for those randomly chosen values? Prove that n n  n! for all positive values for n. Well, 1 = 1 1  1! = 1 and 4 = 2 2  2! = 2 and 27 = 3 3  3! = 6 and 256 = 4 4  4! = 24 and... Prove that n n  n! for all positive values for n. Well, 1 = 1 1  1! = 1 and 4 = 2 2  2! = 2 and 27 = 3 3  3! = 6 and 256 = 4 4  4! = 24 and... Prove that 1,000,000  n 2 for all positive values for n. Well, it’s true for 1 2 and 2 2 and 3 2 and 4 2 and 5 2 and 6 2 and 7 2 and 8 2 and... (… it stops being true at 1001!) Prove that 1,000,000  n 2 for all positive values for n. Well, it’s true for 1 2 and 2 2 and 3 2 and 4 2 and 5 2 and 6 2 and 7 2 and 8 2 and... (… it stops being true at 1001!) Prove that every positive number n equals the sum of its smaller positive factors. Well, it’s true for 6 = and 28 = and 496 = and... (… there are only seven values that work!) Prove that every positive number n equals the sum of its smaller positive factors. Well, it’s true for 6 = and 28 = and 496 = and... (… there are only seven values that work!)

CS 340 Page 3 Mathematical Induction One way to successfully prove a theorem about a set of values is by means of mathematical induction. Step One: Prove A Base Case Formally demonstrate that the theorem is true for some small n-value n 0 Step Two: Assume An Inductive Hypothesis Assume that the theorem is true for all n-values up to and including k, where k  n 0 Step Three: Prove For n = k + 1 Using the inductive hypothesis, prove the theorem for the n-value k+1

CS 340 Page 4 An Intuitive Example Prove that for any value n ≥ 8, it is possible to produce n cents of postage from 3¢ and 5¢ stamps. Looking at a table of stamp combinations, this appears to be true… # of five-cent stamps  # of three-cent stamps 00¢5¢10¢15¢20¢25¢ 13¢8¢13¢18¢23¢28¢ 26¢11¢16¢21¢26¢31¢ 39¢14¢19¢24¢29¢34¢ 412¢17¢22¢27¢32¢37¢ 515¢20¢25¢30¢35¢40¢ 

CS 340 Page 5 Proving It The strategy here will be to prove that there’s a way to produce n + 1 cents of postage by using the solution for n - 2 cents, plus one 3¢ stamp. There is a pitfall with this approach: If n + 1 is 8, 9, or 10, then n - 2 will be less than 8 and might not have a solution. Step One: Prove The Base Cases: n=8, n=9, and n =10 8¢ = 3¢ + 5¢; 9¢ = 3¢ + 3¢ + 3¢; 10¢ = 5¢ + 5¢ Step Two: Assume The Inductive Hypothesis Assume that combinations of 3¢ and 5¢ stamps can be found to make n¢ of postage for all n-values from 8 to k, where k  10 (i.e., n 0 = 10) Step Three: Prove For n = k + 1 Since k ≥ 10, k – 2 ≥ 8, so the inductive hypothesis tells us that there is a combination of 3¢ and 5¢ stamps that makes (k – 2)¢ of postage; add one 3¢ stamp to that and you’ll have a combination totaling (k+1)¢

CS 340 Page 6 Theorem A:  i = 1,n i = ½n (n + 1) for all n  1. Proof (by induction): Step One (Prove for a base case): For n = 1,  i = 1,1 i = 1 = ½(1)(1 + 1). Step Two (Inductive hypothesis): Assume that it’s been proven for n-values up through k:  i = 1,k i = ½k(k + 1). Step Three (Prove for the next value): Prove for n = k + 1:  i = 1,k+1 i = (k + 1) +  i = 1,k i(by commutative law of +) = (k + 1) + ½k(k + 1)(by inductive hypothesis) = ½(2)(k + 1) + ½k(k + 1)(since 1 = ½ * 2) = ½(k + 1)(k + 2)(by distributive law of * over +) = ½(k + 1)((k + 1) + 1).(by associative law of +) Formal Induction Example

CS 340 Page 7 To prove that  i = 1,n i = ½n (n + 1) for all n  1, we started by proving that it was true for n = 1. Once we accomplished that, we proved that if it had been proven true for some arbitrary value k, then it must be true for the next value: k + 1. In essence, this last proof causes the truth of the theorem to “cascade” through all remaining values. Why Does Induction Work? TRUEFOR n = 1: 1 = ½(1)(2)TRUEFOR n = 1: 1 = ½(1)(2) Letting k = 1 TRUEFOR n = 2: = ½(2)(3)TRUEFOR n = 2: = ½(2)(3) Letting k = 2 TRUEFOR n = 3: = ½(3)(4)TRUEFOR n = 3: = ½(3)(4) Letting k = 3 Proof that if it’s true for n = k, then it’s also true for n = k + 1 TRUEFOR n = 4: = ½(4)(5)TRUEFOR n = 4: = ½(4)(5) Letting k = 4 TRUEFOR n = 5 : = ½(5)(6)TRUEFOR n = 5 : = ½(5)(6) And so on...

CS 340 Page 8 Theorem B:  i = 1,n i 3 = (  i = 1,n i ) 2 for all n  1. Proof (by induction): Step One (Prove for a base case): For n = 1,  i = 1,1 i 3 = 1 = (  i = 1,1 i ) 2. Step Two (Inductive hypothesis): Assume that it’s been proven for n-values through k:  i = 1,k i 3 = (  i = 1,k i ) 2. Step Three (Prove for the next value): Prove for n = k + 1: (  i = 1,k+1 i) 2 = ((k + 1) +  i = 1,k i ) 2 (by commutative law of +) = (k + 1) 2 + 2(k + 1)(  i = 1,k i ) + (  i = 1,k i ) 2 (by distrib. & commut. laws) = (k + 1) 2 + 2(k + 1)(½k(k + 1)) + (  i = 1,k i ) 2 (by Theorem A) = (k + 1) 2 + 2(k + 1)(½k(k + 1)) +  i = 1,k i 3 (by inductive hypothesis) = (k + 1) 3 +  i = 1,k i 3 (by distrib. & commut. laws) =  i = 1,k+1 i 3.(by commutative law of +) Formal Induction Example #2

CS 340 Page 9 What’s Wrong With This Induction? Theorem Z: For any group of n students, all n will get the same grade in CS 340. Proof (by induction): Step One (Prove for a base case): For n = 1, the group consists of a single student, so the entire group obviously will get the same grade in CS 340. Step Two (Inductive hypothesis): Assume that it’s been proven for n-values through k: Any group of k students will get the same CS 340 grade. Step Three (Prove for the next value): Prove for n = k + 1: Given a group of k + 1 students, remove one student. The resulting group of k students will, by the inductive hypothesis, get the same grade in CS 340. Reinsert the student that was removed and then remove a different student. The resulting group of k people will also receive the same grade in CS 340. Thus, since all of the unremoved students will get the same grade as the second removed student and the same grade as the first removed student, all k + 1 students will have to receive the same grade in CS 340!