2. Overview
A network is an arrangement of paths connected at various points
through which one or more items move from one point to another.
The network is drawn as a diagram providing a picture of the
system thus enabling visual interpretation and enhanced
understanding.
A large number of real-life systems can be modeled as networks
which are relatively easy to construct.
2
3. Network diagrams consist of nodes and branches.
Nodes (circles), represent junction points, or locations.
Branches (lines), connect nodes and represent flow.
Network Components
distance, time, cost, etc.
Origin
3
4. Shortest-Route Algorithm
Used for determining the shortest time, distance, or
cost from an origin to a destination through a
network.
Minimum Spanning Tree Algorithm
Used in determining the minimum distance (cost,
time) needed to connect a set of locations into a
single system.
Maximal Flow Algorithm
Used for determining the greatest amount of flow
that can be transmitted through a system in which
various branches, or connections, have specified
flow capacity limitations.
Network Models
4
5. Problem: Determine the shortest routes from the origin to all destinations.
Shipping Routes from Los Angeles
The Shortest Route Problem
Definition and Example Problem Data (1 of 2)
5
6. Network of Shipping Routes
The Shortest Route Problem
Definition and Example Problem Data (2 of 2)
6
7. Network with Node 1 in the Permanent Set
The Shortest Route Problem
Solution Approach
Determine the initial shortest route from the origin (node 1) to the closest node (3).
7
8. Network with Nodes 1 and 3 in the Permanent Set
The Shortest Route Problem
Solution Approach
Determine all nodes directly connected to the permanent set.
8
9. Network with Nodes 1, 2, and 3 in the Permanent Set
Redefine the permanent set.
The Shortest Route Problem
Solution Approach
9
10. Network with Nodes 1, 2, 3, and 4 in the Permanent Set
The Shortest Route Problem
Solution Approach
10
11. The Shortest Route Problem
Solution Approach
Network with Nodes 1, 2, 3, 4, and 6 in the Permanent Set
11
12. The Shortest Route Problem
Solution Approach
Network with Nodes 1, 2, 3, 4, 5, and 6 in the Permanent Set
Continue
12
13. The Shortest Route Problem
Solution Approach
Network with Optimal Routes from Los Angeles to All Destinations
Optimal Solution
13
14. The Shortest Route Problem
Solution Method Summary
Select the node with the shortest direct route from the origin.
Establish a permanent set with the origin node and the node that was
selected in step 1.
Determine all nodes directly connected to the permanent set nodes.
Select the node with the shortest route (branch) from the group of nodes
directly connected to the permanent set nodes.
Repeat steps 3 and 4 until all nodes have joined the permanent set.
14
16. The Shortest Route Problem
Example Problem
16
Permanent Set Path Distance
{ O } O – A 2
O – B 5
O - C 4
17. The Shortest Route Problem
Example Problem
17
Permanent Set Path Distance
{ O, A } O – B 5
O – C 4
A – B 4
A - D 9
18. The Shortest Route Problem
Example Problem
18
Permanent Set Path Distance
{ O, A, C } O – B 5
A – B 4
A – D 9
C – B 5
C - E 8
19. The Shortest Route Problem
Example Problem
19
Permanent Set Path Distance
{ O, A, B, C } A – D 9
C – E 8
B – D 8
B - E 7
20. The Shortest Route Problem
Example Problem
20
Permanent Set Path Distance
{ O, A, B, C, E } A – D 9
B – D 8
E – D 8
E – T 14
21. The Shortest Route Problem
Example Problem
21
Permanent Set Path Distance
{ O, A, B, C, E } D – T 13
E - T 14
22. The Shortest Route Problem
Example Problem
22
Optimal Path Distance
O – A 2
O – C 4
O – A – B 4
O – A – B – E 7
O – A – B – D 8
O – A – B – D – T 13
24. A tree is a set of connected arcs that does not form a
cycle.
A spanning tree is a tree that connects all nodes of a
network.
The minimal spanning tree problem seeks to determine
the minimum sum of arc lengths necessary to connect
all nodes in a network.
The criterion to be minimized in the minimal spanning
tree problem is not limited to distance. Other criteria
include time and cost.
The Minimal Spanning Tree Problem
24
25. Required: Connect all nodes at minimum cost.
1
3
2
The Minimal Spanning Tree Problem
25
26. Required: Connect all nodes at minimum cost.
Cost is sum of edge weights
1
2
3
2
1
3
The Minimal Spanning Tree Problem
26
27. Required: Connect all nodes at minimum cost.
Cost is sum of edge weights
1
2
3
2
1
3
S.T. = 3 S.T. = 5 S.T. = 4
The Minimal Spanning Tree Problem
27
28. Required: Connect all nodes at minimum cost.
Cost is sum of edge weights
1
3
2
1
3
2
1
3
2
M.S.T. = 3 S.T. = 5 S.T. = 4
The Minimal Spanning Tree Problem
28
29. Network of Possible Cable TV Paths
The Minimal Spanning Tree Problem
Example Problem
Problem: Connect all nodes in a network so that the total branch lengths are
minimized.
29
30. The Minimal Spanning Tree Problem
Solution Approach (1 of 6)
Spanning Tree with Nodes 1 and 3
Start with any node in the network and select the closest node to join the spanning
tree.
30
31. The Minimal Spanning Tree Problem
Solution Approach (2 of 6)
Spanning Tree with Nodes 1, 3, and 4
Select the closest node not presently in the spanning area (not to create a cycle).
31
32. The Minimal Spanning Tree Problem
Solution Approach (3 of 6)
Spanning Tree with Nodes 1, 2, 3, and 4
Continue
32
33. The Minimal Spanning Tree Problem
Solution Approach (4 of 6)
Spanning Tree with Nodes 1, 2, 3, 4, and 5
Continue
33
34. The Minimal Spanning Tree Problem
Solution Approach (5 of 6)
Spanning Tree with Nodes 1, 2, 3, 4, 5, and 7
Continue
34
35. The Minimal Spanning Tree Problem
Solution Approach (6 of 6)
Minimal Spanning Tree for Cable TV Network
Optimal Solution
35
36. The Minimal Spanning Tree Problem
Solution Method Summary
Select any starting node (conventionally, node 1).
Select the node closest to the starting node to join the spanning tree (not to
create a cycle).
Select the closest node not presently in the spanning tree.
Repeat step 3 until all nodes have joined the spanning tree.
36
51. Example Problem Statement and Data
1. Determine the shortest route from Atlanta (node 1) to each of the
other five nodes (branches show travel time between nodes).
2. Assume branches show distance (instead of travel time) between
nodes, develop a minimal spanning tree.
51
54. Example Problem, Minimal Spanning Tree (1 of 2)
1. The closest unconnected node to node 1 is node 2.
2. The closest to 1 and 2 is node 3.
3. The closest to 1, 2, and 3 is node 4.
4. The closest to 1, 2, 3, and 4 is node 6.
5. The closest to 1, 2, 3, 4 and 6 is 5.
6. The shortest total distance is 17 miles.
54