Max flow Flashcards

1
Q

Describe the max-flow problem.

A

Given a weighted, directed graph with a source (Node with no edges in, only out) and a sink (Node with no edges out, only in), what is the maximum number of units we can send from the source to the sink?

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

How do you solve the max-flow problem?

A

Use BFS to find a path between source and sink. Prioritize moving to nodes with lower index numbers with positive excess capacity.

Once found, identify the edge with the lowest excess capacity. Subtract this much from the excess each edge in the path.

Repeat this until there are no existing paths from the source to the sink.

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