Lecture 17 Shortest Path Problem. October 18, 2009

Similar documents
( ) = ( ) = {,,, } β ( ), < 1 ( ) + ( ) = ( ) + ( )

Week_11: Network Models

Social Media Mining. Graph Essentials

8.1 Min Degree Spanning Tree

Midterm Practice Problems

Operations: search;; min;; max;; predecessor;; successor. Time O(h) with h height of the tree (more on later).

6.231 Dynamic Programming and Stochastic Control Fall 2008

An Improved ACO Algorithm for Multicast Routing

Dynamic Programming 11.1 AN ELEMENTARY EXAMPLE

Outline. IEEM241 Routing and Fleet Management. Course - Objectives. Background. Course summary Essence of decision models Decision models - examples

Lecture 3. Linear Programming. 3B1B Optimization Michaelmas 2015 A. Zisserman. Extreme solutions. Simplex method. Interior point method

On the effect of forwarding table size on SDN network utilization

Question 1. [7 points] Consider the following scenario and assume host H s routing table is the one given below:

Ring Protection: Wrapping vs. Steering

Oracle Spatial and Graph. Jayant Sharma Director, Product Management

Chapter 6: Graph Theory

Analysis of Algorithms I: Binary Search Trees

Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

Strategic Deployment in Graphs. 1 Introduction. v 1 = v s. v 2. v 4. e 1. e e 3. e 2. e 4

Load Balancing. Load Balancing 1 / 24

2004 Networks UK Publishers. Reprinted with permission.

Approximation Algorithms

DESIGNING SERVICE FOR HUB-AND-SPOKE NETWORK

LOAD BALANCING IN WDM NETWORKS THROUGH DYNAMIC ROUTE CHANGES

HYBRID ACO-IWD OPTIMIZATION ALGORITHM FOR MINIMIZING WEIGHTED FLOWTIME IN CLOUD-BASED PARAMETER SWEEP EXPERIMENTS

DATA ANALYSIS IN PUBLIC SOCIAL NETWORKS

Clustering UE 141 Spring 2013

CAB TRAVEL TIME PREDICTI - BASED ON HISTORICAL TRIP OBSERVATION

Security-Aware Beacon Based Network Monitoring

CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) Total 92.

Load balancing Static Load Balancing

Load Balancing and Termination Detection

Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

Scheduling Shop Scheduling. Tim Nieberg

CS Computer Networks 1: Routing Algorithms

Branch-and-Price Approach to the Vehicle Routing Problem with Time Windows

Intrusion Detection: Game Theory, Stochastic Processes and Data Mining

Computer Networks II Master degree in Computer Engineering Exam session: 11/02/2009 Teacher: Emiliano Trevisani. Student Identification number

Scheduling Home Health Care with Separating Benders Cuts in Decision Diagrams

KTH Challenge Solutions. Further Information KTH Challenge April 21, 2013

Bicolored Shortest Paths in Graphs with Applications to Network Overlay Design

Dynamic programming formulation

A Labeling Algorithm for the Maximum-Flow Network Problem

How To Solve The Line Connectivity Problem In Polynomatix

A hierarchical multicriteria routing model with traffic splitting for MPLS networks

Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis. Contents. Introduction. Maarten van Steen. Version: April 28, 2014

Graph Theory and Complex Networks: An Introduction. Chapter 08: Computer networks

1.204 Lecture 10. Greedy algorithms: Job scheduling. Greedy method

Lecture 2.1 : The Distributed Bellman-Ford Algorithm. Lecture 2.2 : The Destination Sequenced Distance Vector (DSDV) protocol

Classification/Decision Trees (II)

Reinforcement Learning

Chinese postman problem

ENTRANCE EXAMINATION FOR THE BACHELOR OF ENGINEERING DEGREE PROGRAMMES

Cpt S 223. School of EECS, WSU

Routing and Peering in a Competitive Internet

Lecture 10 Scheduling 1

THE last two decades have witnessed an exponential

Level 2 Routing: LAN Bridges and Switches

Y. Xiang, Constraint Satisfaction Problems

WAN Wide Area Networks. Packet Switch Operation. Packet Switches. COMP476 Networked Computer Systems. WANs are made of store and forward switches.

Distributed Computing over Communication Networks: Topology. (with an excursion to P2P)

4 UNIT FOUR: Transportation and Assignment problems

Context-Aware Route Planning

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

Minimum cost maximum flow, Minimum cost circulation, Cost/Capacity scaling

Engineering Route Planning Algorithms. Online Topological Ordering for Dense DAGs

Graph Theory Algorithms for Mobile Ad Hoc Networks

Constraint-Based Local Search for Constrained Optimum Paths Problems

Liner Shipping Revenue Management with Respositioning of Empty Containers

Section #6: Addressing

A Column Generation Model for Truck Routing in the Chilean Forest Industry

3. The Junction Tree Algorithms

Basic Components of an LP:

Call Admission Control and Routing in Integrated Service Networks Using Reinforcement Learning

Multiple Spanning Tree Protocol (MSTP), Multi Spreading And Network Optimization Model

Introduction to LAN/WAN. Network Layer

6.02 Practice Problems: Routing

Exercises Software Development I. 11 Recursion, Binary (Search) Trees. Towers of Hanoi // Tree Traversal. January 16, 2013

The Goldberg Rao Algorithm for the Maximum Flow Problem

From Last Time: Remove (Delete) Operation

MEI Structured Mathematics. Practice Comprehension Task - 2. Do trains run late?

Introduction to IP v6

UNIVERSIDADE DE SÃO PAULO

Acceptance of reservations for a rent-a-car company J.Alberto Conejero 1, Cristina Jordan 2, and Esther Sanabria-Codesal 1

Asynchronous Computations

COMP 631: COMPUTER NETWORKS. Internet Routing. Jasleen Kaur. Fall Forwarding vs. Routing: Local vs. Distributed

Binary Search Trees. A Generic Tree. Binary Trees. Nodes in a binary search tree ( B-S-T) are of the form. P parent. Key. Satellite data L R

Integrated Backup Topology Control and Routing of Obscured Traffic in Hybrid RF/FSO Networks*

2.3 Convex Constrained Optimization Problems

SIMS 255 Foundations of Software Design. Complexity and NP-completeness

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team

CompSci-61B, Data Structures Final Exam

Chapter 15: Dynamic Programming

A Numerical Study on the Wiretap Network with a Simple Network Topology

IE 680 Special Topics in Production Systems: Networks, Routing and Logistics*

International Journal of Software and Web Sciences (IJSWS)

Supporting Differentiated QoS in MPLS Networks

Transcription:

Shortest Path Problem October 18, 2009

Outline Lecture 17 Network Models Minimal Spanning Tree Problem Shortest Route Problem - TODAY: modeling aspect Maximal-flow Problem Operations Research Methods 1

Lecture 17 Shortest Path Problem: Form Given a road network and a starting node s, we want to determine the shortest path to all the other nodes in the network (or to a specified destination node). This is Shortest Path Problem Note that the graph is directed. The weights on the links are costs. We consider several applications. Operations Research Methods 2

Example: Equipment Replacement RentCar is developing a replacement policy for its car fleet for a 4-year period. At the start of the first year, the RentCar must purchase a car. At the start of each subsequent year, a decision can be made as to keep a car or to replace it. The car has to be in service for at least 1 year and no more than 3 years. The replacement cost is shown in the table below as a function of the period when it is purchased and the years kept in operation. Years in operation Start of a year 1 2 3 1 4000 5400 9800 2 4300 6200 8700 3 4800 7100-4 4900 - - The problem is to determine the best decision that minimizes the total cost incurred over the period of 4 years. Operations Research Methods 3

All possible decisions Decision Cost Total Cost By a car in years 1,2,3,4 4000 4300 4800 4900 18000 By a car in years 1,2,3 4000 4300 7100 x 15400 By a car in years 1,2,4 4000 6200 x 4900 15100 By a car in years 1,3,4 5400 x 4800 4900 15100 By a car in years 1,2 4000 8700 x x 12700 By a car in years 1,3 5400 x 7100 x 12500 By a car in years 1,4 9800 x x 4900 14700 The problem of determining the optimal decision can be formulated as shortest path! Operations Research Methods 4

The best decision corresponds to the shortest path from node 1 to node 5, which is 1 3 5 with the cost of 5400 + 7100 = 12500. This path corresponds to the decision of purchasing the car in years 1 and 3. Operations Research Methods 5

Most Reliable Route XY drives daily to work. There are several routes that XY can take. Each link is patrolled by police and for each link there is an estimated probability of not being stopped (see figure below). The reliability of a route is the product of the reliability of the links in the route. XY wants to drive fast (speeding) and maximize the probability of not being stopped by police. Operations Research Methods 6

Transform the problem to minimization form Let P be the set of all paths from node 1 to node 7. Let p P be a path. Let l p denote that link l is traversed in a path p. The maximum reliable route is the following problem max p P Π l pπ l By taking ln transformation of the objective, the problem is equivalent to max p P l p ln(π l ) (1) The problems are equivalent in the sense that their solutions are the same Operations Research Methods 7

The maximization of l p ln(π l ) over p P is equivalent to minimization of l p ln(π l ) over p P, i.e., the problem in (1) is equivalent to min p P l p ln(π l ) Again, the equivalence is in the sense that their optimal solutions are the same Thus the most reliable route can be found by finding the shortest route in the network, where a link reliability is replaced with ln of the reliability (see the network below). Operations Research Methods 8

The most reliable route of the original network is the shortest path in this network Operations Research Methods 9

Three-Jug Puzzle We have an 8-gallon jug filled with water. We also have two empty jugs, one 5-gallon and one 3-gallon. We want to divide 8 gallons of water into two 4-gallon parts using the three jugs. No other measuring devices are available. What is the smallest number of transfers needed to achieve the result? We can formulate the problem as shortest path. Construct a network with each node representing the amount of water in the jugs a node is an ordered tuple representing the amount of water in 8-gallon, 5-gallon, and 3-gallon jug. Place a link from node a to node b when it is possible to move from node a to node b in one transfer (i.e, by pouring water from one jug to another jug) Operations Research Methods 10

Operations Research Methods 11

Operations Research Methods 12

Each link counts for one transfer. Assign cost of 1 to each link, and find the shortest path from node (8,0,0) to (4,4,0). The shortest path is shown below. The minimal number of transfers is 7. Operations Research Methods 13