+ All Categories
Home > Documents > Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Date post: 25-Jan-2017
Category:
Upload: hatruc
View: 219 times
Download: 1 times
Share this document with a friend
12
Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem October 25, 2009
Transcript
Page 1: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

Shortest Path vs Spanning Tree

Max-Flow Problem

October 25, 2009

Page 2: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

Outline

• 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

Page 3: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

One-To-All Shortest Path Problem

in UNDIRECTED NETWORKWe are given a weighted undirected network (V, E, C) with node set

V , edge set E, and the weight set C specifying weights cij 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

Page 4: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

Solution obtained by Dijkstra’s algorithm

The tree of the shortest paths

from node 1a

aBy pure chance it happen to be the same as in the directedversion 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

Page 5: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

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

Page 6: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

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

Page 7: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

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

Page 8: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

Model Dilemma: Spanning Tree or Shortest Path

• 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

Page 9: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

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

Page 10: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

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 cij ≥ 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

Page 11: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

Max-Flow Problem: Multiple-Sources Multiple-SinksWe 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 cij ≥ 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-sinksOperations Research Methods 10

Page 12: Lecture 19 Shortest Path vs Spanning Tree Max-Flow Problem

Lecture 19

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


Recommended