请输入您要查询的字词:

 

单词 Tower of Hanoi
释义
Tower of Hanoi

Mathematics
  • Imagine three poles with a number of discs of different sizes initially all on one of the poles in decreasing order from the bottom upwards. The problem is to transfer all the discs to one of the other poles, moving the discs individually from pole to pole, so that one disc is never placed above another of smaller diameter. A version with 8 discs, known as the Tower of Hanoi, was invented by Edouard Lucas and sold as a toy in 1883, but the idea may be much older. The toy referred to a legend about the Tower of Brahma which has 64 discs being moved from pole to pole in the same way by a group of priests, the prediction being that the world will end when they have finished their task.

    If tn is the number of moves it takes to transfer n discs from one pole to another, then tn = 2n − 1, so the original Tower of Hanoi puzzle takes 255 moves, and the Tower of Brahma takes 264 − 1.

    Tower of Hanoi

    Initial position in Tower of Hanoi


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/29 0:49:52