首页> 外文期刊>IEICE transactions on information and systems >An Optimal Algorithm for Solving the Towers of Hanoi Problem with the Least Storage Used
【24h】

An Optimal Algorithm for Solving the Towers of Hanoi Problem with the Least Storage Used

机译:An Optimal Algorithm for Solving the Towers of Hanoi Problem with the Least Storage Used

获取原文
获取原文并翻译 | 示例
           

摘要

The Towers of Hanoi problem is a classical problem in puzzles, games, mathematics, data structures, and algorithms. In this letter, a least memory used algorithm is proposed by combining the source array and target array for comparing the sizes of disk and labeling the disks in the towers of Hanoi problem. As a result, the proposed algorithm reduces the space needed from 2n + 2 to n + 5, where n represents the disks number.

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号