Please read the new rule regarding the restriction on the use of AI tools. ×

Mo's Algorithm on trees

Revision en1, by virus_1010, 2017-02-10 22:06:47

I was trying to do the problem COT2(http://www.spoj.com/problems/COT2/) which is solvable using Mo's Algorithm on trees in less than n*sqrt(n) but couldn't.... Wondering if a solution faster than exists?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English virus_1010 2017-02-10 22:41:22 80
en1 English virus_1010 2017-02-10 22:06:47 227 Initial revision (published)