Graph Theory37 sections · 1633 units
Open in Course

Trees as Recursive Structures

Each subtree is a tree

Think of a tree with root rr. It has children c1,c2,,ckc_1, c_2, \ldots, c_k. Each child cic_i is itself the root of a tree.

The subtree rooted at cic_i contains cic_i and all nodes you can reach by going down from cic_i. This recursive structure matters. To compute something about rr, first compute it for each child, then combine those results.

The tree breaks into smaller trees. You solve small cases, then build up to the full answer.