7 The Mathematics of Networks

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

Lecture 15. Graph Algorithms
Networks Prim’s Algorithm
Minimum Spanning Tree Sarah Brubaker Tuesday 4/22/8.
1 Discrete Structures & Algorithms Graphs and Trees: III EECE 320.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
7.3 Kruskal’s Algorithm. Kruskal’s Algorithm was developed by JOSEPH KRUSKAL.
The Mathematics of Networks
The Mathematics of Networks Chapter 7. Trees A tree is a graph that –Is connected –Has no circuits Tree.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
Midwestern State University Minimum Spanning Trees Definition of MST Generic MST algorithm Kruskal's algorithm Prim's algorithm 1.
Copyright © Cengage Learning. All rights reserved.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Chapter 2 Graph Algorithms.
BCT 2083 DISCRETE STRUCTURE AND APPLICATIONS
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
Dijkstra’s Algorithm. Announcements Assignment #2 Due Tonight Exams Graded Assignment #3 Posted.
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?
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.
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Graph Theory Trees. WHAT YOU WILL LEARN Trees, spanning trees, and minimum-cost spanning trees.
Prims Algorithm for finding a minimum spanning tree
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.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Trees.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Minimum Spanning Tree Chapter 13.6.
Network Simplex Animations
Kruskal’s Algorithm Elaicca Ronna Ordoña. A cable company want to connect five villages to their network which currently extends to the market town of.
Chapter 2: Business Efficiency Lesson Plan
Chapter 2: Business Efficiency Lesson Plan
CSCE350 Algorithms and Data Structure
Spanning Trees.
Minimum Spanning Tree.
Minimum Spanning Tree.
Minimum Spanning Trees
Section 14.4 Trees.
4-4 Graph Theory Trees.
Kruskal’s Algorithm for finding a minimum spanning tree
Graphs.
Warm Up – Friday.
5 The Mathematics of Getting Around
Example A cable company want to connect five villages to their network which currently extends to the market town of Avonford. What is the minimum.
Minimum spanning trees
Graph Searching.
Warm Up – Wednesday.
Minimum spanning trees
Minimum spanning trees
Networks Kruskal’s Algorithm
5 The Mathematics of Getting Around
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Networks Prim’s Algorithm
Minimum Spanning Trees (MSTs)
Warm Up – Tuesday Find the critical times for each vertex.
Kruskal’s Algorithm AQR.
Section 13.4 Trees.
Closures of Relations Epp, section 10.1,10.2 CS 202.
5 The Mathematics of Getting Around
Presentation transcript:

7 The Mathematics of Networks 7.1 Trees 7.2 Spanning Trees 7.3 Kruskal’s Algorithm 7.4 The Shortest Network Connecting Three Points 7.5 Shortest Networks for Four or More Points

Reformulate Property 3 to . . . ■ If a network has N vertices and M edges, then M ≥ N – 1. [For convenience, we will refer to the difference R = M – (N – 1) as the redundancy of the network.] ■ If M = N – 1, the network is a tree; if M > N – 1, the network has circuits and is not a tree. (In other words, a tree is a network with zero redundancy, and a network with positive redundancy is not a tree.)

Spanning Trees In the case of a network with positive redundancy, there are many trees within the network that connect its vertices–these are the spanning trees of the network.

Example 7.4 Counting Spanning Trees The network in the figure has N = 8 vertices and M = 8 edges. The redundancy of the network is R = M – (N – 1) = 1, so to find a spanning tree we will have to “discard” one edge.

Example 7.4 Counting Spanning Trees Five of these edges are bridges of the network, and they will have to be part of any spanning tree. The other three edges (BC, CG, and GB) form a circuit of length 3, and if we exclude any one of the three edges, then we will have a spanning tree.

Example 7.4 Counting Spanning Trees Thus, the network has three different spanning trees.

Example 7.4 Counting Spanning Trees The network in the Figure has M = 9 edges and N = 8 vertices. The redundancy of the network is R = 2, so to find a spanning tree we will have to “discard” two edges. Edges AB and AH are bridges of the network, so they will have to be part of any spanning tree.

Example 7.4 Counting Spanning Trees The other seven edges are split into two separate circuits (B, C, G, B of length 3 and C, D, E, F, C of length 4). A spanning tree can be found by “busting” each of the two circuits. This means excluding any one of the three edges of circuit B, C, G, B and any one of the four edges of circuit C, D, E, F, C.

Example 7.4 Counting Spanning Trees For example, if we exclude BC and CD, we get the spanning tree shown.

Example 7.4 Counting Spanning Trees We could also exclude BC and DE and get the spanning tree shown.

Example 7.4 Counting Spanning Trees Given that there are 3  4 = 12 different ways to choose an edge from the circuit of length 3 and an edge from the circuit of length 4, there are 12 spanning trees. We have already shown two, here’s one more.

Example 7.5 Counting Spanning Trees This network has M = 9 edges and N = 8 vertices. Here the circuits B, C, G, B and C, D, E, G, C share a common edge CG. Determining which pairs of edges can be excluded in this case is a bit more complicated.

Example 7.6 Minimum Spanning Trees This example builds on the ideas introduced in Example 7.2. The network shown in is the same network as Example 7.2 now with weights added to the edges.

Example 7.6 Minimum Spanning Trees Vertices represent computer labs, and edges are potential Ethernet connections. The weights represent the cost in K’s (1K = $1000) of installing the Ethernet connections.

Example 7.6 Minimum Spanning Trees Using the terminology we introduced in this section, the weighted network has a redundancy of R = 3 (the network has M = 14 vertices and N = 12 edges).

Example 7.6 Minimum Spanning Trees The network has many possible spanning trees, and our job is to find one with least weight, that is, a minimum spanning tree (MST) for the network. We know that we can find a spanning tree by excluding certain edges of the network (those that close circuits) from the spanning tree and that there are many different ways in which this can be done. Given that the edges now have weights, a reasonable strategy for sorting through the options would be to always try to exclude from the network the most expensive edges.

Example 7.6 Minimum Spanning Trees To illustrate the point, let’s look at circuit B, C, D, E, B on the left side of the network. It makes sense to exclude CD (which costs $95,000 to build).

Example 7.6 Minimum Spanning Trees Likewise, on the right side of the network we have a configuration of two circuits K, H, I, K and K, J, I, K that share the common edge KI.

Example 7.6 Minimum Spanning Trees We exclude the two most expensive edges from these two circuits (KJ and KI).

Example 7.6 Minimum Spanning Trees At this point, all the circuits of the original network are “busted,” and we end up with the red spanning tree shown.

Minimum Spanning Trees Is the red spanning tree obtained in Example 7.6 the MST of the original network? We would like to think it is, but how can we be sure, especially after the lessons learned in Chapter 6? And even if it is, what assurances do we have that our simple strategy will work in more complicated graphs? These are the questions we will answer next.