4
Contributors
7
Replies
54
Views
8 Months
Discussion Span
Last Post by AssertNull
0

So let's suppose I have done what you said and modified my Ackermann function successfully. Now, did you have question, or were you just issuing some kind of Xmas holiday challenge?

0

James,
Thank you for your input. it is just a challenge question, no more . I promise no more question.
Smain,

1

I promise no more question.

Sorry, That's not what I meant. Please do ask questions. It's just that your post didn't ask a question, so nobody knew how to answer it.

0

Implement the Ackermann function in C++ using memoization?

Acker(m,n) = n+1 if m=o, = A(m-1,1) if n=0, = Acker(m-1, Acker(m,n-1)) otherwise.

1

Adding a question mark doesn't turn a sentence into a question. Your "question" reads like a work order or homework rather than a question.

The second sentence is vague too.

Try this. Share your work so far. Also, if I google a part of your text, I think I see completed code. Of course, give attribution when you lift code from the web.

PS. Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question so you get a clear idea how to post here.

Edited by rproffitt: Added PS. Link

0

Implement the Ackermann function in C++ using memoization?

the function ackerman is :Acker(m,n) = n+1 if m=o, = A(m-1,1) if n=0, = Acker(m-1, Acker(m,n-1)) otherwise.

2

Who's challenging who and with what and for what purpose? If you're challenging us, you should know something about the material or have some type of an opinion or context or something , none of which appears anywhere in your post.

If YOU'RE being challenged by someone else, that's something else. It comes off as homework disguised as a challenge. Just flat out say what this is about. No one wants to get burned thinking they're solving some interesting challenge if it's just regular old boring homework.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.