Strong Induction 2/27/121. Induction Rule 2/27/122.

Slides:



Advertisements
Similar presentations
Chapter Recurrence Relations
Advertisements

MAT 4 – Kompleks Funktionsteori MATEMATIK 4 INDUKTION OG REKURSION MM 1.4 MM 1.4: Induktion og Rekursion Topics: Mathematical induction Example of Towers.
Chapter 6 Advanced Counting 6.1 Recurrence Relations.
Chapter Three: Closure Properties for Regular Languages
22C:19 Discrete Structures Induction and Recursion Fall 2014 Sukumar Ghosh.
We Have Learned main() { … } Variable –Definition –Calculation –Display We can do some real programming! –Think about your solution design –Express design.
Discrete Mathematics Math 6A Homework 9 Solution.
Structural Induction Warm-Up. “Balanced String of Parentheses” Base case: –The empty string εis balanced Constructor rules: –C1: If x is balanced then.
Recursive Definitions and Structural Induction
Original Question: How fast rabbits can rabbits breed in ideal circumstances? Suppose a newly-born pair of.
Section 7.4: Closures of Relations Let R be a relation on a set A. We have talked about 6 properties that a relation on a set may or may not possess: reflexive,
Recurrences. What is a Recurrence Relation? A system of equations giving the value of a function from numbers to numbers in terms of the value of the.
10.1 CompSci 102© Michael Frank Today’s topics RecursionRecursion –Recursively defined functions –Recursively defined sets –Structural Induction Reading:
1 Introduction to Computability Theory Discussion3: Uses of the Pumping Lemma Prof. Amos Israeli.
Question: Why is it so difficult for a student to write a coherent argument?
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
1 Recitation 10. Induction Introduction. Induction is useful in proving properties of recursive algorithms, like their execution times. It is also the.
Lecture Recursive Definitions. Fractals fractals are examples of images where the same elements is being recursively.
Lecture Recursive Definitions. Fractals fractals are examples of images where the same elements is being recursively.
Recursion. Recursive Solutions Recursion breaks a problem into smaller identical problems – mirror images so to speak. By continuing to do this, eventually.
1 Section 6.1 Recurrence Relations. 2 Recursive definition of a sequence Specify one or more initial terms Specify rule for obtaining subsequent terms.
4. There once lived a king, named Hagar, who had thousands of sons and daughters, still giving more births to his wives. One of his serious problems was.
Fall 2004COMP 3351 Regular Expressions. Fall 2004COMP 3352 Regular Expressions Regular expressions describe regular languages Example: describes the language.
Chapter 8 With Question/Answer Animations 1. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
The Fibonacci spiral and The Rabbit Experiment By Maripaz Quirós.
Advanced Counting Techniques
Discrete Mathematics CS 2610 March 26, 2009 Skip: structural induction generalized induction Skip section 4.5.
Induction and recursion
© 2006 Pearson Addison-Wesley. All rights reserved 3-1 Chapter 3 Recursion: The Mirrors.
Data Structures and Problem Solving with C++: Walls and Mirrors, Carrano and Henry, © 2013 Recursion: The Mirrors Chapter 2.
Section 1.1 Inductive and Deductive Reasoning
Chapter 8. Section 8. 1 Section Summary Introduction Modeling with Recurrence Relations Fibonacci Numbers The Tower of Hanoi Counting Problems Algorithms.
Section 5.3. Section Summary Recursively Defined Functions Recursively Defined Sets and Structures Structural Induction.
Chapter 5: Sequences, Mathematical Induction, and Recursion 5.6 Defining Sequences Recursively 1 So, Nat’ralists observe, a Flea/Hath smaller Fleas on.
Ch. 7: Advanced Counting Techniques
CSE 2813 Discrete Structures Recurrence Relations Section 6.1.
1 NumberPatterns Press Ctrl-A ©2009 G Dear – Not to be sold/Free to use Stage 4 Years 7 & 8.
Chapter 8 With Question/Answer Animations. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
Recursion Review: A recursive function calls itself, but with a smaller problem – at least one of the parameters must decrease. The function uses the results.
4.3 Recursive Definitions and Structural Induction Sometimes it is difficult to define an object explicitly. However, it may be easy to define this object.
Reading and Writing Mathematical Proofs Spring 2015 Lecture 4: Beyond Basic Induction.
Lecture 4,5 Mathematical Induction and Fibonacci Sequences.
after UCI ICS/Math 6A, Summer AdvancedCounting -1 Recurrence Relations (RRs) A “Recurrence Relation”
MATH 2160 Sequences. Arithmetic Sequences The difference between any two consecutive terms is always the same. Examples: 1, 2, 3, … 1, 3, 5, 7, … 5, 10,
Discrete Structure Li Tak Sing( 李德成 ) Lecture 13 1.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Closure Properties Lemma: Let A 1 and A 2 be two CF languages, then the union A 1  A 2 is context free as well. Proof: Assume that the two grammars are.
1 Recursive Definitions and Structural Induction CS 202 Epp section ??? Aaron Bloomfield.
Introduction to Discrete Probability Epp, section 6.x CS 202.
Waiters’ Nightmare A single rectangular table can seat 6 hungry humans.
Year 9 Proof Dr J Frost Last modified: 19 th February 2015 Objectives: Understand what is meant by a proof, and examples.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Math Review 1.
Fibonacci Your homework was to find out about this man, so lets fill in this together.
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.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
Adding 2-digit numbers with regrouping. Always add the ones place first
Mathematical Induction
Chapter 5 With Question/Answer Animations 1. Chapter Summary Mathematical Induction - Sec 5.1 Strong Induction and Well-Ordering - Sec 5.2 Lecture 18.
Section Recursion 2  Recursion – defining an object (or function, algorithm, etc.) in terms of itself.  Recursion can be used to define sequences.
1 Recursive Definitions and Structural Induction CS/APMA 202 Rosen section 3.4 Aaron Bloomfield.
Section Recursion  Recursion – defining an object (or function, algorithm, etc.) in terms of itself.  Recursion can be used to define sequences.
Logic Gates Review. Logic Gates OR gate – 1 if either input is 1 – 0 if they both are 0.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Dr Nazir A. Zafar Advanced Algorithms Analysis and Design Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar.
“Toy” Model: Fibonacci The Fibonacci sequence first appears in the book Liber Abaci (1202) by Leonardo of Pisa, known as Fibonacci.
Patterns.
Mathematical Induction Recursion
Proving algorithms (programs) correct with induction
Recursion: The Mirrors
Presentation transcript:

Strong Induction 2/27/121

Induction Rule 2/27/122

Strong Induction Rule 2/27/123

Fibonacci Numbers Start with a pair of rabbits After 2 months a new pair is born Once fertile a pair produces a new pair every month Rabbits always come in breeding pairs, and never die 2/27/124 cci's_20rabbits.html

Fibonacci Numbers 0, 1, 0+1=1, 1+1=2, 1+2=3, 2+3=5, 3+5=8, … F n+1 =F n +F n-1 (n≥1) F 0 =0 F 1 =1 2/27/125

How Many Binary Strings of length n with No Consecutive 1s? 2/27/126 n 0<>

How Many Binary Strings of length n with No Consecutive 1s? 2/27/127 n 0<>

How Many Binary Strings of length n with No Consecutive 1s? 2/27/128 n 0<>

How Many Binary Strings of length n with No Consecutive 1s? 2/27/129 n 0<>

How Many Binary Strings of length n with No Consecutive 1s? 2/27/1210 n 0<> , 2, 3, 5, … ? Are these the Fibonacci numbers??

C n = #Binary Strings of length n with No Consecutive 1s 2/27/1211 n01234 CnCn C n = F n+2 ?? Why would that be? Say that a string is “good” if it has no consecutive 1s Why would a “good” string of length n+1 have something to do with good strings of shorter length? n FnFn

Getting Good Strings of Length n+1 2/27/1212 A good string of length n+1 ends in either 0 or 1. Call this good string x. [Try breaking the problem down into cases] If x ends in 0, the first n digits could be any good string of length n since adding a 0 to the end can’t turn a good string bad There are C n strings like that 0 Good string of length n x

Getting Good Strings of Length n+1 2/27/1213 If x ends in 1, the next to last digit must be 0 (otherwise x would end in 11 and be bad) But the previous n-1 digits could be any good string of length n-1. There are C n-1 strings like that Total = C n+1 = C n +C n-1 01 Good string of length n-1 x

Proof by Induction that C n =F n+2 2/27/1214 (Base cases) C 0 = 1 = F 0+2 C 1 = 2 = F 1+2 (Induction hypothesis) Assume n≥1 and C m =F m+2 for all m≤n. Need to show that C n+1 = F n+3 Then C n+1 = C n +C n-1 (by previous slide) = F n+2 +F n+1 (by the induction hypothesis) = F n+3 by defn of Fibonacci numbers

Finis 2/27/1215