期刊文献+

二叉树队列关系问题非递归算法的推导及形式化证明 被引量:2

The Derivation and Formal Proof of Non-Recursive Algorithm for Binary Tree Queue Relation Problems
在线阅读 下载PDF
导出
摘要 该文对二叉树类问题进行分划,寻找其递推关系,并针对具有队列递推关系的一类问题,给出了其推导过程和形式化证明策略.再结合每个算法后置断言的不同,提出3种开发循环不变式的策略,并构造出该类问题的通用循环不变式模板.同时,发现该类问题是基于2个母算法的功能加以实现的,由此派生出3类问题.首先,对这3类派生问题进行推导,得到递推关系表达式和循环不变式,由此导出非递归Apla算法;然后,使用Dijkstra-Gries标准程序证明方法证明这些算法的正确性;最后,通过Apla到C++程序自动生成系统自动生成C++代码,实现了从抽象规约到具体的可执行程序的完整求精过程. The binary tree problems are partitioned to find recursion relations in this paper.A strategy of derivation and formal proof is presented for a class of problems with queue recurrence relation.Combined with the difference of postassertion of each algorithm,three strategies for developing cycle invariant are proposed,and a general cycle invariant template for this kind of problem is constructed.At the same time,it is found that this kind of problem is implemented based on the functions of the two parent algorithms,from which three kinds of problems are derived.Firstly,the representation of the three types of derived problems is deduced,and the recursive relation expressions and loop invariant are obtained,thus the non-recursive Apla algorithm is derived.Then,the correctness of the algorithm is proved by Dijkstra-Gries standard proving technique.In the end,Apla to C++program automatic generation system automatically generates C++code.The complete refinement process from abstract specification to concrete executable program is realized.
作者 左正康 方越 黄志鹏 黄箐 王昌晶 ZUO Zhengkang;FANG Yue;HUANG Zhipeng;HUANG Qing;WANG Changjing(College of Computer Information Engineering,Jiangxi Normal University,Nanchang Jiangxi 330022,China)
出处 《江西师范大学学报(自然科学版)》 CAS 北大核心 2022年第1期49-58,共10页 Journal of Jiangxi Normal University(Natural Science Edition)
基金 国家自然科学基金(61862033,61902162) 江西省教育厅科技重点课题(GJJ210307) 江西省自然科学基金(20202BAB202015)资助项目.
关键词 二叉树队列递推关系 循环不变式 Dijkstra-Gries标准程序证明法 Apla到C++程序自动生成系统 非线性数据结构 binary tree queue recursion relation loop invariant,Dijkstra-Gries standard proving technique Apla to C++program automatic generation system nonlinear data structure
  • 相关文献

参考文献8

二级参考文献67

  • 1孙斌.面向对象、泛型程序设计与类型约束检查[J].计算机学报,2004,27(11):1492-1504. 被引量:16
  • 2石海鹤,石海鹏,薛锦云.形式化开发Hanoi塔问题非递归算法[J].计算机工程与应用,2007,43(11):96-99. 被引量:3
  • 3Gries D. The Science of Programming[M].Springer Verlag,1981.
  • 4Xue Jinyun. PAR Method and Its Supporting Platform[C]// Proc of the 1st Int'l Workshop on Asian Working Conf on Verified Software, 2006:29 -31.
  • 5Dijkstra E W. A Discipline of Programming [M]. Englewood Cliffs: Prentice Hall, 1976.
  • 6Loginov A,Reps T, Sagiv M. Automated Verification of the Deutsch-Schorr-Waite Tree-Traversal Algorithm[C]//Proc of SAS'06, 2006:261 -279.
  • 7Xue Jinyun, Yang Q. Formal Development of Graph and Tree Algorithmic Programs Using PAR Method[C]//Proc of the Int'l Symp on Future Software Technology, 2000.
  • 8Xue Jinyun. A Practicable Approach for Formal Development of Algorithmic Programs[C]//Proc of the Int' l Symp on Future Software Technology, 1999 : 158-160.
  • 9Rodr′1guez-Carbonell E,Kapur D.Automatic Generation of Polynomial Invariants of Bounded Degree Using Abstract Interpretation[J].Science of Computer Programming,2007,64(1):54-75.
  • 10Colon M A,Sankaranarayanan S,Sipma H.Linear Invariant Generation Using Non-Linear Constraint Solving[C] ∥ Proc of CAV'03,2003:420-433.

共引文献87

同被引文献13

引证文献2

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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