全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Termination, variant?

又称: termination · variant (termination)

Definition 11.13 University Computer Science — Year 1 · 第 11 章 — Induction, Recursion and Termination

A loop or a recursive function terminates if every execution reaches its end after finitely many steps. A variant is a function from the states of the loop (or the arguments of the function) to a set with a well-founded order that strictly decreases at each iteration (or at each recursive call). A loop with a variant terminates: otherwise the values of the variant would form an infinite descending chain.

在原文中阅读 →