Finding bridges with an added condition in O(V+E)

Правка en1, от brdy, 2018-01-30 05:12:36

Hello,

I have recently been doing this problem 701F - Break Up.

While it does not have an explanation in the official editorial, some user made an informal editorial.

The solution goes like this

I wrote Tarjan's for finding bridges, but then realized such a solution doesn't even pass the samples because a bridge is only guaranteed to split the graph into two components, but not necessarily separating the vertex s from t. How can I modify the algorithm to only consider bridges that split s and t?

Теги bridges, graphs, tarjan

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский brdy 2018-01-30 21:17:50 347
en1 Английский brdy 2018-01-30 05:12:36 1170 Initial revision (published)