Network Flow Problems – Shortest Path Problem

Slides:



Advertisements
Similar presentations
ITS THE FINAL LECTURE! (SING IT, YOU KNOW YOU WANT TO) Operations Research.
Advertisements

Outline LP formulation of minimal cost flow problem
Networks Prim’s Algorithm
Chen, Lu Mentor: Zhou, Jian Shanghai University, School of Management Chen213.shu.edu.cn.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 22 Network Problems.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
Network Optimization Problems: Models and Algorithms This handout: Minimum Spanning Tree Problem.
Graphs and Trees This handout: Trees Minimum Spanning Tree Problem.
Chapter 7 Network Flow Models.
1 Routing Algorithms. 2 Outline zBellaman-Ford Algorithm zDijkstra Algorithm.
MNG221 - Management Science
Quickest Route B St Li C La time matrix (minutes) Liskeard Launceston Callington St Austell Bodmin 32 What is the quickest route from.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Introduction to Management Science
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
Computational Methods for Management and Economics Carla Gomes Module 9d Network Models Maximum Flow Problem (Slides adapted from J.Orlin’s and Hillier’s)
7-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
Shortest Route, Minimal Spanning Tree and Maximal Flow Models
Chapter 4: Finding the Shortest Path Lesson 1: Dijkstra’s Algorithm
Chapter 4 Shortest Path Label-Setting Algorithms Introduction & Assumptions Applications Dijkstra’s Algorithm.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Shortest Path Algorithm This is called “Dijkstra’s Algorithm” …pronounced “Dirk-stra”
Shortest Path. Dijkstra’s Algorithm finds the shortest path from the start vertex to every other vertex in the network. We will find the shortest path.
COSC 2007 Data Structures II Chapter 14 Graphs III.
Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to.
Network Optimization Problems
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
O A BD T EC [2,O] 1 2,3 [4,0] [4,A] 4 [9,A] [7,B] [8,C] 5 [8,B] [8,E] 6 [13,D] [14,E] SHORTEST PATH – SERADA PARK UNDIRECTED GRAPH.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
The Travelling Salesperson Problem A salesperson needs to visit London, Nottingham, Manchester and Leeds, he lives in Birmingham. Find the shortest route.
Chapter 8 Network Models to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Welcome Unit 6 Seminar MM305 Wednesday 8:00 PM ET Quantitative Analysis for Management Delfina Isaac.
Decision Maths 1 Shortest path algorithm Dijkstra’s Algorithm A V Ali :
Dijkstra animation. Dijksta’s Algorithm (Shortest Path Between 2 Nodes) 2 Phases:initialization;iteration Initialization: 1. Included:(Boolean) 2. Distance:(Weight)
7-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Mjdah Al Shehri Hamdy A. Taha, Operations Research: An introduction, 8 th Edition Chapter 6: Network Models.
Graph Algorithms Mathematical Structures for Computer Science Chapter 6 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesGraph Algorithms.
Networks Teacher’s guide. Networks 2 Problem 1 – the Link The EMTV Company needs to install a new cable system that links the six major towns in its.
1 1 Slide © 2005 Thomson/South-Western Chapter 9 Network Models n Shortest-Route Problem n Minimal Spanning Tree Problem n Maximal Flow Problem.
Operations Research II Course,, September Part 2: Network Flow Operations Research II Dr. Aref Rashad.
St. Edward’s University
Shortest Path from G to C Using Dijkstra’s Algorithm
Chapter 12 Network Models 12-1
Dijkstra’s Algorithm with two levels of buckets
Graph Algorithm.
Heuristics Definition – a heuristic is an inexact algorithm that is based on intuitive and plausible arguments which are “likely” to lead to reasonable.
Party-by-Night Problem
Decision Maths Dijkstra’s Algorithm.
15.082J & 6.855J & ESD.78J Visualizations
15.082J & 6.855J & ESD.78J Visualizations
Shortest Path.
Shortest Path.
MATS Quantitative Methods Dr Huw Owens
CSE373: Data Structures & Algorithms Lecture 19: Spanning Trees
Chapter 4: Finding the Shortest Path Lesson 1: Dijkstra’s Algorithm
Chapter 6 Network Flow Models.
Shortest Path.
Dijkstra’s Algorithm for Shortest Paths
and 6.855J Dijkstra’s Algorithm
Visualizations Dijkstra’s Algorithm
Networks Prim’s Algorithm
Implementation of Dijkstra’s Algorithm
Shortest Path Solutions
Dijkstra Algorithm examples
Prim’s algorithm for minimum spanning trees
15.082J & 6.855J & ESD.78J Visualizations
Presentation transcript:

Network Flow Problems – Shortest Path Problem Consider the following flow network: d26 2 6 d12 d36 d23 d13 1 3 d56 d35 d34 d14 d45   4 5 The objective is to find the shortest path from node 1 to node n. The distance from node i to j, dij does not have to equal the distance from node j to i, dji.

Network Flow Problems – Shortest Path Problem Dijkstra’s labeling algorithm: 9 2 6 3 6 2 7 1 3 3 3 1 4 3 Summary: Nodes are permanently labeled or temporarily labeled. All nodes that can be immediately reached from permanently labeled nodes are temporarily labeled. The label is the minimum of the sum of the distance from node 1 to the permanent node plus the distance to the temporary node. Start with node 1 as the only permanently labeled node. Find the temporarily labeled node with minimum distance. Make this node permanent. Repeat this process until all nodes are permanently labeled.   4 5

Network Flow Problems – Shortest Path Problem Dijkstra’s labeling algorithm: 9 2 (3,1) 6 3 6 2 7 1 [0] 3 (7,1) 3 3 1 4 3   4 (4,1) 5 [ ] – permanent label (d,f) – temporary label; d – distance, f - from node L(0) = [0, 3, 7, 4, inf., inf.] – choose node 2 *

Network Flow Problems – Shortest Path Problem Dijkstra’s labeling algorithm: 9 2 [3,1] 6 (12,2) 3 6 2 7 1 [0] 3 (5,2) 3 3 1 4 3   4 (4,1) 5 L(1) = [0, 3, 5, 4, inf., 12] – choose node 4 * *

Network Flow Problems – Shortest Path Problem Dijkstra’s labeling algorithm: 9 2 [3,1] 6 (12,2) 3 6 2 7 1 [0] 3 (5,2) 3 3 1 4 3   4 [4,1] 5 (7,4) L(2) = [0, 3, 5, 4, 7, 12] – choose node 3 * * *

Network Flow Problems – Shortest Path Problem Dijkstra’s labeling algorithm: 9 2 [3,1] 6 (11,3) 3 6 2 7 1 [0] 3 [5,2] 3 3 1 4 3   4 [4,1] 5 (7,4) L(3) = [0, 3, 5, 4, 7, 11] – choose node 5 * * * *

Network Flow Problems – Shortest Path Problem Dijkstra’s labeling algorithm: 9 2 [3,1] 6 (10,5) 3 6 2 7 1 [0] 3 [5,2] 3 3 1 4 3   4 [4,1] 5 [7,4] L(4) = [0, 3, 5, 4, 7, 10] – choose node 6 * * * * *

Network Flow Problems – Shortest Path Problem Dijkstra’s labeling algorithm: 9 2 [3,1] 6 [10,5] 3 6 2 7 1 [0] 3 [5,2] 3 3 1 4 3   4 [4,1] 5 [7,4] L(5) = [0, 3, 5, 4, 7, 10] – done * * * * * * Shortest Path: 1-4-5-6

Shortest Path Problem – Excel Solution

Shortest Path Problem – Cost Example Equipment Replacement Problem: d15 d14 d13 d35 d12 d23 d34 d45 1 2 3 4 5  where Ki is purchase price in year i , Si is salvage value after i years in service, and ct is maintenance cost after t years of service.

Minimal Spanning Tree Objective: Find the minimum distance such that all nodes are visited once (i.e. no cycles). 9 2 6 3 6 2 7 1 3 3 3 1 4 3   4 5

Minimal Spanning Tree One possible spanning tree, Z = 26 (note, no cycles). 9 2 6 3 7 1 3 4 3   4 5

Minimal Spanning Tree Possible applications: Phone lines between cities. Rail lines between cities. Road networks. Air conditioning ducts. etc.. 9 2 6 3 7 1 3 4 3   4 5

Minimal Spanning Tree Algorithm: Step 1 – Select an arbitrary node initially. Identify a node that is closest and include the arc connecting these two nodes in the spanning tree. Step 2 – Out of the remaining nodes, determine the one that is closest to a node already selected in the spanning tree. Include the arc connecting these two nodes in the spanning tree. Whenever there is a tie for the closest node, it is broken arbitrarily.

Minimal Spanning Tree Start with node 1. Node 2 is closest. 9 2 6 3 6 7 1 3 3 3 1 4 3   4 5

Minimal Spanning Tree Node 3 is closest to partial spanning tree {(1,2)}. Remove any cycles. 9 2 6 3 6 2 1 3 3 3 1 4 3   4 5

Minimal Spanning Tree Node 4 is closest to partial spanning tree {(1,2), (2,3)}. Remove any cycles. 9 2 6 3 6 2 1 3 3 3 1 3   4 5

Minimal Spanning Tree Node 5 is closest to partial spanning tree {(1,2), (2,3),(3,4)}. Remove any cycles. Note, arbitrarily select (3,5) or (4,5). 9 2 6 3 6 2 1 3 3 1 3   4 5

Minimal Spanning Tree Node 6 is closest to partial spanning tree {(1,2), (2,3),(3,4),(4,5)}. Remove any cycles. Stop, no more nodes. 2 6 3 2 1 3 3 1 3   4 5 Minimal spanning tree is {(1,2), (2,3),(3,4),(4,5),(5,6)}. Z = 12.