Network Models
Network Models
Consider an undirected and connected network with two special nodes called the origin and the destination. Associated with each of the links (undirected arcs) is a nonnegative distance. The objective is to find the shortest path (the path with the minimum total distance) from the origin to the destination.
1 2,3 4
O O A A B C A B E D E
A C B
2 4 2+2=4
A C B
2 4 4
OA OC AB
D E E D D D
T T
BE
D D
T
8 8
13
BD ED
DT
5
Now let us relate these columns directly to the outline given for the algorithm. The input for nth iteration is provided by the fifth and sixth columns for the preceding iterations, where the solved nodes in the fifth column are then listed in the second column for the current iteration after deleting those that are no longer directly connected to unsolved nodes. The candidates for nth nearest node next are listed in the third column for the current iteration. The calculation of nth nearest node is performed in the fourth column, and the results are recorded in the last three columns for the current iteration.
After the work shown in Table is completed, the shortest path from the destination to the origin can be traced back through the last column of Table 9.2 as either T D E B A O or T D B A O. Therefore, the two alternates for the shortest path from the origin to the destination have been identified as O A B E D T and O A B D T, with a total distance of 13 miles on either path.
The minimum spanning tree problem bears some similarities to the shortest-path problem:
In both cases, an undirected and connected network is being considered, where the given information includes some measure of the positive length (distance, cost, time, etc.) associated with each link. Both problems also involve choosing a set of links that have the shortest total length among all sets of links that satisfy a certain property:
For the shortest-path problem, this property is that the chosen links must provide a path between the origin and the destination. For the minimum spanning tree problem, the required property is that the chosen links must provide a path between each pair of nodes.
A network with n nodes requires only (n 1) links to provide a path between each pairof nodes.
10
SOME APPLICATIONS:
Here is a list of some key types of applications of the minimum spanning tree problem: 1. Design of telecommunication networks (fiber-optic networks, computer networks, leased-line telephone networks, cable television networks, etc.) 2. Design of a lightly used transportation network to minimize the total cost of providing the links (rail lines, roads, etc.) 3. Design of a network of high-voltage electrical power transmission lines 4. Design of a network of wiring on electrical equipment (e.g., a digital computer system) to minimize the total length of the wire 5. Design of a network of pipelines to connect a number of locations
11
APPLYING THIS ALGORITHM TO THE SEERVADA PARK MINIMUM SPANNING TREE PROBLEM:
The Seervada Park management needs to determine under which roads telephone lines should be installed to connect all stations with a minimum total length of line.
Nodes and distances for the problem are summarized below, where the thin lines now represent potential links.
13
Arbitrarily select node O to start. The unconnected node closest to node O is node A. Connect node A to node O.
14
The unconnected node closest to either node O or node A is node B (closest to A). Connect node B to node A.
15
The unconnected node closest to node O, A, or B is node C (closest to B). Connect node C to node B.
16
The unconnected node closest to node O, A, B, or C is node E (closest to B). Connect node E to node B.
17
The unconnected node closest to node O, A, B, C, or E is node D (closest to E). Connect node D to node E.
18
The only remaining unconnected node is node T. It is closest to node D. Connect node T to node D.
All nodes are now connected, so this solution to the problem is the desired (optimal) one. The total length of the links is 14 miles.
19
20
SOME APPLICATIONS:
Here are some typical kinds of applications of the maximum flow problem. 1. Maximize the flow through a companys distribution network from its factories to its customers. 2. Maximize the flow through a companys supply network from its vendors to its factories. 3. Maximize the flow of oil through a system of pipelines. 4. Maximize the flow of water through a system of aqueducts. 5. Maximize the flow of vehicles through a transportation network.
22
AN ALGORITHM:
1. Identify an augmenting path by finding some directed path from the source to the sink in the residual network such that every arc on this path has strictly positive residual capacity. (If no augmenting path exists, the net flows already assigned constitute an optimal flow pattern.) 2. Identify the residual capacity c* of this augmenting path by finding the minimum of the residual capacities of the arcs on this path. Increase the flow in this path by c*. 3. Decrease by c* the residual capacity of each arc on this augmenting path. Increase by c* the residual capacity of each arc in the opposite direction on this augmenting path. Return to step 1.
23
Starting with the initial residual network given we give the new residual network after each one or two iterations, where the total amount of flow from O to T achieved thus far is shown in boldface (next to nodes O and T).
24
Iteration 1: In the previous figure, one of several augmenting paths is O B E T, which has a residual capacity of min{7, 5, 6}=5. By assigning a flow of 5 to this path, the resulting residual network is
25
Iteration 2: Assign a flow of 3 to the augmenting path O A D T. The resulting residual network is
26
Iteration 4: Assign a flow of 2 to the augmenting path O B D T. The resulting residual network is
Iteration 6: Assign a flow of 1 to the augmenting path O C E T. The resulting residual network is
28
Iteration 7: Assign a flow of 1 to the augmenting path O C E B D T. The resulting residual network is
29
There are no more augmenting paths, so the current flow pattern is optimal.
The most difficult part of this algorithm when large networks are involved is finding an augmenting path. This task may be simplified by the following systematic procedure:
Begin by determining all nodes that can be reached from the source along a single arc with strictly positive residual capacity. Then, for each of these nodes that were reached, determine all new nodes (those not yet reached) that can be reached from this node along an arc with strictly positive residual capacity. Repeat this successively with the new nodes as they are reached
The result will be the identification of a tree of all the nodes that can be reached from the source along a path with strictly positive residual flow capacity
31
The procedure is illustrated in next figure is for the residual network that results from iteration 6 in the preceding example.
32