Two New Strategies for Developing Loop Invariants and Their Applications

来源 :Journal of Computer Science and Technology | 被引量 : 0次 | 上传用户:zhrwudi
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
The loop invariants take a very important role in the design,proof and derivation of the algorithmicprogram.We point out the limitations of the traditional standard strategy for developing loop invariants,and propose two new strategies for proving the existing algorithmic program and developing new ones.The strategies use recurrence as vehicle and integrate some effective methods of designing algorithms,e.g.Dynamic Programming,Greedy and Divide Conquer,into the recurrence relation of problemsolving sequence.This lets us get straightforward an approach for solving a variety of complicated prob-lems,and makes the standard proof and formal derivation of their algorithmic programs possible.Weshow the method and advantages of applying the strategies with several typical nontrivial examples. The loop invariants take a very important role in the design, proof and derivation of the algorithmic program. We point out the limitations of the traditional standard strategy for developing loop invariants, and propose two new strategies for proving the existing algorithmic program and developing new ones. The strategies use recurrence as vehicle and integrate some effective methods of designing algorithms, eg Dynamic Programming, Greedy and Divide Conquer, into the recurrence relation of problemsolving sequence. This lets us get straightforward an approach for solving a variety of complicated prob-lems, and makes the standard proof and formal derivation of their algorithmic programs possible. Weshow the method and advantages of applying the strategies with several typical nontrivial examples.
其他文献
D-Tuili,having been implemented on microcomputer network,is a distributed logical rea-soning programming language.D-Tuili supports parallel programming on the
Objective.- To determine whether behavioral and psychiatric disorders occur more frequently in school- age children with migraine headache. To also elucida te t
《中国质量报》报道,今年5月24日凌晨,湖南省质量技监局在宜章县107国道黄沙堡地段一举查获3个利用高科技手段在加油机上做手脚,短秤少量的加油站。他们采用高科技手段,对加
本文对制备光盘的各种材料的性能做了比较,叙述了采用白冕平板玻璃研制直径为133.35mm可擦除光盘基片的工艺过程,以及产品达到的性能指标。 In this paper, the performance
一位法官在自己的座右铭中这样写道:“做人要正直无欺,真实无伪;有了同情心,才能利人;有了谅解心,才能容人;有了忍耐心,才能做人。”他就是牛晓林。牛晓林是青海省西宁市城西
2004年12月15日,位于漕河泾高新技术开发区内的科莱恩(Clariant)上海技术服务中心举行开幕典礼.科莱恩大中华区总裁韦德林(Werner Wittlin)讲话,并参加开幕典礼剪彩,并在记
30年前,我在德国留学。系里有个习惯,每天上午和下午各有一次集体喝咖啡的时间,全系的教授和博士生都到一个大房间去,围坐着,一边喝咖啡,一边闲聊。聊的话题,以时政和农业问题为主。只要一聊到农业话题,总离不开一个词:过剩。那时,我国还在实行粮票制度,我还不太习惯讨论过剩问题。我问导师,农产品过剩问题有多突出?导师略一思索,回答说,欧共体预算支出的70%,用于解决农产品过剩问题。欧共体是欧盟的前身。用于
Automatic medical image analysis shows that image segmentation is a crucial task for any practicalAI system in this field. On the basis of evaluation of the ex
乙炔清净系统次氯酸钠储槽爆炸事故分析浙江省巨化集团公司戴真1996年7月16日14时50分,浙江省巨化集团公司电化厂聚氯乙烯新乙炔站清净系统次氯酸钠储槽发生化学爆炸事故,造成轻伤4人,乙炔、
10月26日,江淮瑞风启动“瑞风发动2005”行动,宣布对目前瑞风系列产品价格进行战略性调整,同时强力推出瑞风Ⅱ系列和彩色之旅系列,降价幅度最高达到20%,平均降幅接近15%,瑞