期刊文献+

基于栈结构的孔明棋算法研究 被引量:2

Research of Kongming Chess Algorithm Based on Stack-Structure
下载PDF
导出
摘要 孔明棋是一种玩法简单,但其中变化无数的益智游戏。对孔明棋求解问题进行分析,提出了基于回溯思想的递归和非递归算法,运行结果表明了算法的有效性。文章还围绕栈在存储数据、消解递归等方面的应用对两个算法的优缺点进行了比较分析,递归算法结构清晰,但递归调用次数多;而非递归算法借助程序栈,将程序向循环转化,降低了时间复杂度,但算法难以分析和理解。因此在求解实际问题时可以采用递归思想来分析,然后借助栈用非递归来实现算法。 Kongming chess is an intellective game with simple rules but changeable playing measures. Backtracking is an important and efficient solution for many issues. On the analysis of Kongming chess, proposes recursion and non- recursion algorithms based on backtrack for the issue, which works effectively. At the same time, advantages and disadvantages of the two algorithms are compared in the stack - based applications for data storage, backtracking problem, and recursion. Recursion has a vivid algorithm structure,hut it has to make use of recurring for many times; While non - recursion circulates the program with the help of a program stack. Thus it lowers the complexity of time but it has a complicated algorithm which is hard to analyse and understand. It comes to a conclusion that recursion is suitable for analysis, while non - recursion is for algorithm in solving practical problems.
出处 《计算机技术与发展》 2009年第12期51-54,共4页 Computer Technology and Development
基金 广西自然科学基金资助项目(0832084)
关键词 孔明棋 栈结构 递归 非递归 回溯 Kongming chess stack - structure recursion non - recursion backtracking
  • 相关文献

参考文献8

  • 1Ford W,Topp W. Data Structures with C + + [M]. [s. l. ] : Prentice Hall, 1996.
  • 2严蔚敏,吴伟民.数据结构(C语言版)[M].北京:清华大学出版社,2006.
  • 3辛玲,王相海.国际象棋中马的周游路线问题的递归算法[J].计算机工程与设计,2006,27(1):47-48. 被引量:2
  • 4李立中,林顺喜.孔明棋的电脑解法研究[EB/OL].2002-08-23.http://alg.ice.ntnu.edu.rw/Acewise/does/KonMing.doc.
  • 5Kruse R, Tondo C L, Leurlg B. Data Structures & Program Design in C[ M]. [s. l. ]:Prentice- Hall, 1997.
  • 6Sahni S. Data Structures Algorithms and Applications in C + + [M]. Columbus: Mc Graw - hill, 1999.
  • 7杨庆红,罗坚.递归问题的非递归实现方法研究与应用[J].计算机时代,2005(8):44-45. 被引量:6
  • 8马军红.递归与非递归算法比较及效率分析.科技信息,2008,(31):554-556.

二级参考文献9

  • 1罗敏雪,朱仁芝.基于二维正投影图三维重建的递归算法[J].中国科学技术大学学报,2004,34(4):464-472. 被引量:6
  • 2杨元法,庄明.网络中最短距离的递归算法[J].计算机工程,2005,31(13):93-95. 被引量:4
  • 3傅清祥 王晓东.算法与数据结构[M].北京:电子工业出版社,1999..
  • 4Goldman K J. Recursive algorithms [EB/OL]. http://www.cs.wustl.edu/-kjg/cs 101/Notes/Recursion/recursion.html.
  • 5Recursive algorithms [EB/OL]. http://www.cs.odu.edu/-toida/nerzic/content/recursive_alg/rec_alg.html.
  • 6Cargal J M.Recursive algorithms[EB/OL], http://www. carga-lmathbooks.com/SRecursiveAlgorithms.pdf.
  • 7李春葆.数据结构习题与解析清华大学出版社,2001.
  • 8Sara Baase,ect. Computer Algorithms, Introduction to Design and Analysis.高等教育出版社,2001.
  • 9Jinyun Xue. A Unified Approach for Developing Efficient Algorithmic Programs.Joumal of Computer Science and Technology, 1997.12(4): 103~118

共引文献42

同被引文献3

引证文献2

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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