© 2004 by British Computer Society
| ||||||||||||||||||||||||||||||||||||||||||||||||||
The Tower of Hanoi with Forbidden Moves
Department of Computer Science, Ben-Gurion University, Beer-Sheva 84105, Israel
We consider a variant of the classical three-peg Tower of Hanoi problem, where limitations on the possible moves among the pegs are imposed. Each variant corresponds to a di-graph whose vertices are the pegs, and an edge from one vertex to another designates the ability of moving a disk from the first peg to the other, provided that the rules concerning the disk sizes are obeyed. There are five non-isomorphic graphs on three vertices, which are strongly connecteda sufficient condition for the existence of a solution to the problem. We provide optimal algorithms for the problem for all these graphs, and find the number of moves each requires.
Received 9 August 2002. Revised 2 April 2003.