Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees."— Presentation transcript:

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

2 Trees A 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.

3 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.

4 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.

5 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)

6 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).

7 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.

8 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.

9 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)

10 Example Find the minimal cost spanning tree.

11

12 Example

13

14 Optimality of Kruskal’s Algorithm 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.

15 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!

16 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?

17 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?

18 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?


Download ppt "Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees."

Similar presentations


Ads by Google