Tarjan's Least Common Ancestors Algorithm

From dankwiki