1 Proofs by Counterexample & Contradiction There are several ways to prove a theorem:  Counterexample: By providing an example of in which the theorem.

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

Lecture 2 Based on Chapter 1, Weiss. Mathematical Foundation Series and summation: ……. N = N(N+1)/2 (arithmetic series) 1 + r+ r 2 + r 3 +………r.
Analysis of Algorithms
 The running time of an algorithm as input size approaches infinity is called the asymptotic running time  We study different notations for asymptotic.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Cutler/HeadGrowth of Functions 1 Asymptotic Growth Rate.
Proof Techniques and Recursion. Proof Techniques Proof by induction –Step 1: Prove the base case –Step 2: Inductive hypothesis, assume theorem is true.
Lecture 2: Math Review and Asymptotic Analysis. Common Math Functions Floors and Ceilings: x-1 < └ x ┘ < x < ┌ x ┐ < x+1. Modular Arithmetic: a mod n.
CS2420: Lecture 2 Vladimir Kulyukin Computer Science Department Utah State University.
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.
CSE115/ENGR160 Discrete Mathematics 03/29/11 Ming-Hsuan Yang UC Merced 1.
Induction and recursion
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
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!
Copyright © Peter Cappello Mathematical Induction Goals Explain & illustrate construction of proofs of a variety of theorems using mathematical induction.
Methods of Proofs PREDICATE LOGIC The “Quantifiers” and are known as predicate quantifiers. " means for all and means there exists. Example 1: If we.
Chapter 5 Existence and Proof by contradiction
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.
CMPT 438 Algorithms Chapter 3 Asymptotic Notations.
Module #13: Inductive Proofs Rosen 5 th ed., § inference of a generalized conclusion from particular instances 2. mathematical demonstration of the.
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
Growth of Functions. 2 Analysis of Bubble Sort 3 Time Analysis – Best Case The array is already sorted – no swap operations are required.
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.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
Chapter 1: Introduction
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Foundations of Discrete Mathematics Chapters 5 By Dr. Dalia M. Gil, Ph.D.
October 3, 2001CSE 373, Autumn Mathematical Background Exponents X A X B = X A+B X A / X B = X A-B (X A ) B = X AB X N +X N = 2X N 2 N +2 N = 2 N+1.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Math Review 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.
13 February 2016 Asymptotic Notation, Review of Functions & Summations.
Mathematical Induction
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.
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.
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.
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
Mathematical Induction
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
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.
Analysis of Algorithms CS 477/677 Instructor: Monica Nicolescu Lecture 2.
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
Induction (chapter of the book and chapter of the notes)
Chapter 1 Logic and Proof.
Chapter 1 Logic and Proof.
11.7 – Proof by Mathematical Induction
Analysis of Algorithms CS 477/677
CSE15 Discrete Mathematics 03/22/17
CS 3343: Analysis of Algorithms
Advanced Algorithms Analysis and Design
Chapter 3 The Real Numbers.
Induction and recursion
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
Mathematical Induction
BaSIC Math Reviews.
Asymptotic Growth Rate
Induction and recursion
CS 3343: Analysis of Algorithms
PROOF BY CONTRADICTION
Ch 4: Recurrences Ming-Te Chi
Geometry.
Direct Proof and Counterexample I
Follow me for a walk through...
Copyright © Cengage Learning. All rights reserved.
Mathematical Induction
Follow me for a walk through...
Examples of Mathematical Proof
Copyright © Cengage Learning. All rights reserved.
Introduction to Proofs
Presentation transcript:

1 Proofs by Counterexample & Contradiction There are several ways to prove a theorem:  Counterexample: By providing an example of in which the theorem does not hold, you prove the theory to be false. For example: All multiples of 5 are even. However 3x5 is 15, which is odd. The theorem is false.  Contradiction: Assume the theorem to be true. If the assumption implies that some known property is false, then the theorem CANNOT be true.

2 Proof by Induction Proof by induction has three standard parts:  The first step is proving a base case, that is, establishing that a theorem is true for some small value(s), this step is almost always trivial.  Next, an inductive hypothesis is assumed. Generally this means that the theorem is assumed to be true for all cases up to some limit n.  Using this assumption, the theorem is then shown to be true for the next value, which is typically n+1 (induction step). This proves the theorem (as long as n is finite).

3 Example: Proof By Induction Claim:S(n) is true for all n >= k  Basis: Show formula is true when n = k  Inductive hypothesis: Assume formula is true for an arbitrary n  Induction Step: Show that formula is then true for n+1

4 Induction Example: Gaussian Closed Form Prove … + n = n(n+1) / 2  Basis: If n = 0, then 0 = 0(0+1) / 2  Inductive hypothesis: Assume … + n = n(n+1) / 2  Step (show true for n+1): … + n + n+1 = ( …+ n) + (n+1) = n(n+1)/2 + n+1 = [n(n+1) + 2(n+1)]/2 = (n+1)(n+2)/2 = (n+1)(n+1 + 1) / 2

5 Induction Example: Geometric Closed Form Prove a 0 + a 1 + … + a n = (a n+1 - 1)/(a - 1) for all a  1  Basis: show that a 0 = (a )/(a - 1) a 0 = 1 = (a 1 - 1)/(a - 1) = 1  Inductive hypothesis: Assume a 0 + a 1 + … + a n = (a n+1 - 1)/(a - 1)  Step (show true for n+1): a 0 + a 1 + … + a n+1 = a 0 + a 1 + … + a n + a n+1 = (a n+1 - 1)/(a - 1) + a n+1 = (a n )/(a - 1)

6 Limits lim [f(n) / g(n)] = 0  f(n)   (g(n)) n  lim [f(n) / g(n)] <   f(n)   (g(n)) n  0 < lim [f(n) / g(n)] <   f(n)   (g(n)) n  0 < lim [f(n) / g(n)]  f(n)  (g(n)) n  lim [f(n) / g(n)] =   f(n)   (g(n)) n 

7 Useful Facts For a  0, b > 0, lim n  ( lg a n / n b ) = 0, so lg a n = o(n b ), and n b =  (lg a n ) lg(n!) =  (n lg n)

8 Examples A B log 3 (n 2 )log 2 (n 3 ) n lg4 3 lg n lg 2 nn 1/2

9 Examples A B log 3 (n 2 )log 2 (n 3 ) n lg4 3 lg n lg 2 nn 1/2

10 Examples A B log 3 (n 2 )log 2 (n 3 )A   (B) log b a = log c a / log c b; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3) n lg4 3 lg n lg 2 nn 1/2

11 Examples A B log 3 (n 2 )log 2 (n 3 )A   (B) log b a = log c a / log c b; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3) n lg4 3 lg n A   (B) a log b = b log a ; B =3 lg n =n lg 3 ; A/B =n lg(4/3)   as n  lg 2 nn 1/2

12 A B log 3 (n 2 )log 2 (n 3 )A   (B) log b a = log c a / log c b; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3) n lg4 3 lg n A   (B) a log b = b log a ; B =3 lg n =n lg 3 ; A/B =n lg(4/3)   as n  lg 2 nn 1/2 A   (B) lim ( lg a n / n b ) = 0 (here a = 2 and b = 1/2)  A   (B) n  Examples

13 Example 10n 2 - 3n =  (n 2 ) What constants for n 0, c 1, and c 2 will work? Make c 1 a little smaller than leading coefficient, and c 2 a little bigger To compare orders of growth, look at the leading term

14 End of Chapter 3