Math for Liberal Studies.  A cable company wants to set up a small network in the local area  This graph shows the cost of connecting each pair of cities.

Slides:



Advertisements
Similar presentations
Decision Maths Networks Kruskals Algorithm Wiltshire Networks A Network is a weighted graph, which just means there is a number associated with each.
Advertisements

Math for Liberal Studies. This graph does not have an Euler circuit. This graph does have an Euler circuit.
Chen, Lu Mentor: Zhou, Jian Shanghai University, School of Management Chen213.shu.edu.cn.
10.4 Spanning Trees. Def Def: Let G be a simple graph. A spanning tree of G is a subgraph of G that is a tree containing every vertex of G See handout.
Minimum Spanning Tree CSE 331 Section 2 James Daly.
Prim’s Algorithm from a matrix A cable TV company is installing a system of cables to connect all the towns in the region. The numbers in the network are.
7.3 Kruskal’s Algorithm. Kruskal’s Algorithm was developed by JOSEPH KRUSKAL.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
What is the next line of the proof? a). Let G be a graph with k vertices. b). Assume the theorem holds for all graphs with k+1 vertices. c). Let G be a.
Minimum-Cost Spanning Tree weighted connected undirected graph spanning tree cost of spanning tree is sum of edge costs find spanning tree that has minimum.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
3/29/05Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 4.2 Minimal Spanning Trees Prepared by Amanda Dargie and Michele Fretta.
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
Minimum Spanning Trees
Minimum Spanning Tree Algorithms. What is A Spanning Tree? u v b a c d e f Given a connected, undirected graph G=(V,E), a spanning tree of that graph.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Minimum Spanning Tree Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Minimal Spanning Trees What is a minimal spanning tree (MST) and how to find one.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
COSC 2007 Data Structures II Chapter 14 Graphs III.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.4 Trees.
Minimum Spanning Trees Prof. Sin-Min Lee Dept. of Computer Science, San Jose State University.
Fundamental Data Structures and Algorithms (Spring ’05) Recitation Notes: Graphs Slides prepared by Uri Dekel, Based on recitation.
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Graph Theory Trees. WHAT YOU WILL LEARN Trees, spanning trees, and minimum-cost spanning trees.
Trees Dr. Yasir Ali. A graph is called a tree if, and only if, it is circuit-free and connected. A graph is called a forest if, and only if, it is circuit-free.
Prims Algorithm for finding a minimum spanning tree
Tree Diagrams A tree is a connected graph in which every edge is a bridge. There can NEVER be a circuit in a tree diagram!
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Unit 2 Hamiltonian Circuits. Hamiltonian Circuit: A tour that starts at a vertex of a graph and visits each vertex once and only once, returning to where.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
CSE 373: Data Structures and Algorithms Lecture 21: Graphs V 1.
Shortest Path Problems
Shortest Paths and Minimum Spanning Trees
Minimum Spanning Tree Chapter 13.6.
Chapter 2: Business Efficiency Lesson Plan
Minimum Spanning Trees
Chapter 2: Business Efficiency Lesson Plan
Spanning Trees Discrete Mathematics.
Minimum-Cost Spanning Tree
Minimum Spanning Tree.
Minimum Spanning Tree.
CSE 373 Data Structures and Algorithms
Section 14.4 Trees.
Chapter 2: Business Efficiency Business Efficiency
Minimum-Cost Spanning Tree
4-4 Graph Theory Trees.
Kruskal’s Algorithm for finding a minimum spanning tree
Warm Up – Friday.
Minimum-Cost Spanning Tree
A path that uses every vertex of the graph exactly once.
Minimum spanning trees
Shortest Paths and Minimum Spanning Trees
Minimum spanning trees
Minimum spanning trees
Networks Kruskal’s Algorithm
CSE 373: Data Structures and Algorithms
Minimum Spanning Trees (MSTs)
Section 13.4 Trees.
Minimum-Cost Spanning Tree
Presentation transcript:

Math for Liberal Studies

 A cable company wants to set up a small network in the local area  This graph shows the cost of connecting each pair of cities

 However, we don’t need all of these connections to make sure that each city is connected to the network

 For example, if we only build these connections, we can still send a signal along the network from any city to any other  The problem is to find the cheapest way to do this

 We don’t need all three of these edges to make sure that these three cities are connected  We can omit any one of these from our network and everything is still connected

 In fact, if we ever have a circuit in our network…

 … we can delete any one of the edges in the circuit and we would still be able to get from any vertex in the circuit to any other

 But if we delete two of these edges, we don’t have a connected network any longer

 The solution we are looking for is called a minimum spanning tree  minimum: lowest total cost  spanning: connects all of the vertices to each other through the network  tree: no circuits

 Named for Joseph Kruskal ( )  Another heuristic algorithm  Basic idea: Use cheap edges before expensive ones  Guaranteed to find the minimum spanning tree

 Start with none of the edges being part of the solution  Then add edges one at a time, starting with the cheapest edge…  …but don’t add an edge if it would create a circuit  Keep adding edges until every vertex is connected to the network

 We start with none of the edges included in our network

 The cheapest edge is Carlisle to Harrisburg

 Next is Shippensburg to Hagerstown  Notice that the edges we add don’t have to be connected (yet)

 Next is Carlisle to York  Notice that now every city is connected to some other city, but we still don’t have one connected network

 Next is Harrisburg to York  Adding this edge would create a circuit, so we leave it out and move on

 The next cheapest edge is Shippensburg to Carlisle

 At this point we have connected all of our vertices to our network, so we stop

 As another example, consider this graph

 Kruskal’s algorithm easily gives us the minimum spanning tree for this graph

 This tree has a cost of 21

 Is this the cheapest way to connect all three cities to a network?

 Perhaps there is a fourth point in the center that we could use to get a lower total

 If the numbers represent distance (rather than cost, which can vary in other ways), then the point that yields the minimum total distance is called the geometric median

 In this case, the geometric median gives a total distance of approximately 20.6, which is slightly lower than the result from Kruskal’s algorithm