期刊文献+
共找到1篇文章
< 1 >
每页显示 20 50 100
A Unified Strategy for Formal Derivation and Proof of Binary Tree Nonrecursive Algorithms 被引量:2
1
作者 ZUO Zhengkang HUANG Zhipeng +3 位作者 FANG Yue HUANG Qing WANG Yuan WANG Changjing 《Wuhan University Journal of Natural Sciences》 CAS CSCD 2022年第5期415-423,共9页
In the formal derivation and proof of binary tree algorithms,Dijkstra’s weakest predicate method is commonly used.However,the method has some drawbacks,including a time-consuming derivation process,complicated loop i... In the formal derivation and proof of binary tree algorithms,Dijkstra’s weakest predicate method is commonly used.However,the method has some drawbacks,including a time-consuming derivation process,complicated loop invariants,and the inability to generate executable programs from the specification.This paper proposes a unified strategy for the formal derivation and proof of binary tree non-recursive algorithms to address these issues.First,binary tree problem solving sequences are decomposed into two types of recursive relations based on queue and stack,and two corresponding loop invariant templates are constructed.Second,high-reliability Apla(abstract programming language)programs are derived using recursive relations and loop invariants.Finally,Apla programs are converted automatically into C++executable programs.Two types of problems with binary tree queue and stack recursive relations are used as examples,and their formal derivation and proof are performed to validate the proposed strategy’s effectiveness.This strategy improves the efficiency and correctness of binary tree algorithm derivation. 展开更多
关键词 queue and stack recursive relations loop invariants Dijkstra-Gries standard proving technique nonlinear data structure
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部