期刊文献+

Hanoi塔问题递归算法的一种改进

An Improvement of the Recursion to Hanoi Tower Problem
下载PDF
导出
摘要 Hanoi塔问题是一个古典的数学问题,在C程序设计中常用递归算法去分析处理。但由于其递归算法中有两次递归调用,其程序执行的具体过程很复杂,很难直接看出其调用过程。本文通过运用堆栈概念深入分析Hanoi塔问题递归过程并修改其通用的C程序递归算法,使其递归算法程序执行过程具有直观易于理解性,对深入理解和灵活运用递归算法有积极意义。 The problem of Hanoi Tower is a classical mathematic one, which is solved with recursion in C-program. This paper is to analyze the process of recursion with the concept of storehouse, and revise the general recursion in C-program so as to make it directive and easy to understand.
作者 潘晓明
出处 《柳州师专学报》 2007年第2期115-117,共3页 Journal of Liuzhou Teachers College
关键词 HANOI塔问题 递归算法 堆栈 Hanoi Tower problem recursion storehouse
  • 相关文献

参考文献1

  • 1谭浩强.C程序设计[M].第二版.清华大学出版社,2001.162-163.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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