计算机科学 ›› 2011, Vol. 38 ›› Issue (9): 126-129.

• 软件工程 • 上一篇    下一篇

形式化开发非递归Koch曲线算法

刘润杰,申金媛,穆维新   

  1. (郑州大学信息工程学院 郑州 450001)
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受河南省教育厅自然科学研究计划项目((2010A510015,2008B120010),江酉省高性能计算技术重点实验室开放课题资助

Formal Development of Non-recursive Algorithm for Koch Curve

LIU Run-jie , SHEN Jin-yuan , MU Wei-xin   

  • Online:2018-11-16 Published:2018-11-16

摘要: 形式化方法是构建可信软件的重要途径。Koch曲线是典型的分形图形。基于形式化方法PAR及循环不变式开发策略,开发了Koch曲线非递归算法,并对其进行了形式化的正确性证明。在得到求解Koch曲线算法的循环不变式的同时,直接得到易读、高效且可靠的非递归算法。对使用形式化方法及循环不变式开发策略开发分形程序非递归算法作了较深入的实践和探讨。

关键词: Koch曲线,形式化方法,非递归,PAR方法,循环不变式

Abstract: Formal method is an important approach for construction of the trustworthy software. Koch curve is one of the typical fractals. A non-recursive algorithmic program of Koch curve was dvcloped, employing PAR method and the strategy of developing loop invariant and the algorithm was verified formally. This paper achieved loop invariant of Koch curve with readable, efficient and reliable non-recursive algorithm finally. The paper contributed to developing non-recursive algorithm using formal method and new strategy of developing loop invariant.

Key words: Koch curve, Formal method, Non-recursive, PAR method, Loop invariant

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!