The path that skips the root
transcript
Find the longest path in a tree. A quick rule comes to mind. Add the two deepest branches of the root. It looks right. Does it hold?
The rule adds two branches of the root. It needs two children at the root. This root has only one child.
Take these six parents. Node one hangs from the root. It is the only child of the root. The rule finds only three links.
The real path starts at node four. It goes up to node two, then node one. Then down through node three to node five. That is four links, not three.
Take the two deepest branches below a node. Do it at every node, not only the root. Keep the best of all of them. Four links beat three.
The root is only one candidate. The two branches can meet anywhere. Check every node. Then keep the longest of them. Full breakdown in the lecture.