网站首页  情感咨询  情感美文  情感百科  情感生活  学习充电  旧版美文

请输入您要查询的词汇:

 

词汇 Loop invariant
分类 英语词汇 英语翻译词典
释义

Loop invariant

中文百科

循环不变量

在计算机科学中,循环不变性(loop invariant,或“循环不变量”),是一组在循环体内、每次迭代均保持为真的性质,通常被用来证明程序或伪码的正确性(有时但较少情况下用以证明算法的正确性)。简单说来,“循环不变性”是指在循环开始和循环中,每一次迭代时为真的性质。这意味着,一个正确的循环体,在循环结束时“循环不变性”和“循环终止条件”必须同时成立。

由于循环和递归的相通,证明带有不变性的循环的部分正确性和证明通过归纳的递归进程的正确性极其相似。

英语百科

Loop invariant 循环不变量

In computer science, a loop invariant is a property of a program loop that holds before (and after) each iteration. It is a logical assertion, sometimes checked within in the code by an assertion call. Knowing its invariant(s) is essential in understanding the effect of a loop.

随便看

 

依恋情感网英汉例句词典收录3870147条英语例句词条,基本涵盖了全部常用英语单词的释义及例句,是英语学习的有利工具。

 

Copyright © 2004-2024 Yiyi18.com All Rights Reserved
京ICP备2021023879号 更新时间:2025/8/7 13:41:12