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

Slides:



Advertisements
Similar presentations
Chapter 2: Business Efficiency Lesson Plan
Advertisements

Great Theoretical Ideas in Computer Science for Some.
Great Theoretical Ideas in Computer Science.
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:
Minimum Spanning Trees CIS 606 Spring Problem A town has a set of houses and a set of roads. A road connects 2 and only 2 houses. A road connecting.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
The Mathematics of Networks Chapter 7. Trees A tree is a graph that –Is connected –Has no circuits Tree.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
1 Minimum Spanning Trees Longin Jan Latecki Temple University based on slides by David Matuszek, UPenn, Rose Hoberman, CMU, Bing Liu, U. of Illinois, Boting.
Minimum Spanning Tree in Graph - Week Problem: Laying Telephone Wire Central office.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Graph Algorithms: Minimum.
1 GRAPHS - ADVANCED APPLICATIONS Minimim Spanning Trees Shortest Path Transitive Closure.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
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.
Spring 2015 Mathematics in Management Science Chinese Postman Problem What is CPP? CPP & ECs & EPs Fleury’s Algorithm Eulerization.
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.
Aim: Graph Theory - Trees Course: Math Literacy Do Now: Aim: What’s a tree?
Spring 2015 Mathematics in Management Science Traveling Salesman Problem Approximate solutions for TSP NNA, RNN, SEA Greedy Heuristic Algorithms.
Chapter 2: Business Efficiency Lesson Plan
Minimum Spanning Trees Prof. Sin-Min Lee Dept. of Computer Science, San Jose State University.
Graph Traversal BFS & DFS. Review of tree traversal methods Pre-order traversal In-order traversal Post-order traversal Level traversal a bc d e f g hi.
Minimum Spanning Trees CS 146 Prof. Sin-Min Lee Regina Wang.
Lecture19: Graph III Bohyung Han CSE, POSTECH CSED233: Data Structures (2014F)
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Mathematics in Management Science
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Union-Find  Application in Kruskal’s Algorithm  Optimizing Union and Find Methods.
Graphs. Graphs Similar to the graphs you’ve known since the 5 th grade: line graphs, bar graphs, etc., but more general. Those mathematical graphs are.
Spanning Tree Algorithms William T. Trotter and Mitchel T. Keller Math 3012 – Applied Combinatorics Spring 2009.
Graph Theory Trees. WHAT YOU WILL LEARN Trees, spanning trees, and minimum-cost spanning trees.
Prims Algorithm for finding a minimum spanning tree
1) Find and label the degree of each vertex in the graph.
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.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Graph Search Applications, Minimum Spanning Tree
Graphs Chapter 20.
Minimum Spanning Trees
Great Theoretical Ideas in Computer Science
Chapter 2: Business Efficiency Lesson Plan
CS120 Graphs.
Chapter 2: Business Efficiency Lesson Plan
Spanning Trees Discrete Mathematics.
Graph Algorithm.
Can you draw this picture without lifting up your pen/pencil?
Minimum Spanning Tree.
Minimum Spanning Trees
Connected Components Minimum Spanning Tree
Minimum Spanning Tree.
Graphs Chapter 13.
Chapter 2: Business Efficiency Business Efficiency
Spanning Trees.
4-4 Graph Theory Trees.
Minimum Spanning Trees
Kruskal’s Algorithm for finding a minimum spanning tree
A path that uses every vertex of the graph exactly once.
CSE 373: Data Structures and Algorithms
Minimum spanning trees
Warm Up – Tuesday Find the critical times for each vertex.
7 The Mathematics of Networks
Presentation transcript:

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

Recap Have looked at apps where need to efficiently: traverse collection of edges (Euler circuits) visit specific points (Hamiltonian circuits) Next study routing epitomized by wiring problems (electrical, phone, network, etc.) as well as plumbing and even “phone trees”.

Network Routing Next study routing epitomized by wiring problems (electrical, phone, network, etc.) as well as plumbing and even “phone trees”. Here want “connections” between every pair of vertices, but do not need direct connections—indirect is fine; to go from A to B ok to go via C,D,…).

Internet Example To your friend, do not need a wire directly connecting your device to theirs—your communication can be routed. Cost to route traffic is minimal, but physical connections are expensive. So, want to minimize # of physical connections, keeping everyone connected to everyone else.

Other Examples Electrical wiring. Water supply. These are examples of distribution systems: do not need direct connection from source to every location. (In wiring these direct connections are called “home runs”.) In all these examples need a spanning tree.

Data Lines Example Must install new data lines connecting the buildings on a university campus. All buildings must connect to network, but not necessarily to each other. Want to do this efficiently; that is, with minimum cost.

Graph Model Construct a graph with the properties: one vertex for each building an edge links two buildings if it is possible to install a line between them add weights to each edge for the cost of laying this line

Example: 12 bldgs and costs of laying lines between them

Kruskal’s Algorithm Use the edges, in order of increasing cost, so that all vertices on some added edge (when done) no circuits get formed connected (when done)

Example

Example

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.

Trees?

Trees?

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.

Tree Equivalences These are equivalent notions: There is a unique path between each pair of vertices in G. Every edge of G is a bridge. G is a network and # of edges = # vtxs -1. G is a tree.

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.

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)

Examples of Spanning Trees Two different spanning trees (green) for the same graph:

Spanning Trees A spanning tree gives minimal connectivity: Adding any edge will create a circuit (introducing redundancy). Removing any edge will destroy the connectivity.

Why want Spanning Trees? Since spanning, it includes all vertices. Since connected, can get from any vtx A to any other vtx B. No circuits (part of being a tree) means no duplicate paths (only one way to get from A to B), so no excess cost.

Examples of subgraphs (blue wiggly lines) of graph (a)

(b) is a tree but not spanning; (c) not a tree- --it is disconnected; (d) not a tree---contains a circuit; (e) is the only spanning tree

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.

Example of an MST

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.

Kruskal’s Algorithm Use the edges, in order of increasing cost, so that no circuits get formed all vertices on some added edge (when done) connected (when done)

Example Example Apply KA to wtd graph blo

Application of Kruskal’s Algorithm

Optimality of Kruskal’s Algorithm Optimality of Kruskal’s Algorithm Kruskal’s Algorithm always yields an optimal solution to the Minimum Spanning Tree Problem. In contrast, the similar Sorted Edges Algorithm (used to attack the Traveling Salesman Problem) does not always yield the optimal solution.

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