Towers of Hanoi revisited a nonrecursive surprise
@article{Mayer1984TowersOH, title={Towers of Hanoi revisited a nonrecursive surprise}, author={H. Mayer and D. Perkins}, journal={ACM SIGPLAN Notices}, year={1984}, volume={19}, pages={80-84} }
We describe a simple algorithm that solves the inherently recursive towers of Hanoi problem via iteration. To demonstrate the feasibility of the solution an implementation in Fortran with generated run-time output is appended.
Topics from this paper
16 Citations
Student Monks: Teaching Recursion in an IS or CS Programming Course using the Towers of Hanoi
- Computer Science
- J. Inf. Syst. Educ.
- 2008
- 12
- PDF
An empirical analysis of debugging performance - differences between iterative and recursive constructs
- Computer Science
- J. Syst. Softw.
- 2000
- 18
A Linear space algorithm for solving the towers of hanoi problem by using a virtual disc
- Mathematics, Computer Science
- Inf. Sci.
- 1989
- 3