Strong Induction, WOP and Invariant Method Leo Cheung.

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

PROOF BY CONTRADICTION
Mathematical Induction II Lecture 14: Nov
MA/CSSE 473/474 How (not) to do an induction proof.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
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.
Induction Lecture 5: Sep 21 (chapter of the book and chapter of the notes)
Copyright © Cengage Learning. All rights reserved.
Induction and recursion
Induction Sections 41. and 4.2 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
Methods of Proof Leo Cheung. A Quick Review Direct proof Proof by contrapositive Proof by contradiction Proof by induction.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
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.
Induction (chapter of the book and chapter of the notes)
What it is? Why is it a legitimate proof method? How to use it?
ICS 253 Presents Mathematical Induction Sultan Almuhammadi muhamadi
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!
Lecture 3.1: Mathematical Induction CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
Discrete Mathematics Tutorial 11 Chin
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
Module #13: Inductive Proofs Rosen 5 th ed., § inference of a generalized conclusion from particular instances 2. mathematical demonstration of the.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Chinese Remainder Theorem Dec 29 Picture from ………………………
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.
Discrete Structures & Algorithms More on Methods of Proof / Mathematical Induction EECE 320 — UBC.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Mathematical Induction
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
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,
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.
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.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Mathematical Induction I Lecture 19 Section 4.2 Mon, Feb 14, 2005.
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.
Lecture 2: Proofs and Recursion. Lecture 2-1: Proof Techniques Proof methods : –Inductive reasoning Lecture 2-2 –Deductive reasoning Using counterexample.
Chapter 1 Logic and Proof.
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Advanced Algorithms Analysis and Design
Mathematical Induction II
Chapter 3 The Real Numbers.
Induction and recursion
Predicate Calculus Validity
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Gray Code Can you find an ordering of all the n-bit strings in such a way that two consecutive n-bit strings differed by only one bit? This is called the.
Proofs, Recursion and Analysis of Algorithms
The Foundations: Logic and Proofs
Discrete Mathematics and its Applications
Induction and recursion
PROOF BY CONTRADICTION
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Module #13: Inductive Proofs
Lecture 3.1: Mathematical Induction
Induction Chapter
Advanced Analysis of Algorithms
Copyright © Cengage Learning. All rights reserved.
Mathematical Induction
Induction Rosen 5 Lecture 8: Oct 29, 30.
Discrete Mathematics and its Applications
Copyright © Cengage Learning. All rights reserved.
Lecture 3.1: Mathematical Induction
Tutorial 2 - Daniel Razavi
Presentation transcript:

Strong Induction, WOP and Invariant Method Leo Cheung

Project Register your group at hl=en&formkey=dEE5R181ZkJNMXVDNT V2eUNSaGxjR1E6MA

A Quick Review Strong induction Well ordering principle Invariant method

Prove P(0). Then prove P(n+1) assuming all of P(0), P(1), …, P(n) (instead of just P(n)). Conclude  n.P(n) Recall Strong Induction (Lecture 5, Slide 35) 0  1, 1  2, 2  3, …, n-1  n. So by the time we got to n+1, already know all of P(0), P(1), …, P(n) Strong induction Ordinary induction equivalent

Strong Induction Given »f 1 = 1 »f k = 2 f floor(k/2) Prove f n <= n

Strong Induction - Answer Base case »f 1 = 1 <= 1 Assume f j ≤ j, 1 ≤ j ≤ k f k+1 = 2 f floor((k+1)/2) ≤ 2 floor((k+1)/2) ≤ k+1 Done.

Strong Induction Given »g 0 = 12 »g 1 = 29 »g k = 5g k-1 – 6g k-2 for all integers k >=2 Prove g n = 5x3 n + 7x2 n for all integers n>=0

Strong Induction - Answer Base Case »n = 0, 1 : Trivial Assume the hypothesis is true for 0,1,2,….k-1,k By induction, the proof is done.

Well Ordering Principle Every non-empty set of positive integers contains a smallest element.

Well Ordering Principle To prove P is true »Assume P is false »Then there are set of counter examples C = { c | P(c) is false} »By WOP, choose the smallest element x in C »From x, we get y < x s.t. P(y) is also false »Contradiction!

Well Ordering Principle The equation has no non-zero positive integer solution

Well Ordering Principle - Ans Assume the is solution for the equation By WOP, we pick the solution (u,v,w,x) = (a,b,c,d) such that (a,b,c,d) has the smallest value of u among all the solutions to the equation. »We get Since all the term of left hand side is even, d must be even, so where

Well Ordering Principle - Ans Divide both sides by 2 we get Here c must be even, again we can rewrite the equation as where Divide both sides by 2 and we get

Well Ordering Principle - Ans Apply the same technique to b and a, we will get where Observe that (a’,b’,c’,d’) is now another set of solution to the equation and a’ < a This contradicts the claim that (a,b,c,d) is the solution set with the smallest value of u The assumption is false, hence the equation has no nonzero positive integer solution.

Invariant Method 1.Find properties (the invariants) that are satisfied throughout the whole process. 2.Show that the target do not satisfy the properties. 3.Conclude that the target is not achievable.

Invariant Method Integers 1, 2, 3, 4 and 5 are written on a board. Tom picks any two of the numbers, deletes them, and writes on the board the absolute value of their difference. He repeats this procedure with the resulting 4 numbers, and so on. After he does it 4 times, only one number remains on the board. Can this number be 2?

Invariant Method - Answer Observe that whatever move you made, you can only get an odd number in the final answer. Observe that the total sum of the numbers on the board remains odd. Consider a move, you pick m and n on the board, and write back m-n. »Change in total sum = m+n-(m-n) = 2n »Which means whatever move you make, the change in total sum must be even »The parity of total sum is the invariant Since we start with an odd total sum 15, it is not possible have 2 as the final number because it is even.

Exercises Following exercises can be found in textbook 4.4 : 4, 15, 18, 22

END