In the comments of the method, indicate how many recursions it requires as a function of x and n.
In the comments of the method, indicate how many recursions it requires as a function of x and n.
Write a method named ack that evaluates Ackerman's function. Can you prove that this method terminates?
CREDIT: These exercises are from Standish, Data Structures in Java, Addison Wesley. Do Exercises 1, 2 and 4 on page 113 of the text.