Excursions in Modern Mathematics, 7e: 7.5 - 2Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.

Slides:



Advertisements
Similar presentations
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Scheduling with Independent Tasks Notes 9 – Section 8.7.
Advertisements

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 15 Chances, Probabilities, and Odds 15.1Random Experiments and.
The Shortest Network Connecting 3 Points
Error Measurement and Iterative Methods
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 16 Mathematics of Normal Distributions 16.1Approximately Normal.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
7.3 Kruskal’s Algorithm. Kruskal’s Algorithm was developed by JOSEPH KRUSKAL.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
The Mathematics of Networks
Network Flow Models Chapter 7.
Comparing Fractions © Math As A Second Language All Rights Reserved next #6T Taking the Fear out of Math
11/5/2003Probability and Statistics for Teachers, Math 507, Lecture 10 1 UNIFORM AND EXPONENTIAL RANDOM VARIABLES Sections
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
Chapter 2 Section 5 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Maths in Nature By Keith Ball.
Copyright © Cengage Learning. All rights reserved.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
Copyright © Cengage Learning. All rights reserved.
7-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 10 The Mathematics of Money 10.1Percentages 10.2Simple Interest.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Introduction to Operations Research
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
(C) 2010 Pearson Education, Inc. All rights reserved. Java How to Program, 8/e.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
Dijkstra’s Algorithm. Announcements Assignment #2 Due Tonight Exams Graded Assignment #3 Posted.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Multiplying Signed Numbers © Math As A Second Language All Rights Reserved next #9 Taking the Fear out of Math ×
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.4 Trees.
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 10 By Herbert I. Gross and Richard A. Medeiros next.
1 Efficient Obstacle-Avoiding Rectilinear Steiner Tree Construction Chung-Wei Lin, Szu-Yu Chen, Chi-Feng Li, Yao-Wen Chang, Chia-Lin Yang National Taiwan.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 9 The Mathematics of Spiral Growth 9.1Fibonacci’s Rabbits 9.2Fibonacci.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 9 The Mathematics of Spiral Growth 9.1Fibonacci’s Rabbits 9.2Fibonacci.
© 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.
AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………..
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
Chapter 9 Finding the Optimum 9.1 Finding the Best Tree.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Sight Words.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 16 Mathematics of Normal Distributions 16.1Approximately Normal.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Bushy Binary Search Tree from Ordered List. Behavior of the Algorithm Binary Search Tree Recall that tree_search is based closely on binary search. If.
"Curious and Interesting Triangles" or What makes a "nice" puzzle?
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 16 Mathematics of Normal Distributions 16.1Approximately Normal.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
7-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 11.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
1 Copyright © 2014, 2012, 2009 Pearson Education, Inc. Chapter 9 Understanding Randomness.
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.
How Many Ways Can 945 Be Written as the Difference of Squares?
Section 14.4 Trees.
Copyright © Cengage Learning. All rights reserved.
5 The Mathematics of Getting Around
Chapter 6 Network Flow Models.
Copyright © Cengage Learning. All rights reserved.
The Pigeonhole Principle
7 The Mathematics of Networks
Presentation transcript:

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s Algorithm 7.4The Shortest Network Connecting Three Points 7.5Shortest Networks for Four or More Points

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Minimum spanning trees represent the optimal way to connect a set of points based on one key assumption–that all the connections should be along the links of the network. But what if, in a manner of speaking, we don’t have to follow the road? What if we are free to create new vertices and links “outside” the original network? To clarify the distinction, let’s look at a new type of cable network problem. Shortest Networks for Four Points

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Imagine four cities (A, B, C, and D) that need to be connected by an underground fiber- optic cable network. Suppose that the cities sit on the vertices of a square 500 miles on Example 7.11Four-City Networks each side, as shown. What does the optimal network connecting these cities look like? It depends on the situation.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. If we don’t want to create any interior junction points in the network (either because we don’t want to venture off the prescribed paths–as in the jungle scenario–or because the cost of Example 7.11Four-City Networks creating a new junction is too high), then the answer is a minimum spanning tree, such as the one shown. The length of the MST is 1500 miles.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. On the other hand, if interior junction points are allowed, somewhat shorter networks are possible. One obvious improvement is the network shown, with an X-junction located Example 7.11Four-City Networks at O, the center of the square. The length of this network is approximately 1414 miles.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. We can shorten the network even more if we place not one but two interior junction points inside the square. It’s not immediately obvious that this is a good move, but once we recognize that two junction points might be better than one, then it’s not hard to see that the best option is to make the two interior junction points Steiner points. There are two different networks possible with two Steiner points inside the square, and they are shown on the next slide. Example 7.11Four-City Networks

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. These two networks are essentially equal (one is a rotated version of the other) and clearly have the same length–approximately 1366 miles. It is impossible to shorten these any further– Example 7.11Four-City Networks the two networks are the shortest networks connecting the four cities.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Let’s repeat what we did in Example 7.11, but this time imagine that the four cities are located at the vertices of a rectangle, as shown. Example 7.12Four-City Networks: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. By now, we have some experience on our side, so we can cut to the chase. We know that the MST is 1000 miles long. That’s the easy part. Example 7.12Four-City Networks: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. For the shortest network, an obvious candidate would be a network with two interior Steiner junction points. There are two such networks shown. Example 7.12Four-City Networks: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The length of the network on the left is approximately 993 miles, while the length of the network on the right is approximately 920 miles–a pretty significant difference. Example 7.12Four-City Networks: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. It is obvious that the network on the left cannot be the shortest network. If there is any justice, then the network on the right fits the pattern and ought to be the shortest. In fact, it is! Example 7.12Four-City Networks: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Let’s look at four cities once more. This time, imagine that the cities are located at the vertices of a skinny trapezoid, as shown. Example 7.12Four-City Networks: Part 3 The minimum spanning tree is also shown and it is 600 miles long.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. What about the shortest network? We are fairly certain that we should be looking for a network with a couple of interior Steiner junction points. After a little trial and error, however, we realize that such a layout is impossible! The trapezoid is too skinny, or, to put it in a more formal way, the angles at A and B are greater than 120º. Since no Steiner points can be placed inside the trapezoid, the shortest network, whatever it is, will have to be one without Steiner junction points. Example 7.12Four-City Networks: Part 3

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. If not Steiner junction points, then how about other kinds of interior junction points? How about X-junctions, or T-junctions, or Example 7.12Four-City Networks: Part 3 Y-junctions where the angles are not all 120º? As reasonable as this sounds, the only possible interior junction points in a shortest network are Steiner points.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In the shortest network the interior junction points are all Steiner points. THE INTERIOR JUNCTION RULE FOR SHORTEST NETWORKS

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The interior junction rule is an important and a powerful piece of information in building shortest networks, and we will come back to it soon. Meanwhile, what does it tell us about the situation of Example 7.13? It tells us that the shortest network cannot have any interior junction points. Steiner junction points are impossible because of the geometry; other types of junction points do not work because of the interior junction rule. Shortest Networks

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. But we also know that the shortest network without interior junction points is the minimum spanning tree! Conclusion: For the four cities of Example 7.13, the shortest network is the minimum spanning tree! Shortest Networks

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. For the last time, let’s look at four cities A, B, C, and D. This time, the cities sit as shown. Example 7.14Four-City Networks: Part 4 The MST is shown and its length is 1000 miles.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In searching for the shortest network, the MST is a good starting point–it might even be the shortest network. If the shortest network is not the MST, then it will have interior junction points, which by the interior junction rule will have to be Steiner points. Because of the layout of these cities, it is geometrically impossible to build a network with two interior Steiner points. On the other hand, there are three possible networks with a single interior Steiner point: Example 7.14Four-City Networks: Part 4

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. We have now narrowed the list of contenders for the shortest network title to four: the MST or one of the networks shown. All we have to do now to figure which one is the SN is to compute their lengths. The length of the MST is 1000 miles (we knew that!). Example 7.14Four-City Networks: Part 4

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This last network is the shortest in our list and thus the shortest network connecting, the four cities. Example 7.14Four-City Networks: Part miles miles

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. What happens when the number of cities grows–five, six, one hundred? How do we find the shortest network? Here, mathematicians face a situation analogous to the one discussed in Chapter 6–no optimal and efficient algorithm is currently known. At this point, the best we can do is to take advantage of the following rule, which we will informally call the shortest network rule. Shortest Networks

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. ■ a minimum spanning tree (no interior junction points) or ■ a Steiner tree. [A Steiner tree is a network with no circuits (i.e., a tree) such that all interior junction points are Steiner points.] THE SHORTEST NETWORK RULE The shortest network connecting a set of points is either

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 1.Make a list of all possible Steiner trees connecting the points, and find the shortest network in that list. 2.Using Kruskal’s algorithm, find the minimum spanning tree connecting the points. 3.Compare the trees found in Steps 1 and 2. The shorter of these two is the desired shortest network. Shortest Network Algorithm

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. With as few as 10 points, we might have to compute over a million possible Steiner trees; with 20 cities, the number of possible Steiner trees is in the billions. Optimal (it guarantees the shortest net- work), but inefficient (as the number of points grows, the amount of effort needed to find the solution grows too fast for the algorithm to be practical). But it is Impractical

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Settle for approximate solutions (in other words, if we are willing to accept a short network–not necessarily the shortest). Sophisticated approximate algorithms for finding short networks can tackle problems involving hundreds of points and efficiently produce short networks with lengths that are no more than 1% off the shortest network. Approximate Solutions

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Even an old workhorse like Kruskal’s algorithm can be used as a reasonably good approximate algorithm for finding short networks. For any set of points–no matter how many and how they are laid out–the MST is never that much longer than the shortest network: 13.4% longer in the worst case scenario, but usually 3% or less. Approximate Solutions