Closed Thread
Results 1 to 3 of 3

Thread: Recursive assignment

  1. #1
    funjoke88 is offline Newbie
    Join Date
    Jul 2009
    Posts
    22
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,525
    Blog Entries
    75
    Rep Power
    144

    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.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Mathematix is offline Programmer
    Join Date
    Jun 2009
    Posts
    112
    Rep Power
    0

    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!

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. recursive remove the id
    By batowiise in forum PHP Development
    Replies: 2
    Last Post: 06-10-2011, 09:06 AM
  2. Recursive Help
    By concept in forum PHP Development
    Replies: 2
    Last Post: 05-17-2010, 04:08 AM
  3. recursive function
    By pretty.gal13 in forum C# Programming
    Replies: 5
    Last Post: 03-06-2009, 08:45 AM
  4. Recursive problem
    By DarkSun in forum General Programming
    Replies: 3
    Last Post: 01-22-2009, 02:59 PM
  5. Recursive Problem
    By chili5 in forum Java Help
    Replies: 3
    Last Post: 11-26-2008, 07:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

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