[Math] Use Weak Mathematical Induction to show that in a full binary tree the number of leaves is one more than the number of internal nodes

computer sciencecomputer-arithmeticdiscrete mathematics

Use Weak Mathematical Induction to show that in a full binary tree the number of
leaves is one more than the number of internal nodes (i.e., $L = I + 1$). Induct on the number
of leaves.

What is the base case and inductive hypothesis here? I don't get it .Is the base $I=1$? $ \Rightarrow L=1+1$ but that doesn't make any sense

Thanks

Best Answer

Outline of proof

Prove it for $1$ leaf node (which is just the graph with one node.)

Then assume it is true for complete binary trees with $n\geq 1$ leaf nodes.

Given a complete binary tree with $n+1$ leaf nodes, show that at least two of the leaves must have a common parent.

Remove those two leaf nodes, and their parent becomes a leaf node, so you are left with a complete binary tree with $n$ leaf nodes. (Proof of that is required.)

Apply the induction hypothesis. To the graph with $n$ leaf nodes. Now note that the original graph had one additional internal node, and one additional leaf node.