
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Due Friday, January 30, 2009
Fibonacci numbers are defined recursively as follows: F(n) = n, for n<= F(n) = F(n-1) + F(n-2) for n>
Your assignment consists of writing the following methods to compute F(n): a) A O(2n) method based on the recursive definition b) A O(n) method that uses a loop c) A O(1) method that uses the closed form solution
Conduct experiments to compare the running times of your methods and verify that they behave as expected.