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

Автор IhateProgramming, история, 6 лет назад, По-английски

Can someone provide me with a good implementation of the offline solution of the fully dynamic connectivity problem ? I think I got the idea but I'm having trouble implementing it. UPD: Guys I found the stupid bug in my implementation. I am sharing my code right now (my implementation is with segment tree instead of divide and conquer, which is pretty much the same) and I hope you will find it helpful. Code

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

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

Here is my solution to problem A of this contest: Dynamic connectivity contest. You can also try other problems of the contest to clear your understanding.