Data Structures and Algorithms Discussion Board
February 04, 2012, 10:29:26 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Looking for a reliable webhosting provider? Read HostGator review to find 7 arguments in support of HostGator.
 
   Home   Help Search Login Register  
Poll
Question: ITERATIVE AND RECURSION
DATA - 0 (0%)
ALGORITHM - 1 (100%)
Total Voters: 1

Pages: [1]
  Print  
Author Topic: Fibonacci series algorithm (iterative and recursive)  (Read 8272 times)
funjoke88
Newbie
*

Rating: 0
Offline Offline

Posts: 2


« on: July 06, 2009, 11:07:32 PM »

1.   Write an iterative and a recursive version of the Fibonacci series algorithm. You need to ensure the correctness of the both algorithms. Both algorithms should produce similar output if given a similar input.

a.   Measure the performance of the two algorithms by measuring the time for both algorithms to listing out 10, 20, 30, 40, 50, 60, 70 and 80 of Fibonacci numbers. The listing procedure could be done with a loop. For each test, repeat 3 times and get the average value.

« Last Edit: July 07, 2009, 02:49:15 AM by SiteAdmin » Logged
Algolist.net Editor
Administrator
Newbie
*****

Rating: 0
Offline Offline

Posts: 8


« Reply #1 on: July 07, 2009, 03:06:02 AM »

A language?
Logged
funjoke88
Newbie
*

Rating: 0
Offline Offline

Posts: 2


« Reply #2 on: July 08, 2009, 03:04:01 AM »

anybody who know this question pls help thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

 
Partners Ads        total shop solutions        best price r4ds online