15-251 Great Theoretical Ideas in Computer Science.

Slides:



Advertisements
Similar presentations
It’s all About Fibonacci Numbers.
Advertisements

1 Fibonacci Numbers Stage 4 Year 7 Press Ctrl-A ©2009 – Not to be sold/Free to use.
Recurrences and Continued Fractions Great Theoretical Ideas In Computer Science V. Adamchik D. Sleator CS Spring 2010 Lecture 8 Feb 04, 2010 Carnegie.
Recursion Lecture 18: Nov 18.
Lecture 3: Reduce to known problem Convex Hull (section 33.3 of CLRS). Suppose we have a bunch of points in the plane, given by their x and y coordinates.
CPE 130 Algorithms and Data Structures Recursion Asst. Prof. Dr. Nuttanart Facundes.
Lecture 3, Tuesday, Aug. 29. Chapter 2: Single species growth models, continued 2.1. Linear difference equations, Fibonacci number and golden ratio. Required.
Math around Us: Fibonacci Numbers John Hutchinson March 2005.
The Fibonacci Numbers And An Unexpected Calculation. Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 7Feb 3, 2004Carnegie.
Spiral Growth in Nature
The sequence begins with one. Each subsequent number is the sum of the two preceding numbers. The sequence begins with one. Each subsequent number is.
ISU CCEE BioE 202: Aesthetics The Golden Section – its origin and usefulness in engineering.
Fibonacci Numbers.
Discovering Fibonacci
FIBONACCI NUMBERS 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, ,
Great Theoretical Ideas in Computer Science.
The Golden Ratio, Fibonacci Numbers, And Other Recurrences Great Theoretical Ideas In Computer Science John LaffertyCS Fall 2006 Lecture 13October.
Fibonacci… and his rabbits Leonardo Pisano Fibonacci is best remembered for his problem about rabbits. The answer – the Fibonacci sequence -- appears naturally.
« Philosophy is written in this huge book that I call universe which has always been opened in front of us but we can’t understand it if we first don’t.
Great Theoretical Ideas in Computer Science for Some.
Maths in Nature By Keith Ball.
Fibonacci Numbers, Polynomial Coefficients, and Vector Programs.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 9 The Mathematics of Spiral Growth 9.1Fibonacci’s Rabbits 9.2Fibonacci.
Sequences defined recursively
Heatons Reddish U3A Science Group
SECTION 5-5 The Fibonacci Sequence and the Golden Ratio Slide
The Mathematical Formula of Life
Recursion.
From Counting to Pascal: A Journey through Number Theory, Geometry, and Calculus NYS Master Teachers March 9, 2015 Dave Brown – Slides.
The power of logarithmic computations Jordi Cortadella Department of Computer Science.
CS-2852 Data Structures LECTURE 12B Andrew J. Wozniewicz Image copyright © 2010 andyjphoto.com.
INTRODUCTION TO THE GOLDEN MEAN … and the Fibonacci Sequence.
Great Theoretical Ideas in Computer Science.
Leonardo Pisano Fibonacci
The Golden Mean The Mathematical Formula of Life Life.
Fibonacci Numbers, Vector Programs and a new kind of science.
Fibonacci Sequences and the Golden Ratio Carl Wozniak Northern Michigan University.
COMPSCI 102 Discrete Mathematics for Computer Science.
Great Theoretical Ideas in Computer Science.
Introduction to Fibonacci number
The Fibonacci Sequence
Recurrences, Phi and CF Great Theoretical Ideas In Computer Science S. Rudich V. Adamchik CS Spring 2006 Lecture 13 Feb 28, 2006 Carnegie Mellon.
Algorithmic Foundations COMP108 COMP108 Algorithmic Foundations Divide and Conquer Prudence Wong
The Golden Ratio What is it? Also known as Phi (rhymes with fly)
COMPSCI 102 Introduction to Discrete Mathematics.
Recursive Sequences Terry Anderson. What is a Recursive Sequence? A sequence that follows a pattern involving previous terms  To generate new terms,
Petals Most flowers have 5 or 8 petals Seeds Many plants have 3, 5 or 8 seeds.
Dr Nazir A. Zafar Advanced Algorithms Analysis and Design Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar.
The Fibonacci Number Sequence
The Fibonacci Sequence and The Goldens
Fibonacci Numbers Based on the following PowerPoint's
The Mathematical Formula of Life
A Number You Can Call Your Own
Induction: One Step At A Time
Fibonacci numbers Golden Ratio, recurrences
Great Theoretical Ideas in Computer Science
The Fibonacci Numbers And An Unexpected Calculation
Fibonacci numbers Golden Ratio, recurrences
The Mathematical Formula of Life
Great Theoretical Ideas in Computer Science
The Golden Ratio, Fibonacci Numbers, And Other Recurrences
Great Theoretical Ideas in Computer Science
Induction: One Step At A Time
Induction: One Step At A Time
The Mathematical Formula of Life
The Mathematical Formula of Life
Fibonacci numbers Golden Ratio, recurrences
Induction: One Step At A Time
Presentation transcript:

Great Theoretical Ideas in Computer Science

Fibonacci Numbers and the Golden Ratio Lecture 15 (October 16, 2007)

Leonardo Fibonacci In 1202, Fibonacci proposed a problem about the growth of rabbit populations

month rabbits Rabbit Reproduction A rabbit lives forever The population starts as single newborn pair Every month, each productive pair begets a new pair which will become productive after 2 months old F n = # of rabbit pairs at the beginning of the n th month

Fibonacci Numbers Stage 0, Initial Condition, or Base Case: Fib(1) = 1; Fib (2) = 1 Inductive Rule: For n>3, Fib(n) = Fib(n-1) + Fib(n-2) month rabbits

Sneezwort (Achilleaptarmica) Each time the plant starts a new shoot it takes two months before it is strong enough to support branching.

Counting Petals 5 petals: buttercup, wild rose, larkspur, columbine (aquilegia) 8 petals: delphiniums 13 petals: ragwort, corn marigold, cineraria, some daisies 21 petals: aster, black-eyed susan, chicory 34 petals: plantain, pyrethrum 55, 89 petals: michaelmas daisies, the asteraceae family.

Ratio obtained when you divide a line segment into two unequal parts such that the ratio of the whole to the larger part is the same as the ratio of the larger to the smaller. Definition of  (Euclid) ABC  = AC AB BC =  2 = AC BC  2 -  = AC BC AB BC -== 1

 2 –  – 1 = 0  = 1 +  5 2

Expanding Recursively

Continued Fraction Representation

1,1,2,3,5,8,13,21,34,55,…. 2/1 =2 3/2=1.5 5/3=1.666… 8/5=1.6 13/8= /13= … 34/21= …  =

Pineapple whorls Church and Turing were both interested in the number of whorls in each ring of the spiral. The ratio of consecutive ring lengths approaches the Golden Ratio.

Sequences That Sum To n 2 = Let f n+1 be the number of different sequences of 1’s and 2’s that sum to n. f 1 = 10 = the empty sum f 2 = 11 = 1 f 3 = 2

Sequences That Sum To n Let f n+1 be the number of different sequences of 1’s and 2’s that sum to n. 4 =

f n+1 = f n + f n-1 # of sequences beginning with a 2 # of sequences beginning with a 1 Sequences That Sum To n Let f n+1 be the number of different sequences of 1’s and 2’s that sum to n.

Fibonacci Numbers Again f n+1 = f n + f n-1 f 1 = 1 f 2 = 1 Let f n+1 be the number of different sequences of 1’s and 2’s that sum to n.

Visual Representation: Tiling Let f n+1 be the number of different ways to tile a 1 × n strip with squares and dominoes.

1 way to tile a strip of length 0 1 way to tile a strip of length 1: 2 ways to tile a strip of length 2: Visual Representation: Tiling

f n+1 = f n + f n-1 f n+1 is number of ways to tile length n. f n tilings that start with a square. f n-1 tilings that start with a domino.

Fibonacci Identities Some examples: F 2n = F 1 + F 3 + F 5 + … + F 2n-1 F m+n+1 = F m+1 F n+1 + F m F n (F n ) 2 = F n-1 F n+1 + (-1) n

F m+n+1 = F m+1 F n+1 + F m F nmn m-1n-1

(F n ) 2 = F n-1 F n+1 + (-1) nn-1 F n tilings of a strip of length n-1

(F n ) 2 = F n-1 F n+1 + (-1) n n (F n ) 2 tilings of two strips of size n-1

(F n ) 2 = F n-1 F n+1 + (-1) n n Draw a vertical “fault line” at the rightmost position (<n) possible without cutting any dominoes

(F n ) 2 = F n-1 F n+1 + (-1) n n Swap the tails at the fault line to map to a tiling of 2 (n-1)’s to a tiling of an n-2 and an n.

(F n ) 2 = F n-1 F n+1 + (-1) n-1 n even n odd

The Fibonacci Quarterly