
9.5 SHORTEST ROUTE 277
corresponding to the upper bounds on arc flows, and show that the system is redundant.
The redundancy implies that we can set u
t
= 0, where t is the destination node; show
that this implies that u
s
= 1, where s is the source node. Next show that the remaining
variables are all either 0 or 1. Then show that for arc (i, j), we have w
ij
= 1 if and only
if u
i
= 1 and u
j
= 0. Use this last result to define the cut.
Example 9.13 (Another Example of Max-Flow) Consider the problem of finding
the maximal flow in the network illustrated in Figure 9-16(a
1
). The capacities for each
direction of an arc are stated at the end of the arc where the flow begins. Figure 9-
16(b
1
) represents a possible tree of positive arc capacities fanning out from the source.
The flow can now be increased to θ
1
= 1 along the augmenting path (1, 2), (2, 4), (4, 6),
at which point the arcs (1, 2) and (2, 4) are saturated. The adjusted capacity network
is then constructed by adjusting the arc capacities to h
ij
= h
ij
− θ
1
and h
ji
= h
ji
− θ
1
along the augmenting path just considered. The resulting associated network is shown in
Figure 9-16(a
2
). In Figure 9-16(b
2
) is a new possible tree of positive arc capacities fanning
out from the source node 1, resulting in the path (1, 3), (3, 5), (5, 6). Arcs (3, 5) and (5, 6)
are saturated by assigning a flow θ
2
= 1. The process is continued and the resulting path
and solutions are shown in Figures 9-16(a
3
), 9-16(b
3
), 9-16(a
4
), and 9-16(b
4
). Since it is
not possible to find an augmenting path in Figure 9-16(b
4
), the process is terminated with
a maximal flow of F
o
= θ
1
+ θ
2
+ θ
3
=3.
To find the actual flows on each arc we subtract the final arc capacities in Figure 9-
16(a
4
) from the original arc capacities in Figure 9-16(a
1
), interpreting a negative difference
as a flow in the opposite direction, to obtain the final solution shown in Figure 9-17. To
find the cut with minimum value, choose saturated arcs leading from nodes in X to nodes
in
¯
X. The nodes in X can all be reached from the source along unsaturated paths. This
set was determined by the nodes in the subtree of positive arc capacities in Figure 9-16(b
4
).
Hence X = {1, 3, 4, 2, 5} and
¯
X = {6} forms a cut Q =(X,
¯
X). The set of saturated arcs
joining the nodes in X to the nodes in
¯
X are (4, 6) and (5, 6), with sum of arc capacities
C
o
=2+1=3=F
o
, as shown in Figure 9-17.
Exercise 9.24 In Figure 9-17 enumerate all the other cuts separating node 1 from
node 6. Show that their associated cut values are greater than the maximal flow value.
9.5 SHORTEST ROUTE
The shortest route problem is that of finding the minimum total “distance”
along paths in an undirected connected network from the source s = 1 to the
destination t = m. The distance can be actual miles, the cost or time to go between
nodes, etc.
A simple method to solve such a problem for nonnegative distances (or costs) is
a branching out procedure that fans out from the source. Starting from the source,
it always picks on the next iteration the closest node i to the source and records its
distance. The algorithm is terminated when the shortest distance from the source
node to the destination node is recorded. We first illustrate the algorithm and then
state it.