(Latest Revision: Nov 23, 2021)

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 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 a path from the source. Those nodes determine a minimal cut in G.

How We Figure The Max Flow and Min Capacity
Note that the value of the max flow found, v(f*), can be read off from the final version of G. It is equal to the sum of the flows on edges leaving the source: v(f*) = 7 + 3 + 1 = 11. Note also that the capacity of the minimum cut is 5 + 5 + 1 = 11 = v(f*). (According to the "Max-Flow, Min-Cut Theorem," in any flow network, the max value of an s-t flow is equal to the min capacity of an s-t cut. )


flow problem solution, page 01
flow problem solution, page 02
flow problem solution, page 03
flow problem solution, page 03
flow problem solution, page 03

YOUR ASSIGNED PROBLEM: Work the problem in the figure below using copies of the worksheet shown. Do the problem in the same way as the example above is done.

flow problem solution, page 03

Below are links to GIF, JPEG, TIFF, 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 TIFF 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.