Notices
Results 1 to 2 of 2

Thread: algorithm help please

  1. #1 algorithm help please 
    New Member
    Join Date
    Nov 2009
    Location
    816
    Posts
    2
    hi this is my question:

    Consider the folowing relation:

    cn= 5 + 2c[n/3], n=2,3,4..............

    where it's given c1=1

    i) write an iterate algorithm to find cn
    ii) write an recursive algorithm to find cn

    _______________________________________

    i have this so far for iterative:

    For n=1 c1=5+(2/3)c, hence 1=5+(2/3)c
    c=-4*3/2=-6, so that cn=5-12(n/3)=5-4n

    c_n+1 -c_n=-4



    is this correct?
    can you guys PLEASE help me with the recursive one?

    THANKS YOU IN ADVANCE


    i love angie
    Reply With Quote  
     

  2.  
     

  3. #2  
    Forum Radioactive Isotope MagiMaster's Avatar
    Join Date
    Jul 2006
    Posts
    3,440
    Wouldn't this be better asked in the Computer Science section? Also, it sounds like a homework question, so don't expect answers, but someone still might be able to help you.


    Reply With Quote  
     

Bookmarks
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
  •