A Unified Strategy for Formal Derivation and Proof of Binary Tree Nonrecursive Algorithms

نویسندگان

چکیده

In the formal derivation and proof of binary tree algorithms, Dijkstra's weakest predicate method is commonly used. However, has some drawbacks, including a time-consuming process, complicated loop invariants, inability to generate executable programs from specification. This paper proposes unified strategy for non-recursive algorithms address these issues. First, problem solving sequences are decomposed into two types recursive relations based on queue stack, corresponding invariant templates constructed. Second, high-reliability Apla (abstract programming language) derived using invariants. Finally, converted automatically C++ programs. Two problems with stack used as examples, their performed validate proposed strategy's effectiveness. improves efficiency correctness algorithm derivation.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Unified Approach for Design of Lp Polynomial Algorithms

By summarizing Khachiyan's algorithm and Karmarkar's algorithm forlinear program (LP) a unified methodology for the design of polynomial-time algorithms for LP is presented in this paper. A key concept is the so-called extended binary search (EBS) algorithm introduced by the author. It is used as a unified model to analyze the complexities of the existing modem LP algorithms and possibly, help ...

متن کامل

A Derivation A = > Derivation Tree Derivation A = > Derivation Tree

The basic Schema Theorem for genetic algorithms is modiied for a grammatically-based learning system. A context-free grammar is used to deene a language in which each sentence is mapped to a tness value. The derivation trees associated with these sentences are used to deene the structure of schemata. The eeect of crossover and mutation on schemata is described. A schema theorem is developed whi...

متن کامل

Formal Derivation of Spanning Trees Algorithms

Graphs algorithms and graph-theoretical problems provide a challenging battle field for the incremental development of proved models. The B event-based approach implements the incremental and proved development of abstract models which are translated into algorithms; we focus our methodology on the minimum spanning tree problem and on Prim’s algorithm. The correctness of the resulting solution ...

متن کامل

Formal Derivation of Two Parallel Rendering Algorithms

This paper presents the formal deriva tions of two parallel rendering algorithms from a high level speci cation The initial speci cation of the problem is formulated as a functional program A calculational approach is used to derive from the original speci cation two parallel algorithms expressed as networks of communicating processes in Hoare s CSP Both algorithms exploit pipelined parallelism...

متن کامل

development and implementation of an optimized control strategy for induction machine in an electric vehicle

in the area of automotive engineering there is a tendency to more electrification of power train. in this work control of an induction machine for the application of electric vehicle is investigated. through the changing operating point of the machine, adapting the rotor magnetization current seems to be useful to increase the machines efficiency. in the literature there are many approaches wh...

15 صفحه اول

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Wuhan University Journal of Natural Sciences

سال: 2022

ISSN: ['1007-1202', '1993-4998']

DOI: https://doi.org/10.1051/wujns/2022275415