General Comments on Proofs by Mathematical Induction

Similar documents
General Comments Proofs by Mathematical Induction

Mathematical Induction Assignments

Problem Solving in Math (Math 43900) Fall 2013

CS 2110: INDUCTION DISCUSSION TOPICS

Outline. We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction

Algorithms CMSC The Method of Reverse Inequalities: Evaluation of Recurrent Inequalities

CMSC250 Homework 9 Due: Wednesday, December 3, Question: Total Points: Score:

Section 4.2: Mathematical Induction 1

Design and Analysis of Algorithms

1 Examples of Weak Induction

Sums and Products. a i = a 1. i=1. a i = a i a n. n 1

3 Finite continued fractions

CSC236 Week 2. Larry Zhang

CS173 Lecture B, September 10, 2015

Recursion: Introduction and Correctness

Sum of Squares. Defining Functions. Closed-Form Expression for SQ(n)

CS383, Algorithms Spring 2009 HW1 Solutions

Fall 2017 Test II review problems

data structures and algorithms lecture 2

1 Recursive Algorithms

Mathematical Fundamentals

Discrete Mathematics. Spring 2017

Some Review Problems for Exam 3: Solutions

CSC236 Week 4. Larry Zhang

Divide and Conquer Algorithms

1 = k1 + k 2 2 = 3k 1 + 5k 2

CSE373: Data Structures and Algorithms Lecture 2: Math Review; Algorithm Analysis. Hunter Zahn Summer 2016

Proof Techniques (Review of Math 271)

Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University

Sequences of Real Numbers

Math 475, Problem Set #8: Answers

CSC236 Week 3. Larry Zhang

n n P} is a bounded subset Proof. Let A be a nonempty subset of Z, bounded above. Define the set

Math 3000 Section 003 Intro to Abstract Math Homework 6

At the start of the term, we saw the following formula for computing the sum of the first n integers:

Divide and Conquer Algorithms

Binomial Coefficient Identities/Complements

EXAMPLES OF PROOFS BY INDUCTION

The well-known Fibonacci sequence is defined by a recurrence. Specifically,letF i denote the ith number. Then, we have:

Fall 2014 CMSC250/250H Midterm II

MA008/MIIZ01 Design and Analysis of Algorithms Lecture Notes 3

Algorithm Analysis Recurrence Relation. Chung-Ang University, Jaesung Lee

IB Mathematics HL Year 2 Unit 11: Completion of Algebra (Core Topic 1)

Warm-up Simple methods Linear recurrences. Solving recurrences. Misha Lavrov. ARML Practice 2/2/2014

Exercise 1.3 Work out the probabilities that it will be cloudy/rainy the day after tomorrow.

Math 10850, fall 2017, University of Notre Dame

Solving recurrences. Frequently showing up when analysing divide&conquer algorithms or, more generally, recursive algorithms.

Divide and Conquer. Arash Rafiey. 27 October, 2016

Tutorial 2 WANG PENG. Department of Systems Engineering and Engineering Management, The Chinese University of Hong Kong. September 28, 2017

Design and Analysis of Algorithms

Algorithms Design & Analysis. Analysis of Algorithm

Lecture 6 : Induction DRAFT

The natural numbers. Definition. Let X be any inductive set. We define the set of natural numbers as N = C(X).

Homework #1. Denote the sum we are interested in as To find we subtract the sum to find that

EECS 1028 M: Discrete Mathematics for Engineers

Quiz 3 Reminder and Midterm Results

PHIL 422 Advanced Logic Inductive Proof

Lecture 6: Recurrent Algorithms:

ON THE POSSIBLE QUANTITIES OF FIBONACCI NUMBERS THAT OCCUR IN SOME TYPES OF INTERVALS

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

Asymptotic Analysis and Recurrences

HW Graph Theory SOLUTIONS (hbovik) - Q

Recurrences COMP 215

. As the binomial coefficients are integers we have that. 2 n(n 1).

The maximum-subarray problem. Given an array of integers, find a contiguous subarray with the maximum sum. Very naïve algorithm:

Methods for solving recurrences

Given a sequence a 1, a 2,...of numbers, the finite sum a 1 + a 2 + +a n,wheren is an nonnegative integer, can be written

1.2 The Well-Ordering Principle

k 2r n k n n k) k 2r+1 k 2r (1.1)

CS483 Design and Analysis of Algorithms

Handout: Proof of the completeness theorem

MATH39001 Generating functions. 1 Ordinary power series generating functions

4.4 Recurrences and Big-O

Algorithms. Quicksort. Slide credit: David Luebke (Virginia)

Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University

Generating Function Notes , Fall 2005, Prof. Peter Shor

CIS Spring 2018 (instructor Val Tannen)

Fall 2017 November 10, Written Homework 5

Computational Complexity. This lecture. Notes. Lecture 02 - Basic Complexity Analysis. Tom Kelsey & Susmit Sarkar. Notes

An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees

AN INVESTIGATION OF THE CHUNG-FELLER THEOREM AND SIMILAR COMBINATORIAL IDENTITIES

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

1.2 MATHEMATICAL INDUCTION. Peano s Postulates and Induction. 10 Chapter 1 The Real Numbers

What if the characteristic equation has a double root?

CS1800: Sequences & Sums. Professor Kevin Gold

When we use asymptotic notation within an expression, the asymptotic notation is shorthand for an unspecified function satisfying the relation:

On the possible quantities of Fibonacci numbers that occur in some type of intervals

Nonconstant Coefficients

PRINCIPLE OF MATHEMATICAL INDUCTION

i=1 = H t 1 (x) + α t h t (x)

COMP 355 Advanced Algorithms

MAT 243 Test 2 SOLUTIONS, FORM A

Mergesort and Recurrences (CLRS 2.3, 4.4)

1 Divide and Conquer (September 3)

UNDERSTANDING RULER AND COMPASS CONSTRUCTIONS WITH FIELD THEORY

CS 4407 Algorithms Lecture 2: Iterative and Divide and Conquer Algorithms

1 Direct Proofs Technique Outlines Example Implication Proofs Technique Outlines Examples...

Notes for Recitation 14

CDM. Recurrences and Fibonacci. 20-fibonacci 2017/12/15 23:16. Terminology 4. Recurrence Equations 3. Solution and Asymptotics 6.

COMP 355 Advanced Algorithms Algorithm Design Review: Mathematical Background

Transcription:

Fall 2015: CMSC250 Notes on Mathematical Induction Proofs General Comments on Proofs by Mathematical Induction All proofs by Mathematical Induction should be in one of the styles below. If not there should be a good reason. Our proofs have three separate sections: Base Case, Inductive Hypothesis (IH), and Inductive Step (IS). You must do it this way. (The book combines IH and IS into one section.) Because the Base Case is usually trivial and obvious, the justification must be very detailed. Proofs must explicitly state the Inductive Hypothesis. It is not sufficient to say Assume true for n (although in real life it is sufficient). The book always introduces a predicate P (k) for the statement to be proved. We do not. It is not sufficient to write the IH using P (k). If a proof is by Weak Induction the Induction Hypothesis must reflect that. I.e., you may NOT write the Strong Induction Hypothesis. The Inductive Step MUST explicitly state where the Inductive Hypothesis is used. (Something like by IH is good.)

2 Example Proof by Weak Induction Theorem. For n 1, 4i 2 2n2. BASE CASE: Let n 1. The summation gives n 4i 2 1 4i 2 4 1 3 2. The two values are the same. 2n 2 2 1 2 2. INDUCTIVE HYPOTHESIS [Choice I: From n 1 to n]: Assume that the theorem holds for n 1 (for arbitrary n > 1). Then n 1 4i 2 2(n 1) 2. [It is optional to simplify the right side. If not, it will have to be done inside the Induction Step.] INDUCTIVE STEP: [Choice Ia: Start with the sum we care about.] 4i 2 1 i + (4n 2) by splitting sum 2(n 1) 2 + (4n 2) by IH 2(n 2 2n + 1) + (4n 2) by algebra 2n 2. by algebra So the theorem holds for n. INDUCTIVE STEP: [Choice Ib: Start with the induction hypothesis.] 1 4i 2 2(n 1)2 by IH 4i 2 + (4n 2) 2(n 1)2 + (4n 2) adding 4n 2 to both sides n 4i 2 2(n2 2n + 1) + (4n 2) merging the sum on left side... and algebra on the right side 2n 2. by algebra on the right side 1 So the theorem holds for n. INDUCTIVE HYPOTHESIS: [Choice II: From n to n + 1] Assume that the theorem holds for arbitrary n 1. Then n 4i 2 2n 2.

3 [The following is optional (but often useful). If you do not do this, you will struggle to make the right side have the correct form with n replaced by n + 1. In principle, it should be inside the Inductive Step. At the very least, it must be clearly distinct from the Inductive Hypothesis.] NEED TO SHOW: n+1 4i 2 2(n + 1) 2 2(n 2 + 2n + 1) 2n 2 + 4n + 2. INDUCTIVE STEP: [Choice IIa: Start with the sum we care about.] +1 4i 2 i + (4(n + 1) 2) by splitting sum 2n 2 + (4(n + 1) 2) by IH 2n 2 + (4n + 2) by algebra 2n 2 + 4n + 2. by algebra This is what we needed to prove, so the theorem holds for n + 1. INDUCTIVE STEP: [Choice IIb: Start with the induction hypothesis.] 4i 2 2n2 by IH 4i 2 + (4(n + 1) 2) 2n2 + (4(n + 1) 2) adding 4(n + 1) 2 to both sides +1 4i 2 2n2 + 4n + 2 merging sum on the left side... and algebra on the right side This is what we needed to prove, so the theorem holds for n + 1. Example Proof by Strong Induction BASE CASE: [Same as for Weak Induction.] INDUCTIVE HYPOTHESIS: [Choice I: Assume true for less than n] (Assume that for arbitrary n > 1, the theorem holds for all k such that 1 k n 1.) Assume that for arbitrary n > 1, for all k such that 1 k n 1 that k 4i 2 2k 2. INDUCTIVE HYPOTHESIS: [Choice II: Assume true for less than n + 1] (Assume that for arbitrary n 1 the theorem holds for all k such that 1 k n.) Assume that for arbitrary n > 1, for all k such that 1 k n that k 4i 2 2k 2. INDUCTIVE STEP: [And now a brilliant proof that somehow uses strong induction.]

4 Constructive Induction [We do this proof only one way, but any of the styles is fine.] Guess that the answer is quadratic, so it has form an 2 + bn + c. We will derive the constants a, b, c while proving it by Mathematical Induction. BASE CASE: Let n 1. The summation gives n 4i 2 1 4i 2 4 1 3 2. So, we need a + b + c 2. an 2 + bn + c a 1 2 + b 1 + c a + b + c. INDUCTIVE HYPOTHESIS: Assume that the theorem holds for n 1 (for arbitrary n > 1). Then n 1 4i 2 a(n 1) 2 + b(n 1) + c. [Again, it is optional to simplify the right side.] INDUCTIVE STEP: 4i 2 1 4i 2 + (4n 2) by splitting sum a(n 1) 2 + b(n 1) + c + (4n 2) by IH a(n 2 2n + 1) + b(n 1) + c + (4n 2) by algebra an 2 + ( 2a + b + 4)n + a b + c 2 by algebra an 2 + bn + c. to make the induction work The coefficients on each of the powers have to match. This leads to the three simultaneous equations: b 2a + b + 4 c a b + c 2 2 a + b + c from the base case The first equation gives a 2, then the second gives b 0, and finally the third gives c 0.

5 Constructive Induction (Another Example) Problem: Find an upper bound on F n in the recurrence where F 0 F 1 1. F n F n 1 + F n 2 Guess that the answer is exponential, so F n ab n. We will derive the constants a, b while proving it by Mathematical Induction. BASE CASES: Let n 0. By definition So, a 1. Let n 1. By definition So, ab 1. F n F 0 1 F n ab n ab 0 a F n F 1 1 F n ab n ab 1 ab INDUCTIVE HYPOTHESIS: Assume that for arbitrary n > 1, for all k such that 1 k n 1 that F k ab k. INDUCTIVE STEP: Thus we need to solve or By the quadratic formuls, we get F n F n 1 + F n 2 by definition ab n 1 + ab n 2 by IH ab n. to make the induction work ab n 1 + ab n 2 ab n. b 2 b 1 0. b ( 1) ± ( 1) 2 4 1 1 1 ± 5 2 1 2 Only the positive value can hold. Also, we would like the smallest possible value for b. So we choose b 1 + 5 2 From the base cases we get a 1 (since the other condition is weaker), and now we would like the smallest possible value for a. So we choose a 1. This gives F n ( 1 + 5 2 ) n

6 Catalan Numbers Theorem. For n 1, n!(n+1)! Proof. by Mathematical Induction. BASE CASE: Easy. 4n. (n+1) 2 INDUCTION HYPOTHESIS: Assume true for n 1: INDUCTION STEP: Alternative I n!(n + 1)! INDUCTION STEP: Alternative II 4 n (n + 1) 2 (2(n 1))! (n 1)!n! (n 1)n n(n + 1) n(n + 1) 4n 1 n 2. (2(n 1))! (n 1)!n! 4 n 1 n 2 by IH (n + 1) 2 4n 2 4 n 1 4n 2 (n + 1) 2 n 2 (n + 1) 2 4 n (n 1)n 4n 2 (n + 1) 2 (1 1/2n)(1 + 1/n) 4 n 1 1/n (n + 1) 2 1 + 1/(2n) 1/(2n2 ) 4 n 1 1/n (n + 1) 2 4 n (n + 1) 2. 4n 2 4 n 1 (n + 1) 2 n 2 4n 2 (2(n 1))! (n + 1) 2 (n 1)!n! 4n 2 n(n + 1) (n + 1) 2 1 (1 + 1/n)(1 1/(2n)) 1 (1 + 1/(2n) 1/(2n 2 )) n!(n + 1)!. by IH n(n + 1) n!(n + 1)! n!(n + 1)! (2n 1))! (n 1)!n!