Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem. October 25, 2009

Similar documents
Lecture 18 Solving Shortest Path Problem: Dijkstra s Algorithm. October 23, 2009

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2: Search. Problem Solving Agents

Network Flow Models. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

TA: Jade Cheng ICS 241 Recitation Lecture Note #9 October 23, 2009

Introduction To Graphs and Networks. Fall 2013 Carola Wenk

Lecture 8 Network Flow Models

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions

Dynamic modelling and network optimization

Introduction to Management Science (8th Edition, Bernard W. Taylor III) Chapter 12 Network Flow Models. Chapter 12 - Network Flow Models 1

Math 381 Discrete Mathematical Modeling

Graph Data Processing with MapReduce

Solutions to Math 381 Quiz 2

Overview. H. R. Alvarez A., Ph. D.

Algorithms after Dijkstra and Kruskal for Big Data. User Manual

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Greedy Algorithms. COMP 215 Lecture 6

University of Maryland. Tuesday, March 2, 2010

CSE 101. Algorithm Design and Analysis Miles Jones Office 4208 CSE Building Lecture 5: SCC/BFS

OVERVIEW OF THE NETWORK OPTIMIZATION PROGRAM (NOP) A. INTRODUCTION

Ch.07 Shortest Route, Minimal Spanning Tree, and Maximal Flow Models. Management Science / Prof. Bonghyun Ahn

Graph Algorithms. Revised based on the slides by Ruoming Kent State

Purchasing Calling Card Services

of optimization problems. In this chapter, it is explained that what network design

Algorithm Circle Extra Lecture: Solving the Assignment Problem with Network Flow

GRAPHS Lecture 17 CS2110 Spring 2014

Networks: Lecture 1. General Comments

CSE 101 Final Exam. Spring 2017

6.854J / J Advanced Algorithms Fall 2008

Graphs. 04/01/03 Lecture 20 1

CS 491 CAP Introduction to Graphs and Search

Introduction to Mathematical Programming IE406. Lecture 16. Dr. Ted Ralphs

Temporally Adaptive A* Algorithm on Time Dependent Transportation Network

Algorithms for Data Science

Material handling and Transportation in Logistics. Paolo Detti Dipartimento di Ingegneria dell Informazione e Scienze Matematiche Università di Siena

Artificial Intelligence

The Shortest Path Problem. The Shortest Path Problem. Mathematical Model. Integer Programming Formulation

5.2 Routing Algorithms

Graphs. Tessema M. Mengistu Department of Computer Science Southern Illinois University Carbondale Room - Faner 3131

Introduction to Algorithms

COMP/ELEC 429/556 Introduction to Computer Networks

CSE 101 Winter 2018 Programming Assignment (PA) Two

Routing Algorithms McGraw-Hill The McGraw-Hill Companies, Inc., 2001

TIE Graph algorithms

Outline: Finish uncapacitated simplex method Negative cost cycle algorithm The max-flow problem Max-flow min-cut theorem

CS 4407 Algorithms Lecture 5: Graphs an Introduction

ECE 242 HOMEWORK 5. In the figure below, one can go from node B to A but not from A to B.

Homework Assignment #3 Graph

Classic Graph Theory Problems

Link Analysis in the Cloud

Computer Networking. Intra-Domain Routing. RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)

Module 2: NETWORKS AND DECISION MATHEMATICS

U.C. Berkeley CS170 : Algorithms Midterm 1 Lecturers: Alessandro Chiesa and Satish Rao September 18, Midterm 1

Algorithms and Data Structures (INF1) Lecture 15/15 Hua Lu

CS Algorithms and Complexity

Practical Use of ADUS for Real- Time Routing and Travel Time Prediction

Optimization Problems. Optimization Problems

We have already seen the transportation problem and the assignment problem. Let us take the transportation problem, first.

Graph Theoretic Models for Ad hoc Wireless Networks

Chalmers University of Technology. Network Models. April 11, Birgit Grohe

Network Models - Examples. Network Models. Definition and Terminology. The Minimum Spanning Tree (MST) Problem

56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997

NETWORK OPTIMIZATION MODELS

Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks

4/8/11. Single-Source Shortest Path. Shortest Paths. Shortest Paths. Chapter 24

Introduction to Computer Science

Jordan Boyd-Graber University of Maryland. Thursday, March 3, 2011

CAD Algorithms. Categorizing Algorithms

The Traveling Salesman Problem Nearest-Neighbor Algorithm

PBW 654 Applied Statistics - I Urban Operations Research. Unit 3. Network Modelling

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Department of Mathematics Oleg Burdakov of 30 October Consider the following linear programming problem (LP):

GRAPHS Lecture 19 CS2110 Spring 2013

1. Let n and m be positive integers with n m. a. Write the inclusion/exclusion formula for the number S(n, m) of surjections from {1, 2,...

ME/CS 132: Advanced Robotics: Navigation and Vision

Dijkstra s Algorithm and Priority Queue Implementations. CSE 101: Design and Analysis of Algorithms Lecture 5

Graphs & Digraphs Tuesday, November 06, 2007

Introduction to Algorithms

Analysis of Algorithms Prof. Karen Daniels

Routing in Delay Tolerant Networks (2)

CS261: Problem Set #2

Outline. Graphs. Divide and Conquer.

CS170 Discussion Section 4: 9/18

Dynamic Programming II

CSE 417 Network Flows (pt 4) Min Cost Flows

CSE 100: B+ TREE, 2-3 TREE, NP- COMPLETNESS

ME 391Q Network Flow Programming

CS4800: Algorithms & Data Jonathan Ullman

The State of the American Traveler TM

Shortest Paths. CSE 373 Data Structures Lecture 21

CS61B Lecture #35. Today: A* search, Minimum spanning trees, union-find. Last modified: Fri Nov 25 20:16: CS61B: Lecture #35 1

Spatial Analysis (Vector) II

International Journal of Computer Engineering and Applications, Volume XII, Special Issue, July 18, ISSN

ECE 435 Network Engineering Lecture 11

Static Interconnection Networks Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

LECTURE 26 PRIM S ALGORITHM

Spatio-Temporal Routing Algorithms Panel on Space-Time Research in GIScience Intl. Conference on Geographic Information Science 2012

Computer Science 501 Data Structures & Algorithms The College of Saint Rose Fall 2014

Math/Stat 2300 Modeling using Graph Theory (March 23/25) from text A First Course in Mathematical Modeling, Giordano, Fox, Horton, Weir, 2009.

Design and Analysis of Algorithms

TRIP Instructions for DAY TRIP

Transcription:

Shortest Path vs Spanning Tree Max-Flow Problem October 25, 2009

Outline Lecture 19 Undirected Network Illustration of the difference between the shortest path tree and the spanning tree Modeling Dilemma: Shortest path or Spanning tree? Max-Flow Problem Operations Research Methods 1

One-To-All Shortest Path Problem in UNDIRECTED NETWORK We are given a weighted undirected network (V, E, C) with node set V, edge set E, and the weight set C specifying weights c ij for the edges {i, j} E. We are also given a starting node s V. The problem is to determine the shortest path from s to any other node in the network. In the figure, we have s = 1 Operations Research Methods 2

Solution obtained by Dijkstra s algorithm The tree of the shortest paths from node 1 a a By pure chance it happen to be the same as in the directed version discussed in Lecture 18 Shortest path Length 1 2 7 1 3 9 1 3 4 20 1 3 6 5 20 1 3 4 6 11 The table has paths sorted by the index of the destination node Operations Research Methods 3

How is the Shortest Path tree related to the Minimal Spanning Tree? These trees are NOT the same! Reason: The tree of shortest paths depends on the starting node Operations Research Methods 4

The tree of the shortest paths for a traveler starting a trip at node 1 The tree cost is 38 The tree of the shortest paths for a traveler starting a trip at node 3 The tree cost is 41 Operations Research Methods 5

Spanning tree problem over the same network In the spanning tree problem, there is no starting node The minimal spanning tree The tree cost is 33 In the spanning tree problem: The cost is incurred by one who builds the links One who builds the links sees the network with the whole structure One who travels in the network from an origin to a destination sees only the links that lead from the origin to the destination Operations Research Methods 6

Model Dilemma: Spanning Tree or Shortest Path Lecture 19 Confusion may arise when the problem is given in words To identify the problem type, ask yourself a question: Who incurs the cost? A user or the owner of the network? If it is a user of the network, then shortest path is the right model If it is the one who builds or owns the network, then spanning tree is the right model This helps in most of the situations BUT need not work all the time Operations Research Methods 7

Problem Sample The TM mobile phone company services six geographical areas. The satellite distances in thousands of miles are given in the figure below. TM needs to determine the best quality message routes that should be established between each two areas in the network QUESTION: What type of the problem are we facing here? Operations Research Methods 8

Max-Flow Problem: Single-Source Single-Sink We are given a directed capacitated network (V, E, C) connecting a source (origin) node with a sink (destination) node. The set V is the set of nodes in the network. The set E is the set of directed links (i, j) The set C is the set of capacities c ij 0 of the links (i, j) E. The problem is to determine the maximum amount of flow that can be sent from the source node to the sink node. This is Max-Flow Problem for single-source and single-sink Operations Research Methods 9

Max-Flow Problem: Multiple-Sources Multiple-Sinks We are given a directed capacitated network (V, E, C) connecting multiple source nodes with multiple sink nodes. The set V is the set of nodes and the set E is the set of directed links (i, j) The set C is the set of capacities c ij 0 of the links (i, j) E The problem is to determine the maximum amount of flow that can be sent from the source nodes to the sink nodes. cij This is Max-Flow Problem for multiple-sources and multiple-sinks Operations Research Methods 10

Multiple-sources multiple-links problem can be converted to a single-source and single-sink problem by Introducing a dummy source node that is connected to the original source nodes with infinite capacity links Introducing a dummy sink node that is connected with the original sink nodes with infinite capacity links Operations Research Methods 11