Go Back   CodeCall Programming Forum > Software Development > C and C++
Register Blogs Search Today's Posts Mark Forums Read

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-2009, 08:30 PM
Newbie
 
Join Date: Jul 2009
Posts: 11
funjoke88 has a little shameless behaviour in the past
Recursive assignment

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 07:04 AM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
Re: Recursive assignment

1) you can find code for this most anywhere. What do you have so far?
a) this depends heavily on the particular code you have... post it and we can start discussing.

Hint: we don't do homework for people, so you have to meet us half way by producing some code.
__________________
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-09-2009, 08:22 AM
Programmer
 
Join Date: Jun 2009
Posts: 104
Mathematix is an unknown quantity at this point
Re: Recursive assignment

Quote:
Originally Posted by WingedPanther View Post
Hint: we don't do homework for people, so you have to meet us half way by producing some code.
Very well said, WP!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Java help due assignment due 6-20 kris1976 Java Help 6 06-21-2009 02:26 PM
Need Help With Assignment (Using C) fantanoice C and C++ 6 04-05-2009 11:36 AM
Assignment Data Structures Need Help plzzz passenger C and C++ 5 04-01-2009 06:54 AM
Help me with this Hash Table assignment..PLESE I beg you guys Asem C and C++ 3 08-26-2008 12:20 AM
NEED C++ Assignment HELP URGENT! Sakinah C and C++ 7 08-06-2007 01:42 PM


All times are GMT -5. The time now is 10:33 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0