Centroid Decomposition

Правка en1, от siva2697, 2018-02-26 17:03:24

Question: QTREE5

I have read a solution that uses Centroid Decomposition but was unable understand how the querying in Centroid Tree reflects the same in the original Tree?? Edges are changed.Path from u to v might not contain centroids why does that appraoch work?

Can someone help?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский siva2697 2018-02-26 17:03:24 354 Initial revision (published)