Exercise 1696Combinatorics › Graph theoryM1Added 3 Nov 2026
Prüfer sequences
#Prüfer#bijection#labeled trees
Statement
Describe the Prüfer encoding of a labeled tree.
Hint
Repeatedly remove the smallest leaf and record its neighbor.
Show solutionHide solution
Solution
Encoding. Given a tree on :
1. Find the smallest leaf (degree ).
2. Record its unique neighbor.
3. Remove the leaf.
4. Repeat times; the sequence of recorded neighbors is the Prüfer sequence.
Decoding. Given a sequence of length , reconstruct the tree.
Bijection. Prüfer sequences of length over biject with labeled trees on vertices, giving trees.
Conclusion. Prüfer sequences give a bijective proof of Cayley's formula.