Fast algorithms for finding nearest common ancestors (1984)

by D Harel, R E Tarjan
Venue:SIAM J. Comput