Documente Academic
Documente Profesional
Documente Cultură
Chapter Topics The Minimal Spanning Tree Problem The Shortest Route Problem
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 conceive and construct. Network diagrams consist of nodes and branches. Nodes (circles), represent junction points, or locations.
Application
Nodes (vertices)
Intersection
Airports
Arcs (edges)
Roads
Air lanes
Flow
Vehicles
Aircraft
Messages,
Fluids Jobs
Example
Four nodes, four branches in figure. Atlanta, node 1, termed origin, any of others destination. Branches identified by beginning and ending node numbers.
the total cost associated with tree edges is the minimum among all possible spanning trees not necessarily unique
Concrete example
Imagine: You wish to connect telephone system in a town or all the computers in an office building using the least amount of cable a weighted graph problem !!
- Each vertex in a graph G represents a home (computer) - Each edge represents the amount of cable needed to connect all computers
Minimum-Spanning Trees
Central office
11
Central office
Expensive!
12
Central office
b
6 4 5
b
6 4 5
a
5
2 4
d
5
a
5
2 4
d
5
14
The Minimal Spanning Tree Problem Definition and Example Problem Data
Problem: Connect all nodes in a network so that the total branch lengths are minimized.
22
Steps 1 and 2 Starting arbitrarily with node (house) 1, the closest node is node 3
After all nodes (homes) are connected the total distance is 16 or 1,600 feet of water pipe
Decision Variables Xij = flow from node i to node j Note: flow on arc ij will be 1 if arc ij is used, and 0 if not used Roads are bi-directional, so the 9 roads require 18 decision variables
c
i 1 j 1 n
ij
xij
Total Cost
j i 1 n 1 i 2
x ji
j i 1
x
ji
ij
f or i 1 f or i 1, j n f or j n
x x
ij i2
0 1
x x
i a ij ia
j 1
ji
Example
Objective Function (in distance) Min 100X12 + 200X13 + 100X21 + 50X23 + 200X24 + 100X25 + 200X31 + 50X32 + 40X35 + 200X42 + 150X45 + 100X46 + 40X53 + 100X52 + 150X54 + 100X56 + 100X64 + 100X65
Subject to the constraints:
= -1
1
3 4 6
(X12+X32+X42+X52)(X21+X23+X24+X25)=0 2 (X13 + X23 + X53) (X31 + X32 + X35) = 0 (X24 + X54 + X64) (X42 + X45 + X46) = 0 (X46 + X56) (X64 + X65) =1
(X25+X35+X45+X65)(X52+X53+X54+X56)=0 5