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

Автор FerjaniSassi, 4 недели назад, По-английски

Which name is better and WHY

DSU ON TREES

SACK

  • Проголосовать: нравится
  • -29
  • Проголосовать: не нравится

»
4 недели назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится

3rd one the worst contributor from the last. Sorry..

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

They are different things though?

AFAIK DSU on trees is just the small-to-large trick applied to trees (you have an instance of a data structure on each node), and sack is more like HLD applied to MO's algorithm (you have a single global data structure and you insert into/erase from it)

I prefer the name sack though