【24h】

Memory Saving for Solving the Towers of Hanoi Problem

机译:节省内存以解决河内难题

获取原文

摘要

The towers of Hanoi problem is a classical problem in puzzles, games, mathematics, data structures, and algorithms. With comparing the sizes of disk, labeling the disks, and combining the source array and target array, a least memory used algorithm for solving the towers of Hanoi problem is proposed in this paper. If there are n disks, the proposed algorithm reduces the space needed from 2n+2 to n+5.
机译:河内问题之塔是难题,游戏,数学,数据结构和算法中的经典问题。通过比较磁盘大小,标记磁盘并结合源阵列和目标阵列,提出了一种用于解决河内塔问题的最少内存使用算法。如果有n个磁盘,则所提出的算法将所需的空间从2n + 2减少到n + 5。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号