摘要
循环不变式体现了循环程序的本质特征,在算法程序的开发、证明和推导中具有十分重要的作用。而传统的循环不变式开发策略并没有很好地解决循环不变式开发难的问题。文章在阐述现有策略局限性的基础上,详细阐述了刻画循环不变式本质特征的新定义及基于此定义的开发循环不变式的新策略,并通过三个典型的实例,对开发新策略的具体应用作了比较深入的探索。
The loop invariant embodies essential characteristics of loop program and has an important role to play in design,proof and derivation of algorithmic program.However,traditional strategies for developing loop invariants don't solve the problem of developing loop invariants well.Under the new definition of loop invariant and new strategies for developing loop invariant,this paper explains the internal character and the deep meaning of loop invariant;Moreover,it gives three typical examples to discuss the application of new developing strategies.
出处
《计算机工程与应用》
CSCD
北大核心
2006年第4期105-107,161,共4页
Computer Engineering and Applications
基金
国家自然科学基金资助项目(编号:60273092)