Status: Tags: #archivedCards/macm101/induction Links: Mathematical Induction
Structural Induction
- Height of binary tree, h(T)
- Recursive definition:
- Basis step: Height of a single vertex
r
is 0, h(r) = 0 - Inductive step: Tree T is built from trees $T_1$, $T_2$ as shown in inductive step, h(T) = 1 + max of $T_1$, $T_2$
- Basis step: Height of a single vertex
Prove Rooted Tree using mathematical induction ?
Proving number of vertices in a binary tree, n(T), satisfied equality n(T) <= $2^{h(T)+1}$ - 1
?
Backlinks
|
|
References:
Created:: 2021-11-04 09:04