1 / 15

Strong Induction

Strong Induction. Induction Rule. Strong Induction Rule. Fibonacci Numbers. http://morrischia.com/david/portfolio/boozy/research/fibonacci's_20rabbits.html. Start with a pair of rabbits After 2 months a new pair is born Once fertile a pair produces a new pair every month

junior
Download Presentation

Strong Induction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Strong Induction

  2. Induction Rule

  3. Strong Induction Rule

  4. Fibonacci Numbers http://morrischia.com/david/portfolio/boozy/research/fibonacci's_20rabbits.html 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

  5. Fibonacci Numbers 0, 1, 0+1=1, 1+1=2, 1+2=3, 2+3=5, 3+5=8, … Fn+1=Fn+Fn-1 (n≥1) F0=0 F1=1

  6. How Many Binary Strings of length nwith No Consecutive 1s?

  7. How Many Binary Strings of length nwith No Consecutive 1s?

  8. How Many Binary Strings of length nwith No Consecutive 1s?

  9. How Many Binary Strings of length nwith No Consecutive 1s?

  10. How Many Binary Strings of length nwith No Consecutive 1s? 1, 2, 3, 5, … ? Are these the Fibonacci numbers??

  11. Cn = #Binary Strings of length nwith No Consecutive 1s Cn = Fn+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?

  12. Getting Good Strings of Length n+1 x Good string of length n 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 xends 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 Cn strings like that

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

  14. Proof by Induction that Cn=Fn+2 (Base cases) C0 = 1 = F0+2 C1 = 2 = F1+2 (Induction hypothesis) Assume n≥1 and Cm=Fm+2 for all m≤n. Need to show that Cn+1 = Fn+3 Then Cn+1 =Cn+Cn-1 (by previous slide) = Fn+2+Fn+1 (by the induction hypothesis) = Fn+3 by defn of Fibonacci numbers

  15. Finis

More Related