Computer Engineering and Applications ›› 2007, Vol. 43 ›› Issue (11): 96-99.

• 产品、研发、测试 • Previous Articles     Next Articles

Formal Development of Non-Recursive Algorithm for Hanoi Tower

  

  • Received:2006-04-12 Revised:1900-01-01 Online:2007-04-11 Published:2007-04-11

形式化开发Hanoi塔问题非递归算法

石海鹤 石海鹏 薛锦云   

  1. 江西师范大学计算机信息工程学院 南昌大学计算中心
  • 通讯作者: 石海鹤

Abstract: This paper develops non-recursive algorithmic program of Hanoi tower problem employing PAR method and the new strategy of developing loop invariant and verifies the program formally. This paper aims at non-recursive algorithms directly, and achieves loop invariant of Hanoi tower problem with readable, efficient and reliable non-recursive algorithm finally. The paper contributes to developing non-recursive algorithm using formal method and new strategy of developing loop invariant.

Key words: Hanoi tower problem, Formal method, Non-recursive, PAR method, Loop invariant

摘要: 使用形式化方法PAR及循环不变式开发新策略,开发了Hanoi塔问题非递归算法,并对其进行了形式化地正确性证明。本文直接面向非递归算法,在得到求解Hanoi塔问题的循环不变式的同时,直接得到易读、高效且可靠的非递归算法。对使用形式化方法及循环不变式开发新策略开发非递归算法作了较深入的实践和探讨。

关键词: Hanoi塔问题, 形式化方法, 非递归, PAR方法, 循环不变式