network models (1)
TRANSCRIPT
-
8/2/2019 Network Models (1)
1/28
NETWORK MODELS
By:
Ankur Yadav - 06Kanika Sachdeva - 16Poorva Mishra - 26Shivam Awasthi - 36Shruti Sanklecha - 46Vinayak Naik - 56
-
8/2/2019 Network Models (1)
2/28
Introduction
Minimum spanning tree problem
Maximum flow problem
Shortest route problem
All node pairs shortest path
Practical Applications
-
8/2/2019 Network Models (1)
3/28
Minimal Spanning Tree
Definition:
The minimal spanning tree techniquedetermines the path through which networkthat connects all points while minimizingtotal distance
1
2
4
3
5
68
73
2
5
33
26
3
57
4
2
1
-
8/2/2019 Network Models (1)
4/28
Minimal Spanning Tree
Algorithm:
o Select any node in the network
o Connect this node to the nearest node
minimizing the total distanceo Select the node out of unconnected nodes
which can be connected with minimumdistance by adding one edge only
o If there is a tie, select arbitrarilyo A tie suggests more than one optimal solution
o Repeat till all nodes are connected
-
8/2/2019 Network Models (1)
5/28
Minimal Spanning Tree
300
200
500
300
300
200
600
300
500
700
400
200
100
Example:
-
8/2/2019 Network Models (1)
6/28
Minimal Spanning Tree
Example:
200
300
300
200
300
200
100
Total distance=200+200+300+300+300+100+200=1500 units
-
8/2/2019 Network Models (1)
7/28
Maximal Flow Problem
Maximal Flow Technique
Linear Programming
-
8/2/2019 Network Models (1)
8/28
Maximal Flow Technique
The maximal-flow technique allows themaximum amount of a material that can flowthrough a network to be determined.
For example:
It has been used to find the maximumnumber of automobiles that can flow through a
state highway system.
-
8/2/2019 Network Models (1)
9/28
Maximal Flow Technique
Algorithm Select any path Find the arc on this path with the smallest flow
capacity (C)available For each node on this path, decrease the flow
capacity in the direction of flow by the amount C.
For each node on this path, increase theflow capacity in the reverse direction by
the amount C. Repeat these steps until an increase in flow is no
longer possible.
-
8/2/2019 Network Models (1)
10/28
Road Network
-
8/2/2019 Network Models (1)
11/28
Capacity Adjustment
1
2
6
12
2
3EastPointWest
Point
Add 2
Subtract 2
Iteration 1
1
2
6
3 0
4
1EastPointWest
Point
New path
-
8/2/2019 Network Models (1)
12/28
New Arrangement
1
2
6
30
4
1
EastPoint
WestPoint
New path
-
8/2/2019 Network Models (1)
13/28
Final Iteration
1
2
4
3
5
6
40
0
2 0
2
4
2
4
3
0
30
10
20
0
1
EastPoint
WestPoint
-
8/2/2019 Network Models (1)
14/28
Linear Programming
Variable Xij= flow from node i to jMaximize flow = X61
X12
-
8/2/2019 Network Models (1)
15/28
Shortest PathAlgorithm
Shortest distance from one location to
another.
Used to minimize total distance from anystarting node to a final node
-
8/2/2019 Network Models (1)
16/28
Steps of the shortest routetechnique
Find the nearest node to theorigin(plant).Put the distance in a box bythe node.
Find the next nearest node to theorigin(plant) and put the distance in a boxby the node.Repeat this process till the entire network is
scanned.The last distance at the ending node will bethe distance of the shortest route.
-
8/2/2019 Network Models (1)
17/28
1
2
3
4
5
615050
40
200
Warehouse
Plant
-
8/2/2019 Network Models (1)
18/28
1
2
3
4
5
615050
40
200
-
8/2/2019 Network Models (1)
19/28
ALL-NODE-PAIRS SHORTEST PATH
Floyd-Warshall algorithm is useful for finding theshortest path between all pairs of nodes in anetwork
Check if d(i,j)>d(i,k) + d(k,j) ,then
the shortest route from i to j is through k
Algorithm:1. Initialize distance and node adjacency matrices.
2. Check distance matrix for shorter paths between
nodes,using node 1 as an intermediate node.Replacecorresponding nodes in adjacency matrix with node 1.
3. Repeat the second step using the other nodes insequence,as the intermediate node.
-
8/2/2019 Network Models (1)
20/28
ALL-NODE-PAIRS SHORTEST PATH
-
8/2/2019 Network Models (1)
21/28
ALL-NODE-PAIRS SHORTEST PATH
First Iteration
-
8/2/2019 Network Models (1)
22/28
ALL-NODE-PAIRS SHORTEST PATH
Second Iteration
-
8/2/2019 Network Models (1)
23/28
ALL-NODE-PAIRS SHORTEST PATH
Fourth Iteration
-
8/2/2019 Network Models (1)
24/28
ALL-NODE-PAIRS SHORTEST PATH
Eighth Iteration
-
8/2/2019 Network Models (1)
25/28
Practical Applications
Company: Digital equipment corporation
Problem:
Connect computer systems to LAN usingethernet
Ensure effective transport of packets ofinformation
Solution:
A network model was developed
Least cost paths were found using the spanningtree algorithm
-
8/2/2019 Network Models (1)
26/28
Practical Applications
Traffic control system on Hanshin Expressway Objective:
Maximize flow of traffic through the network
Reduce congestion and bottlenecks caused by
accidents Solution:
Direct & indirect systems developed to controltraffic
System was developed using maximal flowtechnique
-
8/2/2019 Network Models (1)
27/28
Other Applications
Network design in molecular biology
Transportation problem
Minimize transportation costs
Used for deciding warehouse or factorylocations
Project Management techniques (CPM/PERT)
Completion time for a project
Determine critical and non critical activities
-
8/2/2019 Network Models (1)
28/28
QUERIES???