§ Diameter of a tree


§ Key property of the diameter








§ Algorithm to find the diameter:


First perform DFS to find a vertex "on the edge", say vv. Then perform DFS again starting from this vertex vv. The farthest vertex from vv, say ww gives us the diameter (the distance from vv to ww)

§ Proof by intuition/picture: