演算法(Tarjan's Algorithm) 運用 DFS遍歷順序,配合Disjoint-sets Forest,把已經拜訪過的點,依照層級聚合起來,方便找到LCA 。 ...
www.csie.ntnu.edu.tw