全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...

Two New Strategies for Developing Loop Invariants and Their Applications

Keywords: Loop invariant,standard proof and formal derivation of program,recurrence relation,algorithm design
程序设计语言
,算法设计,循环不变量

Full-Text   Cite this paper   Add to My Lib

Abstract:

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, e.g.Dynamic Programming,Greedy and Divide Conquer,into the recurrence relation of problem solving 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.We show the method and advantages of applying the strategies with several typical nontrivial examples.

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133