Hi all,
Apparantly there is way to find SSSP from a single point, but I have tried a while and could not come with it. Can anyone help?
There is article here, but I have to buy it for USD$31.50.
So anyone can tell me about the algorithm for free?
Thanks,
-minimario
We need data structure to find "one" adjacent vertex, and remove that vertex. Use max segtree.
Oh, thank you very much, I see now. I overlooked something so simple :)
Algorithm itself is easy, but I'm not sure coming up with this is also easy :p
Sorry, ignore it! But I can't delete it :)
It's okay :)
Not sure about that linear one, but I think it's quite easy to handle weighted version with this algorithm.
Note that relaxation is necessary for only one time. It's due to the fact the weight is in vertex, not edge.
Btw you can use sci-hub.io to get the paper for free.
BTW, are there any interesting problems that use some properties of this graph?