四柱汉诺塔问题的动态规划解法
Toward a Dynamic Programming Solution for the 4-peg Tower of Hanoi Problem with Configurations
摘要:
1941年引入的用于河内塔的4-peg变体的Frame-Stewart算法将磁盘划分为中间塔,然后将剩余的磁盘移动到目的地。分区磁盘的算法尚未被证明是最佳的,尽管它们已被验证多达30个磁盘。本文提出了一种利用B-Prolog中的制表技术实现该算法的动态规划方法。本研究使用的问题的变化,涉及磁盘的配置,以对比的制表方法与其他解决方案所利用的方法。比较不同的分区位置的帧-斯图尔特算法表明,虽然某些分区是最佳的经典问题,他们需要修改某些配置,随机配置可能需要一个全新的算法。
英文摘要:
The Frame-Stewart algorithm for the 4-peg variant of the Tower of Hanoi, introduced in 1941, partitions disks into intermediate towers before moving the remaining disks to their destination. Algorithms that partition the disks have not been proven to be optimal, although they have been verified for up to 30 disks. This paper presents a dynamic programming approach to this algorithm, using tabling in B-Prolog. This study uses a variation of the problem, involving configurations of disks, in order to contrast the tabling approach with the approaches utilized by other solvers. A comparison of different partitioning locations for the Frame-Stewart algorithm indicates that, although certain partitions are optimal for the classic problem, they need to be modified for certain configurations, and that random configurations might require an entirely new algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。