Hello! Can anyone suggest some Dynamic Connectivity offline problems, so i could test my solution?
P.S. Sorry if there was already some topics like this (I didn't find them)
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
Hello! Can anyone suggest some Dynamic Connectivity offline problems, so i could test my solution?
P.S. Sorry if there was already some topics like this (I didn't find them)
Name |
---|
http://www.spoj.com/problems/DYNACON1 (I am not sure if it can be solved offlinely) http://www.spoj.com/problems/DYNACON2
Thank you a lot. By the way, it could be solved offline.
how?
Do you want me to tell you algorithm or just say why it is possible to solve it offline?
I want to know the algorithm.
I want to know the algorithm too. Will we use link-cut tree?
First problem can be solved online using link-cut-tree algo.
Both problems can be easily solved using sqrt heurisric in , or in per query using the same idea like in segment tree. Both approaches are available in Burunduk1 diploma. But this paper is in Russian. You can use some translation system and understand given pseudocode. Also there are other approaches to solve this problem in the paper.
what is diffrence between this 2 problems?
First one about forest (you are guarantee that after each operation you will have a forest) and another one about graph.
Can anyone share their O(n*sqrt(n)) code?
https://atcoder.jp/contests/abc301/tasks/abc301_h