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

二叉树队列关系问题非递归算法的推导及形式化证明
引用本文:左正康,方越,黄志鹏,黄箐,王昌晶.二叉树队列关系问题非递归算法的推导及形式化证明[J].江西师范大学学报(自然科学版),2022,46(1):49-58.
作者姓名:左正康  方越  黄志鹏  黄箐  王昌晶
作者单位:江西师范大学计算机信息工程学院,江西 南昌 330022
基金项目:国家自然科学基金(61862033,61902162);;江西省教育厅科技重点课题(GJJ210307);;江西省自然科学基金(20202BAB202015)资助项目;
摘    要:该文对二叉树类问题进行分划,寻找其递推关系,并针对具有队列递推关系的一类问题,给出了其推导过程和形式化证明策略.再结合每个算法后置断言的不同,提出3种开发循环不变式的策略,并构造出该类问题的通用循环不变式模板.同时,发现该类问题是基于2个母算法的功能加以实现的,由此派生出3类问题.首先,对这3类派生问题进行推导,得到递...

关 键 词:二叉树队列递推关系  循环不变式  Dijkstra-Gries标准程序证明法  Apla到C++程序自动生成系统  非线性数据结构

The Derivation and Formal Proof of Non-Recursive Algorithm for Binary Tree Queue Relation Problems
ZUO Zhengkang,FANG Yue,HUANG Zhipeng,HUANG Qing,WANG Changjing.The Derivation and Formal Proof of Non-Recursive Algorithm for Binary Tree Queue Relation Problems[J].Journal of Jiangxi Normal University (Natural Sciences Edition),2022,46(1):49-58.
Authors:ZUO Zhengkang  FANG Yue  HUANG Zhipeng  HUANG Qing  WANG Changjing
Institution:College of Computer Information Engineering,Jiangxi Normal University,Nanchang Jiangxi 330022,China
Abstract: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.
Keywords:binary tree queue recursion relation  loop invariant  Dijkstra-Gries standard proving technique  Apla to C++ program automatic generation system  nonlinear data structure
本文献已被 万方数据 等数据库收录!
点击此处可从《江西师范大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《江西师范大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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