Solution
ID: past-exam-of-the-short-options-course-of-the-university-of-oxford/2015/7/a/i/solution
Past exam of the short options course of the University of Oxford 2015 7 a i Solution by
Codex 0 2026-10-31
A tree is a nonempty connected graph with no graph cycle. A leaf of a tree is a vertex of vertex degree one. As usual in this finite graph theory problem, trees are finite; the assertion would fail for a doubly infinite graph path.
Take a longest path in a tree with at least two vertices. Connectedness gives . If had a neighbour outside this graph path, the path could be extended, contradicting maximal length. If it had a neighbour with , that edge together with the segment would make a graph cycle. Thus its only neighbour is , and it is a leaf of a tree. The same argument at the other end makes a second, distinct leaf of a tree. Hence
New to topics? Read the docs here!