gpt4 book ai didi

algorithm - 最小割边最少的算法

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:03:07 25 4
gpt4 key购买 nike

Let G = (V, E) be a flow network
with source s, sink t, and capacity function c(·). Assume that, for every
edge e ∈ E, c(e) is an integer. Define the size of an s-t cut (A, B) in G
to be the number of edges directed from A to B. Our goal is to identify,
from among all minimum cuts in G, a minimum cut whose size is as small
as possible.
Let us define a new capacity function c'(·) for G as follows. For each
edge e ∈ E, by c'(e) = m·c(e)+1. Suppose (A, B) is a minimum
cut in in G with respect to the capacity function c'(·).
(a) Show that (A, B) is a minimum cut with respect to the original capacity
function c(·).
(b) Show that, amongst all minimum cuts in G, (A, B) is a cut of smallest
size.
(c) Use the results of parts (a) and (b) to obtain a polynomial-time algorithm
to find a minimum cut of smallest size in a flow network.

如何为此编写多项式时间算法?有什么想法吗?

最佳答案

我不会剧透这个答案,但是我会给以后看到这个帖子的同学留下一个提示。考虑一下如果您在 G 中采用两个最小切割 (A,B) 和 (C,D) 会发生什么情况,这样一个中的边数最少而另一个中的边数不是。然后将它们映射到 G' 并考虑这两个切割的值。

关于algorithm - 最小割边最少的算法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32593911/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com