首页 | 官方网站   微博 | 高级检索  
     

序列折半划分问题的形式化推导
引用本文:左正康,梁赞杨,苏崴,黄箐,王渊,王昌晶.序列折半划分问题的形式化推导[J].计算机工程与科学,2022,44(6):1063-1071.
作者姓名:左正康  梁赞杨  苏崴  黄箐  王渊  王昌晶
作者单位:(1.江西师范大学计算机信息工程学院,江西 南昌330022;2.江西师范大学软件学院,江西 南昌330022)
基金项目:国家自然科学基金(61862033,61902162);江西省自然科学基金(20202BABL202026,20202BABL202025,20202BAB202015);江西省教育厅科学技术重点研究项目(GJJ210307)
摘    要:形式化推导是在程序正确性证明理论下所进行的程序开发,最终得到完全正确的算法程序。针对序列折半划分问题,现有的形式化推导方法将推导与证明交替进行,推导过程繁琐且大多无法直接获得可执行程序。为解决上述问题,提出了一种新的序列折半划分问题的形式化推导方法。该方法基于分划递推的核心思想,应用规约变换技术对问题规约进行变换并严格保证一致性,使得在推导过程中无需交替证明,进而导出递推关系式并得到高可靠性抽象算法程序Apla,最终通过转换工具自动生成可执行程序。实现了从程序规约到具体可执行程序的完整程序求精过程。以2个序列算法为例,验证了该方法的有效性和可行性,对相关问题的形式化推导具有指导意义。

关 键 词:折半划分  形式化推导  分划递推  程序求精  
收稿时间:2021-08-12
修稿时间:2021-10-15

Formal derivation of the sequence dimidiate partition problem
ZUO Zheng-kang,LIANG Zan-yang,SU Wei,HUANG Qing,WANG Yuan,WANG Chang-jing.Formal derivation of the sequence dimidiate partition problem[J].Computer Engineering & Science,2022,44(6):1063-1071.
Authors:ZUO Zheng-kang  LIANG Zan-yang  SU Wei  HUANG Qing  WANG Yuan  WANG Chang-jing
Affiliation:(1.School of Computer Information Engineering,Jiangxi Normal University,Nanchang 330022; 2.School of Software,Jiangxi Normal University,Nanchang 330022,China)
Abstract:Formal derivation is the program development under the theory of program correctness proof, and finally obtains the completely correct algorithm program. Regarding the problem of sequence dimidiate partition, the existing formal derivation method alternates the derivation and proof in the derivation process. The derivation process is cumbersome and most of them cannot directly obtain the executable program. To solve the above problems, this paper proposes a new formal derivation method for the sequence dimidiate partition problem. This method is based on the core idea of partition and recursion, applies the specification transformation technology to transform the problem specification and strictly guarantee its consistency, so that there is no need to proof in the derivation process. Then, the recurrence relations are derived and a highly reliable Apla program is obtained. Finally, the conversion tool is used to automatically generates executable programs. It realizes the complete process of program refinement from the program specification to the specific executable program. By taking two algorithms as examples, the effectiveness and feasibility of the method are verified. It has guided significance for the formal derivation of related problems.
Keywords:dimidiate partition  formal derivation  partition and recursion  program refinement  
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号