Ackermann's function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ramya Sundaramoorthy
    New Member
    • Jan 2008
    • 2

    Ackermann's function

    Could anybody help me out with a non-recursive program for Ackermann's function????
  • emaghero
    New Member
    • Oct 2006
    • 85

    #2
    Originally posted by Ramya Sundaramoorthy
    Could anybody help me out with a non-recursive program for Ackermann's function????
    Google it. Enter Ackermann Function into Google and the first site you get gives plenty of info.

    Comment

    • sicarie
      Recognized Expert Specialist
      • Nov 2006
      • 4677

      #3
      Originally posted by Ramya Sundaramoorthy
      Could anybody help me out with a non-recursive program for Ackermann's function????
      Sure, what do you have so far? What are you needing help on?

      Comment

      • Ramya Sundaramoorthy
        New Member
        • Jan 2008
        • 2

        #4
        Hi

        I could get only the recursive program for Ackermann's function....But I am in need of a non recursive program for it in C language.It will be helpful if you are able to give me the link....

        Comment

        • sicarie
          Recognized Expert Specialist
          • Nov 2006
          • 4677

          #5
          Originally posted by Ramya Sundaramoorthy
          Hi

          I could get only the recursive program for Ackermann's function....But I am in need of a non recursive program for it in C language.It will be helpful if you are able to give me the link....
          Well, you need to get the algorithm for Ackermann's function. I'm guessing this will be the recursive, as you say that's all you can find. From that recursive, you can develop a non-recursive algorithm and then code it.

          Comment

          • weaknessforcats
            Recognized Expert Expert
            • Mar 2007
            • 9214

            #6
            What sicarie says is correct. Any recursive function can be replaced by a single function containing a loop.

            Comment

            Working...