INDUCTION David Kauchak CS52 – Spring 2015. 2-to-1 multiplexer control control_negate and_out1 input0 input1 and_out2 output.

Slides:



Advertisements
Similar presentations
Know what is meant by proof by Induction Learning Outcomes: PROOF BY INDUCTION Be able to use proof by induction to prove statements.
Advertisements

PROOF BY CONTRADICTION
To prove by induction that 2 n ≥ n 2 for n ≥ 4, n  N Next (c) Project Maths Development Team 2011.
Mathematical induction Isaac Fung. Announcement ► Homework 1 released ► Due on 6 Oct 2008 (in class)
Problem Set 1.2. #2-Induction Proof Case k=1 – Left side:Right side: Induction step: assume true for k. For k+1, – Left side: – Using – assumption: –
Strong Induction, WOP and Invariant Method Leo Cheung.
COMP 170 L2 Page 1. COMP 170 L2 Page 2 COMP 170 L2 L10: Intro to Induction l Objective n Introduce induction from proof-by-smallest-counter-example 
To prove by induction that (1 + x) n ≥ 1 + nx for x > -1, n  N Next (c) Project Maths Development Team 2011 Note: x>-1. Hence (1+x)>0.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
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!
CSE373: Data Structures and Algorithms Lecture 2b: Proof by Induction and Powers of Two Nicki Dell Spring 2014.
Chapter 1: Introduction Mathematical Proofs Mathematical Induction CS 340 Page 1.
Discrete Mathematics Tutorial 11 Chin
9.4 Mathematical Induction
1.1 Introduction to Inductive and Deductive Reasoning
Math – What is a Function? 1. 2 input output function.
CSE373: Data Structures and Algorithms Lecture 3: Math Review; Algorithm Analysis Nicki Dell Spring 2014.
Recurrences David Kauchak cs161 Summer Administrative Algorithms graded on efficiency! Be specific about the run times (e.g. log bases) Reminder:
Disjunctive Normal Form CS 270: Math Foundation of CS Jeremy Johnson.
To prove by induction that 3 is a factor of 4 n - 1, n  N Next (c) Project Maths Development Team 2011.
From … to Induction CS 270 Math Foundations of CS Jeremy Johnson.
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction Linda Shapiro Winter 2015.
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.
Other Forms of Induction CS 270 Math Foundations of CS Jeremy Johnson.
Mathematical Induction I Lecture 5: Sep 20 (chapter of the textbook and chapter of the course notes)
Section 8.4 Mathematical Induction. Mathematical Induction In this section we are going to perform a type of mathematical proof called mathematical induction.
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.
INDUCTION David Kauchak CS52 – Spring to-1 multiplexer control control_negate and_out1 input0 input1 and_out2 output.
Mathematical Induction EECS 203: Discrete Mathematics Lecture 11 Spring
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
3.3 Mathematical Induction 1 Follow me for a walk through...
1 Mathematical Induction. 2 What is induction? A method of proof It does not generate answers: it only can prove them Three parts: Base case(s): show.
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.
(Proof By) Induction Recursion
TITLE OF YOUR PROJECT.
11.7 – Proof by Mathematical Induction
MATH 224 – Discrete Mathematics
COMP108 Algorithmic Foundations Mathematical Induction
CSE373: Data Structures and Algorithms Lecture 3: Math Review; Algorithm Analysis Catie Baker Spring 2015.
David Kauchak cs201 Spring 2014
David Kauchak CS52 – Spring 2015
CSE 311: Foundations of Computing
Disjunctive Normal Form
Proofs, Recursion and Analysis of Algorithms
CS 3343: Analysis of Algorithms
Elementary Metamathematics
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
Mathematical Induction
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.
Lesson 11 – Proof by induction
CSE 373: Data Structures & Algorithms
Mathematical Reasoning
CMSC 341 Math Review.
Mathematical Induction
Induction (Section 3.3).
CSE 373 Optional Section Led by Yuanwei, Luyi Apr
This Lecture Substitution model
Proof by induction There are different ways to prove in Maths, induction uses a ‘domino effect’: Step 1: test that an algebraic statement is true for one.
To prove by induction that n! > 2n for n > 3, n  N
Proof by Induction L.O. All pupils understand proof by induction
Year 2 Spring Term Week 2 Lesson 4
Year 2 Spring Term Week 2 Lesson 4
(c) Project Maths Development Team 2011
1.1 Introduction to Inductive and Deductive Reasoning
11.4 Mathematical Induction
COMP108 Algorithmic Foundations Mathematical Induction
Chapter 1 Automata CE year IV.
Presentation transcript:

INDUCTION David Kauchak CS52 – Spring 2015

2-to-1 multiplexer control control_negate and_out1 input0 input1 and_out2 output

A useful identity What is the sum of the powers of 2 from from 0 to n? ?

A useful identity For example, what is: = 31 = … = =1023 ?? The sum of the powers of 2 from from 0 to n is:

A useful identity The sum of the powers of 2 from from 0 to n is: How would you prove this?

Proof by induction 1. State what you’re trying to prove! 2. State and prove the base case - What is the smallest possible case you need to consider? - Should be fairly easy to prove 3. Assume it’s true for k (or k-1). Write out specifically what this assumption is (called the inductive hypothesis). 4. Prove that it then holds for k+1 (or k) a. State what you’re trying to prove (should be a variation on step 1) b. Prove it. You will need to use inductive hypothesis.

An example 1.State what you’re trying to prove!

An example 2. Base case: 1. What is the smallest possible case you need to consider?

An example 2. Base case: 1. i = 0 What does the identity say the answer should be?

An example 2. Base case: 1. i = 0 Is that right?

An example 2. Base case: 1. i = 0 Base case proved!

An example 3. Assume it’s true for some k Prove that it’s true for k+1 a. State what you’re trying to prove: (inductive hypothesis) Assume:

Prove it! Assuming: Prove: Ideas?

Prove it! Assuming: Prove: by the inductive hypothesis Done! by math (combine the two 2 k+1 ) by math

Proof by induction 1. State what you’re trying to prove! 2. State and prove the base case 3. Assume it’s true for k (or k-1) 4. Show that it holds for k+1 (or k) Why does this prove anything?

Proof by induction We proved the base case is true, e.g. If k = 0 is true (the base case) then k = 1 is true If k = 1 is true then k = 2 is true If n-1 is true then n is true …

Another useful identity What is the sum of the numbers from 1 to n? ?

A useful identity The sum of the numbers from 1 to n is: For example, what is sum from 1 to 5? 1 to 100? = 15 = 5*6/ … = 100 * 101/2 = 10100/2 = 5050

Prove it! 1. State what you’re trying to prove! 2. State and prove the base case - What is the smallest possible case you need to consider? - Should be fairly easy to prove 3. Assume it’s true for k (or k-1). Write out specifically what this assumption is (called the inductive hypothesis). 4. Prove that it holds for k+1 (or k) a. State what you’re trying to prove (should be a variation on step 1) b. Prove it. You will need to use the inductive hypothesis.