首页 | 本学科首页   官方微博 | 高级检索  
     

Hanoi塔问题非递归算法的比较与研究
引用本文:仇苏恺,卢芳芳. Hanoi塔问题非递归算法的比较与研究[J]. 中国计量学院学报, 2005, 16(3): 212-217
作者姓名:仇苏恺  卢芳芳
作者单位:中国计量学院,信息工程学院,浙江,杭州,310018
摘    要:作者对Hanoi塔问题现有的五种递归算法和非递归算法进行了时间测试,发现现有的非递归算法随着盘子数n的增大,在时间效率上不如递归算法,在空间效率上的优势也不明显.作者采用编码的方法提出了一种新的非递归算法.本算法在时间效率上较大地优于现有的非递归算法,也明显地优于递归算法.并且可以根据需要,增大编码的重数,从而使时间效率成倍提高.

关 键 词:Hanoi塔  非递归算法  递归算法  编码  时间效率
文章编号:1004-1540(2005)03-0212-06
收稿时间:2005-05-09
修稿时间:2005-05-09

Comparason and study on the non-recursive algorithms of Hanoi tower
QIU Su-kai,LU Fang-fang. Comparason and study on the non-recursive algorithms of Hanoi tower[J]. Journal of China Jiliang University, 2005, 16(3): 212-217
Authors:QIU Su-kai  LU Fang-fang
Affiliation:College of Information Engineering, China Jiliang University, Hangzhou 310018, China
Abstract:Present five solutions to Hanoi tower problem and calculates their running time have studied and compared in this paper. It is discovered that as n increases, the four non-recursire algorithms of papers cost much more time than the recursire algorithm. This paper proposes a new non-recursive algorithm which bases on coding. This new algorithm will cost less time than the present non-recursive algorithms and also the recursive algorithm. Furthermore, you can code many times and the time cost can be reduced consequently.
Keywords:Hanoi tower   non-recursion algorithm   recursion algorithm   coding   time efficiency
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号