检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:李云清[1]
机构地区:[1]江西师范大学计算机科学技术学院,南昌330027
出 处:《计算机工程与应用》2001年第23期136-138,156,共4页Computer Engineering and Applications
基 金:国家自然科学基金资助项目(编号:69783006;69983003);江西省跨世纪人才资助项目
摘 要:对算法程序的功能规约进行等价变换,可以自然而且方便地得到求解问题设计思想的精确表达,即循环不变式。抽象算法又可以通过循环不变式获得。对算法程序中的算子进行提取、抽象就可以得到算法框架,而算法框架可以设计出可重用部件。文章通过对数组段极值问题的求解,展示了形式化推导不仅可以得到正确、高效的算法程序,而且具有软件重用的功能,并进一步给出了利用可重用部件求解数组段极值问题的C++实现。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++.
关 键 词:循环不变式 算法结构 可重用部件 软件重用 软件工程 计算机
分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.171