期刊文献+

Hanoi塔问题非递归算法的形式推导 被引量:8

The Formal Derivation of a Nonrecursive Algorithm for the Tower-of-Hanoi Puzzle
下载PDF
导出
摘要 本文从Hanoi塔本身的简要说明出发,深刻剖析了该问题的递归解法,揭示了其本质特性,形式化地找出了圆盘的移动规律,从而推导出一种全新的、逻辑结构非常清晰的、与递归解在圆盘移动上完全等效的非递归算法,彻底解决了递归解中由于圆盘数增加使空间用量迅速膨胀而导致的死机问题。 From the simple description of the Tower of Hanoi, the paper first analyses the recursive algorithm for the puzzle profoundly and unveils its essence. Then the paper uses a formal method to find the law of disk moving. In addition, the paper gives a complete new nonrecursive algorithm which has a very clear logical structure and is equavalent to the law. The algorithm completely solves the problem of computer breakdown because of a sharp increase in memory space ocupation the caused by increase of the number of disks.
出处 《计算机工程与科学》 CSCD 2003年第3期66-68,共3页 Computer Engineering & Science
关键词 递归程序设计 HANOI塔问题 非递归算法 堆栈技术 recurrence relation recursive nonrecursive software reliability
  • 相关文献

参考文献2

  • 1[美]NilsJNilsson著 郑扣根译.人工智能[M].北京:机械工业出版社,2000.3-46.
  • 2[美]Nils J Nilsson.Aritficial Intelligence:A New Synthesis[M].北京:机械工业出版社,1999..

共引文献2

同被引文献35

引证文献8

二级引证文献21

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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