How can I find the minimum cut on a graph using a maximum flow algorithm?

后端 未结 7 1742
旧时难觅i
旧时难觅i 2020-12-07 13:27

I need to find the minimum cut on a graph. I\'ve been reading about flow networks, but all I can find are maximum flow algorithms such as Ford-Fulkerson, push-relabel, etc.

7条回答
  •  情书的邮戳
    2020-12-07 13:46

    After the maximum flow is calculated, we can search for edges (u,v) such that in the residual graph, there's a edge in the residual graph from v to u and f(v,u) = c(u,v) [which means the edge is saturated]

    After shortlisting such edges, we can select such edges (u,v) by using the criteria that there exists no path from u to sink t in the residual graph. If this condition is satisfied, then such edges form a part of (S,T) cut

    Running time of this algorithm may be O(E) * O( V + E ) = O( E^2 )

提交回复
热议问题