Блог пользователя Petr

Автор Petr, 12 лет назад, По-английски
  • Проголосовать: нравится
  • +65
  • Проголосовать: не нравится

»
12 лет назад, скрыть # |
 
Проголосовать: нравится +33 Проголосовать: не нравится
In this particular problem sqrt-decomposition means splitting all queries into blocks of sqrt(n), and shrinking the tree to only contain interesting vertices for each block of queries.

I finally understand why sqrt-decomposition works in this problem.

»
12 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +54 Проголосовать: не нравится

I think TopCoder will be ruined with those data structure problems :(