Abstract
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 connected - a 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.
Original language | English |
---|---|
Pages (from-to) | 20-24 |
Number of pages | 5 |
Journal | Computer Journal |
Volume | 47 |
Issue number | 1 |
DOIs | |
State | Published - 1 Jan 2004 |
ASJC Scopus subject areas
- General Computer Science