Code Examples for Recursion Lectures
- Calculating
the moves necessary to solve a Towers of Hanoi problem.
- Calculating Fibonacci numbers, using an efficient
and an inefficient recursive solution.
- Finding a pot of gold within a simple maze, using a backtracking, recursive
strategy. This consists of two classes, MazeWalker,
and Maze. The Maze code given here is not complete,
but only outlines what methods the class should provide to enable MazeWalker.