Exercise · ZW-TREE-007 · ★★☆ Intermediate
How many different trees are there on labeled vertices \(1,2,3,4\)?
Choose one option.
Show answer
- C. 16
Exercise · ZW-TREE-007 · ★★☆ Intermediate
Choose one option.
By Cayley's formula there are \(n^{n-2}=4^2=16\). It can be checked by inspecting the \(\binom{6}{3}=20\) sets of 3 edges: 16 are connected and acyclic.
A tree \(T=(V,E)\) is a connected graph that contains no cycles.