Inductive Proof (the process of deriving generalities from particulars) Mathematical Induction (reasoning over the natural numbers)

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL 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.
Induction Sections 41. and 4.2 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
Discussion #12 1/22 Discussion #12 Deduction, Proofs and Proof Techniques.
Discussion #131/18 Discussion #13 Induction (the process of deriving generalities from particulars) Mathematical Induction (deductive reasoning over the.
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
1 Intro to Induction Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
CSE115/ENGR160 Discrete Mathematics 02/01/11
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Copyright © Cengage Learning. All rights reserved.
Mathematical Induction Readings on induction. (a) Weiss, Sec. 7.2, page 233 (b) Course slides for lecture and notes recitation. Every criticism from a.
CSE115/ENGR160 Discrete Mathematics 03/29/11 Ming-Hsuan Yang UC Merced 1.
Mathematical Induction
Induction and Recursion by: Mohsin tahir (GL) Numan-ul-haq Waqas akram Rao arslan Ali asghar.
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.
Algorithm Design and Analysis (ADA)
Methods of Proof & Proof Strategies
MATH 224 – Discrete Mathematics
Induction and recursion
Copyright © Cengage Learning. All rights reserved.
Chapter 6 Mathematical Induction
Analysis of Algorithms
Discrete Maths Objective to introduce mathematical induction through examples , Semester 2, Mathematical Induction 1.
Copyright © Peter Cappello Mathematical Induction Goals Explain & illustrate construction of proofs of a variety of theorems using mathematical induction.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Discrete Maths: Induction/1 1 Discrete Maths Objective – –to introduce mathematical induction through examples , Semester
Module #13: Inductive Proofs Rosen 5 th ed., § inference of a generalized conclusion from particular instances 2. mathematical demonstration of the.
Induction Proof. Well-ordering A set S is well ordered if every subset has a least element. [0, 1] is not well ordered since (0,1] has no least element.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Mathematical Induction Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Mathematical induction is a legitimate method.
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.
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
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.
Classifications LanguageGrammarAutomaton Regular, right- linear Right-linear, left-linear DFA, NFA Context-free PDA Context- sensitive LBA Recursively.
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction Linda Shapiro Winter 2015.
INDUCTION Slides of Ken Birman, Cornell University.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
CS104:Discrete Structures Chapter 2: Proof Techniques.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
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.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2012 CSE
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Mathematical Induction 1. 2 Suppose we have a sequence of propositions which we would like to prove: P (0), P (1), P (2), P (3), P (4), … P (n), … We.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Mathematical Induction
Chapter 1 Logic and proofs
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
1 Mathematical Induction An inductive proof has three parts: –Basis case –Inductive hypothesis –Inductive step Related to recursive programming.
CSE15 Discrete Mathematics 02/01/17
CSE15 Discrete Mathematics 03/22/17
Inductive Proof (the process of deriving generalities from particulars) Mathematical Induction (reasoning over the natural numbers)
Advanced Algorithms Analysis and Design
Induction and recursion
Methods of Proof A mathematical theorem is usually of the form pq
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
CS201: Data Structures and Discrete Mathematics I
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Induction (Section 3.3).
Advanced Analysis of Algorithms
Copyright © Cengage Learning. All rights reserved.
Mathematical Induction
Mathematical Induction
Copyright © Cengage Learning. All rights reserved.
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Inductive Proof (the process of deriving generalities from particulars) Mathematical Induction (reasoning over the natural numbers)

Statements that Depend on a Natural Number Sometimes we wish to prove that a statement is true for all natural numbers n  0 or for all natural numbers greater than some initial number Examples: –Prove: The sum of the numbers 1 to n is n(n+1)/2 –Prove: n 2 > 2n + 1, for n  3 –Prove: If T is a full binary tree, then the number of nodes at each level n of T is 2 n –Prove: If E is an expression with n occurrences of binary operators, then E has n+1 operands Each statement S to be proved depends on a single number n –We can write S(n) to denote the statement that depends on n –Thus, for the first statement above, S(n) is “The sum of the numbers 1 through n is n(n+1)/2.”

Prove S(n) for all n  m To prove a statement S(n) for n  m, we must show that S(m), S(m+1), S(m+2), … are all true. –Example: For S(n) = “The sum of the numbers 1 through n is n(n+1)/2” we must prove: The sum of the numbers 1 to 1 is 1(1+1)/2 The sum of the numbers 1 to 2 is 2(2+1)/2 The sum of the numbers 1 to 3 is 3(3+1)/2 … –Unfortunately, we can never reach the end The simple pattern of one after the next, however, lets us solve the problem

Modus Ponens is the Key S(1) S(1)  S(2) S(2) S(2)  S(3) S(3) … S(k) S(k)  S(k+1) S(k+1) … If we can get started … And then show for an arbitrary natural number k that this implication is a tautology … We can conclude that S is true for the next natural number, k+1 (if it is true for k) Then since k is chosen arbitrarily (works for any natural number), S must be true for k = 2, 3, … (all natural numbers)

Induction Fundamentals by Example Prove: S(n), e.g. Prove: “The sum of the numbers from 1 to n is n(n+1)/2.” Basis: (i.e., this is how we get started) S(1) holds i.e., the sum of the numbers from 1 to 1 (=1) is 1(1+1)/2 (=1) is a true statement The implication to be proved: S(k)  S(k+1) i.e., the sum of the numbers from 1 to k is k(k+1)/2  The sum of the numbers from 1 to k+1 is (k+1)((k+1)+1)/2 Induction: (i.e., this is the proof of the implication) S(k)  premise (The premise is called the induction hypothesis) The sum of the numbers from 1 to k+1 is the sum of the numbers from 1 to k, to which we add k+1  by definition The sum of the numbers from 1 to k+1 is thus k(k+1)/2 + (k+1)  by S(k) The sum of the numbers from 1 to k+1 is = k(k+1)/2+2(k+1)/2 = (k(k+1)+2(k+1))/2 = (2k+2+k 2 +k)/2 = (k 2 +3k+2)/2 = (k+1)(k+2)/2 = (k+1)((k+1)+1)/2  by algebra which establishes S(k+1)

Key Components Basis Proof of the induction implication Use of the induction hypothesis –A proof that does not use the induction hypothesis may be a valid proof, but it is not an induction proof

Quadratic vs. Linear Prove: n 2 > 2n + 1, for n  3. Basis:n = 3: 3 2 = 9 > 2(3) + 1 = 7 Show: n 2 > 2n + 1  (n+1) 2 > 2(n+1) + 1 Induction hypothesis: n 2 > 2n + 1 Note: n  3 is a premise, which we can use as needed. Induction: (n+1) 2 = n 2 + 2n + 1 > 2n n + 1 induction hypothesis = 2n n = 2(n+1) + 2n > 2(n+1) + 1 since 2n > 1 for n  3

Full Binary Tree Prove: If T is a full binary tree, then the number of nodes at each level n of T is 2 n Full binary tree: n=0, 2 0 = 1 n=1, 2 1 = 2 n=2, 2 2 = 4 n=3, 2 3 = 8

Full Binary Tree (cont’d) Prove: If T is a full binary tree, then the number of nodes at each level n of T is 2 n Basis: The number of nodes at level 0 is 1 (only the root) which is 2 0 = 1 Induction: Let T be a full binary tree, then, by the induction hypotheses, the number of nodes at level k of T is 2 k. Since a full binary tree has 2 children for each node, there are 2  2 k = 2 k+1 nodes at level k+1. Thus, the number of nodes at level k+1 of T is 2 k+1.

Why Induction Works  by Example Consider the full binary tree proof just completed –By our proof, we know that the basis is true: # of nodes at level 0 is 2 0 –Also by our proof, we know that the induction implication is true for any natural number k: # of nodes at level k is 2 k  # of nodes at level k+1 is 2 k+1 Thus, we can inductively unroll the proof by plugging in values. 1.# of nodes at level 0 is basis 2.# of nodes at level 0 is 2 0  # of nodes at level 1 is ind. implic. with k=0 3.# of nodes at level 1 is modus ponens, 1&2 4.# of nodes at level 1 is 2 1  # of nodes at level 2 is ind. implic. with k=1 5.# of nodes at level 2 is modus ponens, 3&4 6.# of nodes at level 2 is 2 2  # of nodes at level 3 is ind. implic. with k=2 7.# of nodes at level 3 is modus ponens, 5&6 8.# of nodes at level 3 is 2 3  # of nodes at level 4 is ind. implic. with k=3 9.# of nodes at level 4 is modus ponens, 7&8 10. …  Inductively, this goes on forever; and thus the statement holds for all natural numbers.

Previous One vs. Any Previous S(1) S(1)  S(2) S(2) S(1)  S(2) S(1)  S(2)  S(3) S(3) … S(k) S(1)  …  S(k) S(1)  …  S(k)  S(k+1) S(k+1) … Since all of S(1), …, S(k) hold at this point, we can use any one or more or even all of S(1),..., S(k) to help prove S(k+1).

Number of Operands Prove S(n) : If E is an expression with n occurrences of binary operators, then E has n+1 operands e.g. (2+3)  ((5+1)/3) has 4 operator occurrences and 5 operands Basis: For S(0), E has 0 binary operators and 0+1 operands (just a single operand) Induction: We must prove: S(0)  …  S(k)  S(k+1).

Number of Operands (cont’d) Induction: Let E be an expression with k+1 occurrences of binary operators. Then E is of the form E 1  E 2 where E 1 and E 2 are expressions and  is the binary operator. Let E 1 have k 1 occurrences of binary operators and E 2 have k 2 occurrences of binary operators and thus E has k 1 +k 2 +1 = k+1 occurrences of binary operators. Now, k 1  k and k 2  k. Hence, by the induction hypothesis, E 1 has k 1 +1 operands and E 2 has k 2 +1 operands. Thus E has k 1 +1+k 2 +1 = (k 1 +k 2 +1)+1 = (k+1)+1 operands.  E1E1 E2E2 k 1 operator occurrences k 2 operator occurrences 1 operator k 1 +k 2 +1 = k+1operator occurrences E =

Proof by Induction  Summary Observe that a proof by induction turns a proof into the form P  Q, a standard direct proof Basis: Special case for the first, or first few, of the sequence, often S(0) Induction: –Weak, 1 st Principle: S(k)  S(k+1) –Strong, 2 nd Principle: S(0)  …  S(k)  S(k+1) The induction hypothesis, which must be used to prove the implication, is the lhs of the implication

Proof Techniques  Summary Exhaustive Truth Proof Equivalence to Truth Iff Proof Direct Proof ( P  Q) Contrapositive Proof ( P  Q   Q   P) Contradiction Proof ( P   P  F, P  Q  P   Q  F) Proof by Induction Basis:S(0) Weak, 1 st Principle: S(k)  S(k+1) Strong, 2 nd Principle: S(0)  …  S(k)  S(k+1)