10
Lecture 16 Network Models: Minimal Spanning Tree October 16, 2009

Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Embed Size (px)

Citation preview

Page 1: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

Network Models: Minimal Spanning Tree

October 16, 2009

Page 2: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

Outline

• Network Models

• Minimal Spanning Tree Problem - TODAY

• Shortest Route Problem

• Maximal-flow Problem

Operations Research Methods 1

Page 3: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

Bridges of Konigsberg

The city of Konigsberg in Prussia was established in 1255.

You can see the map of Prussia and the city at

http://www.rollintl.com/roll/prussia

Konigsberg was set on the banks of Pregel River, and it included two large

islands which were connected to each other and the mainland by seven

bridges. The inhabitants of the city wanted to decide whether it is possible

to follow a path that crosses each bridge exactly once and returns to thestarting point

The problem became know as the Seven Bridges of Konigsberg.

Operations Research Methods 2

Page 4: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

The Seven Bridges of Konigsberg

Operations Research Methods 3

Page 5: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

In 1736, Euler solved the problem

showing that such a path does not

exist. This solution is considered to

be the first theorem of graph theory,

specifically of planar graph theory.

Nowadays, such a “tour” is known as Eulerian circuit.

You can learn more at: http://en.wikipedia.org/wiki/Leonhard Euler

Operations Research Methods 4

Page 6: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

Network Problems

Given a set of locations and possible roads to be built between pairs of

cities with the associated costs, we need to determine the minimum cost

road network connecting all the locations.

This is Minimum Spanning Tree Problem

Note that the graph is undirected. The weights on the links are costs.

Operations Research Methods 5

Page 7: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

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

Operations Research Methods 6

Page 8: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

Given a capacitated network connecting a supply node with destination

nodes, we want to determine the maximum amount of shipment to the

destinations.

This is Max-Flow Problem

Note that the graph is directed. The weights on the links are link capacities

Operations Research Methods 7

Page 9: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

Minimum Spanning Tree ProblemWe are given a undirected graph (V, E) with the node set V and the

edge set E. We are also given weight/cost cij for each edge {i, j} ∈ E.

Determine the minimum cost spanning tree in the graph.

The problem is solved by using the Minimal Spanning Tree Algorithm.

Operations Research Methods 8

Page 10: Lecture 16 Network Models: Minimal Spanning Treeangelia/ge330fall09_spantree_l16.pdf · Operations Research Methods 5. Lecture 16 Given a road network and a starting node s, we want

Lecture 16

Minimum Spanning Tree Problem

Step 1. InitializationChoose any node in the network, say i. Let S = {i}, and let S be the

set containing all the nodes other than i. Formally, S = V \ S.

Step 2. Set S updateAmong the edges {i, j} crossing from S to S, find the edges with the

smallest cost (ties broken arbitrarily), i.e., find i ∈ S, j∗ ∈ S such that

cij∗ = mini∈S,j∈S

cij

Bring j∗ in the set S, i.e, newS = oldS ∪ {j∗}.Step 3. Termination test

If the set S contains all the nodes, stop - we are done.

Otherwise, go to Step 2.

Operations Research Methods 9