+ Reply to Thread
Results 1 to 3 of 3

Thread: Recursive assignment

  1. #1
    Newbie funjoke88 has a little shameless behaviour in the past
    Join Date
    Jul 2009
    Posts
    13

    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.

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,660
    Blog Entries
    57

    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

  3. #3
    Programmer Mathematix is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    104

    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!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Need Java help due assignment due 6-20
    By kris1976 in forum Java Help
    Replies: 6
    Last Post: 06-21-2009, 01:26 PM
  2. Need Help With Assignment (Using C)
    By fantanoice in forum C and C++
    Replies: 6
    Last Post: 04-05-2009, 10:36 AM
  3. Assignment Data Structures Need Help plzzz
    By passenger in forum C and C++
    Replies: 5
    Last Post: 04-01-2009, 05:54 AM
  4. Replies: 3
    Last Post: 08-25-2008, 11:20 PM
  5. NEED C++ Assignment HELP URGENT!
    By Sakinah in forum C and C++
    Replies: 7
    Last Post: 08-06-2007, 12:42 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts