Example of proof by induction

THEOREM: All binary trees of height n, in which all non-leaves have 2 sons, have at least n+1 leaves.

Proof by strong induction on the height of the tree.

BASIS: n=0. There is only one tree of height 0. It has 1 node that is the root and also is a leaf.

L = number of leaves = 1, H = height = n = 0, L ≥ H+1 is true.

INDUCTION: Assume that the theorem is true for all binary trees of height ≤ n. We will prove that the theorem is true for all binary trees of height n+1.

Consider an arbitrary binary tree of height n+1 ≥ 1. This tree, T, has a root that is a non-leaf and hence has 2 sons (that are roots of binary trees).
Let the taller of these two subtrees be T1 (it must have height n). The other subtree is T2 and has height ≥ 0.

L1 ≥ H1+1 = n+1, by the inductive hypothesis.
L2 ≥ H2+1 ≥ 1, since H2 ≥ 0.
L = L1 + L2 ≥ (n+1)+1 = n+2 ≥ (n+1) + 1.


Dan Hirschberg
Last modified: Oct 28, 2003