On Trees

A tree T is (V,E) such that |E|=|V|1 and T is connected.
A tree is a connected acyclic graph. Meaning that between any two vertices, there is a unique path.

The diameter of a tree is the length of the longest path between any two leaves of the tree. It is the longest path in the tree itself.
Theorem: a,bV where a,b are unique and are leaves such that ab is the diametric path.
proof: if ab is a diametric path, a is not a leaf, and bab is a longer leaf to leaf path. if ab is a diametric path then abab is a longer path, both cases are contradictions.

def: Centre of a tree. The centre of a tree is any vertex v such that the maximum of all path lengths from v to any other node is minimum. denote path length as L(uv).

Theorem, Any Centre of a tree lies on the diametric path.
Support/Figures/Pasted image 20241225205018.png
The picture above shows the centre C not on the diametric path, but is connected to some Pi on the diametric path. let Z denote the larger of the two distances PiP1 or PiPD+1.
and max(y)=Y the maximum of all path lengths from C to vertices not on the diametric path. since ZD2, it has to be that x+YZ. Therefore, the longest path from C is CPiPD+1 of length (x+Z) but given x+YZ, the longest path length from Pi to any vertex is Z.
Hence C is not a centre, giving the desired contradiction.
Moreover, the centre C lies in the middle of the diametric path.
That is if D is odd, there are two centres, both have a depth (max path length to any other node) of D2.
if D is even, then there is centre at D/2.