Other Forms of Induction

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

PROOF BY CONTRADICTION
22C:19 Discrete Structures Induction and Recursion Fall 2014 Sukumar Ghosh.
Induction and Recursion. Odd Powers Are Odd Fact: If m is odd and n is odd, then nm is odd. Proposition: for an odd number m, m k is odd for all non-negative.
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
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.
Discussion #131/18 Discussion #13 Induction (the process of deriving generalities from particulars) Mathematical Induction (deductive reasoning over the.
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.
CSE115/ENGR160 Discrete Mathematics 03/22/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 03/31/11
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.
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 by: Mohsin tahir (GL) Numan-ul-haq Waqas akram Rao arslan Ali asghar.
Induction and recursion
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.
MATH 224 – Discrete Mathematics
Induction and recursion
Inductive Proof (the process of deriving generalities from particulars) Mathematical Induction (reasoning over the natural numbers)
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!
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
1 CMSC 250 Chapter 4, con't., Inductive Proofs. 2 CMSC 250 Description l Inductive proofs must have: –Base case: where you prove that what it is you are.
Module #13: Inductive Proofs Rosen 5 th ed., § inference of a generalized conclusion from particular instances 2. mathematical demonstration of the.
Chap 3 –A theorem is a statement that can be shown to be true –A proof is a sequence of statements to show that a theorem is true –Axioms: statements which.
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)
From … to Induction CS 270 Math Foundations of CS Jeremy Johnson.
1 INFO 2950 Prof. Carla Gomes Module Induction Rosen, Chapter 4.
1 Recursive Definitions and Structural Induction CS 202 Epp section ??? Aaron Bloomfield.
1+2+3+…+n = n(n+1)/2 We want to prove the above statement by mathematical Induction for all natural numbers (n=1,2,3,…) Next SlideSlide 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.
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.
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.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
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.
1 Proving Properties of Recursive List Functions CS 270 Math Foundations of CS Jeremy Johnson.
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
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.
CS151: Mathematical Foundations of Computing Mathematical Induction.
1 Proofs by Counterexample & Contradiction There are several ways to prove a theorem:  Counterexample: By providing an example of in which the theorem.
CSE15 Discrete Mathematics 03/22/17
Inductive Proof (the process of deriving generalities from particulars) Mathematical Induction (reasoning over the natural numbers)
COT 3100, Spring 2001 Applications of Discrete Structures
Advanced Algorithms Analysis and Design
CS2210:0001Discrete Structures Induction and Recursion
Mathematical Induction II
Induction and recursion
Disjunctive Normal Form
Chapter 5 Induction and Recursion
Proofs, Recursion and Analysis of Algorithms
Proving Properties of Recursive List Functions
CS201: Data Structures and Discrete Mathematics I
Discrete Mathematics and its Applications
Induction and recursion
Lecture 18 Section 4.1 Thu, Feb 10, 2005
CMSC 341 Math Review.
Module #13: Inductive Proofs
Mathematical Induction
Induction Chapter
Advanced Analysis of Algorithms
Chapter 11: Further Topics in Algebra
Mathematical Induction
Mathematical Induction
Discrete Mathematics and its Applications
Copyright © Cengage Learning. All rights reserved.
11.4 Mathematical Induction
Presentation transcript:

Other Forms of Induction CS 270 Math Foundations of CS Jeremy Johnson

Objective To introduce several variants of inductive proofs. These variants are convenient for many problems though they are no more powerful than the induction principle seen so far. Students should be able to carry out inductive proofs using these techniques.

Outline Larger base case Multiple subproblems Full history induction

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. Prove S(0) [Base case] 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.

Larger Base Case 4n < 2n ,  n ≥ 5 Base case n = 5 1 4 2 8 3 12 16 5 20 32 6 24 64 4n < 2n ,  n ≥ 5 Base case n = 5 Assume 4n < 2n IH Show 4(n+1) < 2n+1 4(n+1) = 4n + 4 < 2n + 4 [by IH] < 2n + 2n = 22n=2n+1 [by prop of exponents and since n > 2,4 < 2n]

Exercise Create a table of values for 2n and n! Prove 2n < n! ,  n ≥ 4

Induction with Previous k Cases Let S(n) be a statement parameterized by a non-negative integer n. If S(0), S(1),…,S(k-1) [Base cases] S(n-k)  S(n-1)  S(n) Then S(n) holds for n  0. This follows from induction principle Let S’(n) = S(n)  S(n-k+1) S’(k-1)  S’(n-1)  S’(n) is equivalent to above

Example with 2 Previous Cases n Fn 2n 1 2 4 3 8 5 16 32 6 13 64 Define Fn = Fn-1+Fn-2 n > 1 F0 = 1, F1 = 1 Fn < 2n, n > 0 Need two base cases n=1 and n=2 Assume Fn < 2n [IH] and show Fn+1 < 2n+1 Fn+1 = Fn+Fn-1 < 2n + 2n-1 < 2n + 2n = 2n+1

Exercise Use induction to prove that any postage amount greater than 11 can be created using only 4 and 5 cent stamps. First determine which values upto 15 can be done with 4 and 5 cent stamps. How many base cases do you need?

Full History Induction Let S(n) be a statement parameterized by a non-negative integer n. If S(0) 𝑖=1 𝑛−1 𝑆(𝑖)  S(n) Then S(n) holds for n  0.

N Operand And Define 𝐴 1 ∧…∧ 𝐴 𝑛 = 𝑖=1 𝑛 𝐴 𝑖 𝑖=1 𝑛 𝐴 𝑖 = 𝑖=1 𝑛−1 𝐴 𝑖 ∧ 𝐴 𝑛 𝑛>1 𝐴 1 𝑛=1 This definition uses one particular parenthesization [left to right] Since ∧ is associative it should not matter which parenthesization is used

Generalized Associativity The conjunction of n operands (A1    An) is equivalent to 𝑖=1 𝑛 𝐴 𝑖 independent of which way parentheses are put in. Example. The following are all equivalent (A1  A2)  (A3  A4 ) ((A1  A2)  A3)  A4 (A1  (A2  A3))  A4 A1  (A2  (A3  A4 )) A1  ((A2  A3)  A4 ))

Proof of Generalized Associativity We show that an arbitrary parenthesization is equivalent to 𝑖=1 𝑛 𝐴 𝑖 . The proof uses full history induction. The base case with one operand is trivially true. Assume the theorem is true for a conjunction of k operands for k < n

Proof of Generalized Associativity A conjuction of n operands computes the and of a conjunction of the first k operands and a conjunction of the last n-k operands for 1 ≤ k < n. (A1    Ak)  (Ak+1    An) By IH (Ak+1    An)  𝑖=𝑘+1 𝑛 𝐴 𝑖  𝑖=𝑘+1 𝑛−1 𝐴 𝑖  𝐴 𝑛 (A1    Ak)  (Ak+1    An)  (A1    Ak)  𝑖=𝑘+1 𝑛−1 𝐴 𝑖  𝐴 𝑛 , which again by IH on the first n- 1 operands  𝑖=1 𝑛−1 𝐴 𝑖  𝐴 𝑛 = 𝑖=1 𝑛 𝐴 𝑖