全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Structural induction?

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

To prove a property PP of every element of an inductively defined set by structural induction, prove that PP holds for the elements given by the base rules, and that each construction rule, applied to elements satisfying PP, builds an element satisfying PP.

The induction step for full trees: each subtree has one more leaf than internal nodes, and the root adds one internal node and no leaf, so the whole tree keeps the difference of one. Leaves are pale, internal nodes shaded.
The induction step for full trees: each subtree has one more leaf than internal nodes, and the root adds one internal node and no leaf, so the whole tree keeps the difference of one. Leaves are pale, internal nodes shaded.
在原文中阅读 →