The linear twin Towers of Hanoi problem
暂无分享,去创建一个
We propose a simple new variation of the Towers of Hanoi problem, in which there are three pegs arranged in a row and there are two stacks (black, white) of n rings each, initially located on the end pegs. The object is to exchange the stacks in accordance with the usual Hanoi rules, and with the additional restriction that rings cannot move directly from end to end. An optimal algorithm is presented, and its performance is analyzed. The problem and its solution are not difficult; the purpose of this paper is to present a simple yet interesting exercise in discrete mathematics and recursive algorithms.
[1] Amir Sapir,et al. The Tower of Hanoi with Forbidden Moves , 2004, Comput. J..
[2] Steven Minsker,et al. The Little Towers of Antwerpen problem , 2005, Inf. Process. Lett..
[3] P. Stockmeyer. The Tower of Hanoi: A Bibliography , 2005 .