Abstract
We discuss a version of the Tower of Hanoi puzzle in which there are four pegs rather than three. The fourpeg puzzle provides a rich source of exercises (samples of which are included) for students after the familiar three-peg version has been presented. We give an algorithm that solves the four-peg puzzle in the claimed minimum number of moves (see [2, 4]). Our algorithm solves the four-peg puzzle in O-(4√n) moves whereas the best algorithm for the three-peg puzzle requires 2n - 1 moves. As far as we know, the minimum number of moves required to solve the four-peg puzzle is an open question.
- 1. N. Dale and C. Weems, Introduction to Pascal and Structured Design, 2nd ed., Heath, Lexington, Mass., 1987. Google ScholarDigital Library
- 2. A. M. Hinz, "The Tower of Hanoi," L'Enseignement Mathématique, t. 35, 1989, pp. 289-321.Google Scholar
- 3. R. Johnsonbaugh, Discrete Mathematics, 2nd ed., Macmillan, New York, 1990. Google ScholarDigital Library
- 4. Problem 3918, Amer. Math. Mo., March 1941, pp. 216-219.Google Scholar
Index Terms
- The four-peg Tower of Hanoi puzzle
Recommendations
The cyclic multi-peg Tower of Hanoi
Variants of the classical Tower of Hanoi problem evolved in various directions. Allowing more than 3 pegs, and imposing limitations on the possible moves among the pegs, are two of these. Here, we deal with the case of h≥3 pegs arranged on a circle, ...
An iterative solution to the four-peg Tower of Hanoi problem
CSC '90: Proceedings of the 1990 ACM annual conference on CooperationOne of the variations of the Towers of Hanoi puzzle allows for p pegs, and for four pegs the solution to this variation is shown to have a simple structure which can be used to derive an iterative solution to the problem.
On the Frame-Stewart algorithm for the multi-peg Tower of Hanoi problem
Sixth Twente Workshop on Graphs and Combinatorial OptimizationIt is proved that seven different approaches to the multi-peg Tower of Hanoi problem are all equivalent. Among them the classical approaches of Stewart and Frame from 1941 can be found.
Comments