期刊文献+

汉诺塔问题的层次迭代算法 被引量:4

Level iterative algorithm for towers of Hanoi puzzle
在线阅读 下载PDF
导出
摘要 汉诺(Hanoi)塔是程序算法设计的一个比较经典问题,目前已有大量的相关文献对其进行了研究。为进一步加快汉诺塔问题的求解速度,通过对汉诺塔问题抽象解树的分析,发现其可以划分为不同层次相同结构的子树,通过对子树层次化控制即可迭代出整个问题的解。基于此,提出了一种用已知子树分层次迭代汉诺塔问题的非递归算法。运行时间测试表明,该算法进一步提高了求解的速度。 The tower of Hanoi puzzle is a classic example about programming design and algorithm research.There have been a lot of researches on this algorithm.In order to speed up the tower of Hanoi problem solving this paper analyzes the abstract solving-tree of the tower of Hanoi problem and find it can be divided into different levels and the same structure, and then iterated the solution of the whole problem by controlling the levels of subtree.Based on this,a rapid non-reeursive algorithm of the tower of Hanoi problem through different levels iteration of known subtree is proposed.The result of running time show that this algorithm speed up the velocity of the solving problem.
出处 《计算机工程与应用》 CSCD 北大核心 2008年第35期73-75,79,共4页 Computer Engineering and Applications
关键词 汉诺塔 非递归算法 抽象解树 层次迭代 tower of Hanoi non-recursive algorithm abstract solution-tree level iteration
  • 相关文献

参考文献11

二级参考文献27

共引文献20

同被引文献30

引证文献4

二级引证文献10

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部