Max-Flow Flashcards

1
Q

What is runtime of checking if flow f is max-flow

A

O(n+m)

Constructing residual graph is linear, and DFS to find new Path(s,t) is linear. No path means max flow, if not we repeat.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Definition of Max-flow Min-cut Theorem

A

For any flow network, the size of the max flow is equal to the minimum capacity of an st-cut

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define capacity in max-flow

A

Sum of all edges that crosses the cut from vertex set L to R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Definition of “size” of a flow

A

Total amount of flow that can move from source to sink in a network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define “bottleneck edge”

A

Any edge that crosses vertex set reachable by s, and those reachable by t.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why is bottleneck edge not a cut?

A

Cuts (used in MST) has to divide a graph into 2 vertex sets.

Bottleneck edges doesn’t have to (can be 2 subsets of a graph)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Difference between bottleneck and critical edges

A

All bottleneck edges are critical edges
There exists critical edges that are not bottleneck edges.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Let {G=(V,E), s, t in V, c(e) for e in E} be a network. For a given valid flow f, you are told that the edge e=(uv) satisfies f(e)=c(e) (this is, the edge e is saturated).

Please select all statements that are always true.

1) The reversed edge (vu) is in the residual network .

2) The size of the flow f is at least c(e).

3) All paths from the source s to the sink t must traverse the edge e.

4) There exists a path from s to t with capacity equal to c(e).

A

1) True

2) True

3) False. There can be other valid augment paths

4) False.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Let {G=(V,E), s, t in V, c(e) for e in E} be a network and let f be a valid flow of maximum size. Consider a new network which is identical to the given one except that the capacities of all edges increase by one. This is, the new capacities are c_new(e) = c(e) + 1

Which of the following is true

1) The flow f is a valid flow of maximum size in the new network.

2) The size of the max flow in the new network has size at least size(f)+1.

3) The size of the max flow increase only if there is a path of saturated edges from s to t.

4) The size of the max flow in the new network is exactly equal to size(f)+1.

A

2

1) False. Doesn’t have to be true.

2) True. It’d at least be more than size(f)

3) False. Don’t need all edges to be saturated, just one.

4) False. All edges increase by +1, so max flow could be cumulative…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly