(Latest Revision: Dec 1, 2022)

Flow Network Problem


On display below is an example of how to use the Ford-Fulkerson Algorithm to find a max flow and min cut in a flow network. To review the algorithm, have a look at the information about it in the text book, or watch my screencast here.

In the diagrams, edges are labeled with capacities, and flows on edges are depicted as numbers written in squares. In the first diagram we start with the flow network G with all the squares containing zero, representing the zero flow. In the second diagram, we create the residual graph, Gf, corresponding to the flow in the previous diagram of G.

After that we perform this loop:

WHILE there is a path, P, in Gf from the source to the sink
  1. mark such a path P in Gf,
  2. make a next copy of G, showing the new flow, as obtained by augmenting the previous flow using the path P, and
  3. create the next copy of the residual graph, Gf, corresponding to the flow in the latest diagram of G.
The last copy of Gf will be one in which there is no path from the source to the sink. In that copy of Gf, we mark the nodes that are reachable by paths from the source. Those nodes determine a minimal cut in G.


Here is the example problem solution

For this problem, the A-side of the minimum cut is {s, a}. No other nodes are reachable from the source, s, in the final version of the residual graph, Gf. The value of the max flow, v(f*), is the sum of the flows on the edges leaving the source node s in G. That sum is v(f*) = 4 + 2 + 1 = 7. The capacity of the min cut is the sum of the capacities of the edges (in G) leaving the A-side of the cut, 3 + 1 + 2 + 1 = 7 = v(f*). These calculations verify that the max value of an s-t flow is equal to the min capacity of an s-t cut, which, according to the "Max-Flow, Min-Cut Theorem," is true for any flow network.


YOUR ASSIGNED PROBLEM:

The figure below is a worksheet. The first diagram in the figure, flow network G, is your assigned problem. Do this problem in the same way that the example problem solution above illustrates.

2023 flow problem

Below are links to GIF, JPG, TIF, and PDF versions of the worksheet, for your convenience. If you have access to a printer, you can print out copies to use as you work the problem.

the GIF version

the JPG version

the TIF version

the PDF version

Directions For Doing The Problem:

To keep things simple, I want you to turn in this assignment in person, in class.
To turn in the assignment, number the sheets, attach them together in order, and place them on my desk as you come in at the beginning of class.