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

基于算法框架的可重用部件设计与实现
引用本文:李云清. 基于算法框架的可重用部件设计与实现[J]. 计算机工程与应用, 2001, 37(23): 136-138,156
作者姓名:李云清
作者单位:江西师范大学计算机科学技术学院,
基金项目:国家自然科学基金资助项目(编号:69783006、69983003),江西省跨世纪人才资助项目
摘    要:对算法程序的功能规约进行等价变换,可以自然而且方便地得到求解问题设计思想的精确表达,即循环不变式。抽象算法又可以通过循环不变式获得。对算法程序中的算子进行提取、抽象就可以得到算法框架,而算法框架可以设计出可重用部件。文章通过对数组段极值问题的求解,展示了形式化推导不仅可以得到正确、高效的算法程序,而且具有软件重用的功能,并进一步给出了利用可重用部件求解数组段极值问题的C++实现。

关 键 词:形式推导  变换  循环不变式  算法结构  可重用部件
文章编号:1002-8331-(2001)23-0136-03

Design and Implementation of Reusable Components Based on Algorithmic Frame
Li Yunqing. Design and Implementation of Reusable Components Based on Algorithmic Frame[J]. Computer Engineering and Applications, 2001, 37(23): 136-138,156
Authors:Li Yunqing
Abstract:By transforming function specification,the loop invariant,the main ideas of solving problem,can be easily and naturally obtained.Algorithmic program also can be easily produced based on the loop invariant.Algorithmic frame can be gained by abstracting the arithmetic operators of algorithmic program.This paper discusses the effect of formal derivation in developing program and shows that the reusable components are designed with algorithmic frame The results that solve extreme value of array segment show the effect of obtaining efficient and correct algorithmic program and reusable components.Lastly,the program of solution to the extreme value of array segment is implemented with the reusable components using C++.
Keywords:Formal derivation  Transformation  Loop invariant  Algorithmic frame  Reusable components
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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