CS127 Assignment: Mazes

Due 9:50 AM Monday, 2/2/04. Submit your code via HSP.

What you're going to do

For this assignment, you will write a class called Recursion that will consist of several static methods plus a main program to test those methods. Recursion should include the following methods, plus any other methods (if any) that you find helpful. All of the methods listed below should use recursion to solve their problems.

Notes

I did not say that the methods listed above have to be recursive themselves--only that they need to use recursion to solve their problems. For example, it would be completely reasonable for isPalindrome to first create a new string that's all lower case and has only letters in it, and then call a recursive method named, say, recursiveIsPalindrome to do the rest of the work.

Before coding, think: how can I break this problem down into a smaller problem of the same type? For example, a string is a palindrome if the first and last letters are the same and the string with the first and last letters removed is also a palindrome.

Have fun, start early, and keep in touch.





Jeff Ondich, Department of Mathematics and Computer Science, Carleton College, Northfield, MN 55057, (507) 646-4364, jondich@carleton.edu