spring 2015 mathematics in management science network problems networks & trees minimum networks...

18
Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Upload: maryann-simpson

Post on 13-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Spring 2015Mathematics in

Management Science

Network Problems

Networks & TreesMinimum NetworksSpanning TreesMinimum Spanning Trees

Page 2: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

TreesA tree is a connected graph with no circuits.

A graph is a tree if and only if there is a

unique path connecting any two vertices.

Page 3: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Networks & Trees

A network is a connected graph.

A tree is a network which contains no circuits.

Given a network, we’ll search for subgraphs which are

spanning trees.

Page 4: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Trees & Spanning Trees

A tree is a network (a connected graph) which contains no circuits.

We’ll look for subgraphs of a given network which are trees.

Such a tree which contains all of the vertices of original network is called a spanning tree.

Page 5: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Spanning Trees

A spanning tree of a graph:• is a subgraph (uses only edges &

vertices of the original graph)• is a tree (no loops)• includes all original vtxs (it spans)

Page 6: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Spanning Trees

The network in (a) has 8 edges, 5 of which are bridges.

There are 3 different spanning trees pictured in (b), (c), and (d).

Page 7: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Minimal Cost Spanning Trees

Of all possible spanning trees, the one with the smallest total weight is called a

minimum spanning tree.First Network Problem Given weighted network, find

a minimum spanning tree.

Page 8: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

First Network Problem

Given weighted network, find a minimum spanning tree.

Any spanning tree solves connectivity problem. However, some connections cost more than others!

Want to find a spanning tree of least cost.

Use Kruskal’s Algorithm.

Page 9: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Kruskal’s Algorithm

Add edges, in order of increasing cost, so that

• no circuits get formed• all vertices on some added edge

(when done)• connected (when done)

Page 10: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Example

Find the minimal cost spanning tree.

Page 11: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees
Page 12: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Example

Find the minimal cost spanning tree.

Page 13: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees
Page 14: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Optimality of Kruskal’s Algorithm

Kruskal’s Algorithm works for any network, is fast & greedy, and always yields an optimal solution to the Minimum Spanning Tree Problem.

In contrast, the Sorted Edges Algorithm (used to attack the Traveling Salesman Problem) does not always yield the optimal solution.

Page 15: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

How to tell when you are done?

When all vtxs included and connected.

If adding any new edge creates circuit (so all remaining edges rejected).

For n vertices, a spanning tree always has exactly (n − 1) edges.

⇒ If used (n − 1) edges and no “loops”, then must have spanning tree!

Page 16: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Example

Which would most likely play a role in solving each problem:• an Euler circuit ?• a Hamiltonian circuit ?• A spanning tree ?

A Brazilian company needs to run telephone cable to a remote villages in the Amazon. How should it do this in order to use the least amount of cable?

Page 17: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Example

Which would most likely play a role in solving each problem:• an Euler circuit ?• a Hamiltonian circuit ?• A spanning tree ?

A limousine company needs to take a businessmen around to visit several potential development sites. What route will minimize the driving distance?

Page 18: Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees

Example

Which would most likely play a role in solving each problem:• an Euler circuit ?• a Hamiltonian circuit ?• A spanning tree ?

A candidate in upcoming election wants to deliver campaign literature to each house in her ward. How can she lay out her route as efficiently as possible?