Minimal Spanning Trees and Graphs

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

Great Theoretical Ideas in Computer Science for Some.
One Hull of A Rain Forest Green Computing Computer Science Neil Gordon January
1 Spanning Trees Lecture 20 CS2110 – Spring
Clustering and greedy algorithms — Part 2 Prof. Noah Snavely CS1114
Spanning Trees.
Spanning Trees. 2 Spanning trees Suppose you have a connected undirected graph Connected: every node is reachable from every other node Undirected: edges.
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.
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
MNG221 - Management Science
Minimum Spanning Tree in Graph - Week Problem: Laying Telephone Wire Central office.
Minimum Spanning Trees and Clustering By Swee-Ling Tang April 20, /20/20101.
Lecture 23. Greedy Algorithms
Representing and Using Graphs
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.
Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to.
Chapter 2: Business Efficiency Lesson Plan
Prims’ spanning tree algorithm Given: connected graph (V, E) (sets of vertices and edges) V1= {an arbitrary node of V}; E1= {}; //inv: (V1, E1) is a tree,
Minimum Spanning Trees Prof. Sin-Min Lee Dept. of Computer Science, San Jose State University.
Lecture 14: Graph Theory I Discrete Mathematical Structures: Theory and Applications.
COSC 2007 Data Structures II Chapter 14 Graphs I.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
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.
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.
TODAY WE ARE GOING TO TALK ABOUT NETWORK GRAPHS. JOURNAL WRITE DOWN: “A NETWORK CONNECTS THINGS TOGETHER” e.g. COMPUTERS MUDDY CITY - NETWORKS.
To change the sample image, select the picture and delete it. Now click the Pictures icon in the placeholder to insert your own image. Click Send to.
ENGM 631 Minimum Spanning Tree. Prototype Example Seervada Park Trams route smallest total distance Phone lines minimum spanning tree Tram limitations.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
DECEMBER 7 TH – 12 TH Newark High School.  What is your favorite app?  If you could invent ANY app, what problem would it solve?
Graphs 1 Neil Ghani University of Strathclyde. Where are we …. We studied lists: * Searching and sorting a list Then we studied trees: * Efficient search.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Shana Norman Dec 11, 2003 Final Project
Weighted Graphs and traveling Salesperson problem
Shortest Path Problems
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Algorithms Detour - Shortest Path
Lesson 76: Using Both Substitution and Elimination, Negative Vectors
Title of your science project
Great Theoretical Ideas in Computer Science
Chapter 2: Business Efficiency Lesson Plan
Network Models Chapter 12
Chapter 2: Business Efficiency Lesson Plan
Discrete Mathematics for Computer Science
CSCE350 Algorithms and Data Structure
Class Greeting.
Graph Theory.
EXPLORING COMPUTER SCIENCE Journal Entries, Portfolio Entries, And Check Your Understanding Unit 2 – Strand 2 Problem Solving This unit focuses on.
Graphs Chapter 13.
MATS Quantitative Methods Dr Huw Owens
Chapter 2: Business Efficiency Business Efficiency
Spanning Trees.
Minimum Spanning Trees
Chapter 1: Urban Services Lesson Plan
Advanced Analysis of Algorithms
Network Models 7-1.
Prepared by Lee Revere and John Large
Networks Kruskal’s Algorithm
Graph Theory I In today’s lesson we will look at:
COMPUTATIONAL THINKING COMPUTATIONAL THINKING IN PROGRAMMING
Chapter 6 Network Flow Models.
Chapter 1: Urban Services Management Science
Minimum spanning trees
Worksheet Activity: The Muddy City Problem
Chapter 1: Urban Services Lesson Plan
Chapter 35 ELECTRIC CIRCUITS.
Presentation transcript:

Minimal Spanning Trees and Graphs Exploring Computer Science – Lesson 2-7

The Muddy City Problem Once upon a time there was a city that had no roads. Getting around the city was particularly difficult after rainstorms because the ground became very muddy—cars got stuck in the mud and people got their boots dirty. The mayor of the city decided that some of the streets must be paved, but didn’t want to spend more money than necessary because the city also wanted to build a swimming pool. The mayor therefore specified two conditions: Enough streets must be paved so that it is possible for everyone to travel from their house to anyone else’s house only along paved roads, and The paving should cost as little as possible.

Layout of the City Here is the layout of the city. The number of paving stones between each house represents the cost of paving that route. Find the best route that connects all the houses, but uses as few paving stones as possible.

Minimal Spanning Trees Here’s another way to look at the same problem: Computer scientists and mathematicians often use this sort of diagram to represent these problems. They call it a graph. This may be confusing at first because “graph” is sometimes used in statistics to mean a chart displaying numerical data, such as a bar graph, but the graphs that computer scientists use are not related to these. The lengths do not have to be drawn to scale.

Minimal Spanning Trees Muddy City Problem revisited… Answer these questions in your journal The houses are represented by circles, the muddy roads by lines, and the length of a road is given by the number beside the line. Can you find out a rule to describe how many roads or connections are needed for a best solution? Does it depend on how many houses there are in the city?

What’s it all about? Suppose you are designing how a utility such as electricity, gas, or water should be delivered to a new community. A network of wires or pipes is needed to connect all the houses to the utility company. Every house needs to be connected into the network at some point, but the route taken by the utility to get to the house doesn’t really matter, just so long as a route exists. The task of designing a network with a minimal total length is called the minimal spanning tree problem.

Minimal Spanning Trees Minimal spanning trees aren’t only useful in gas and power networks; they also help us solve problems in computer networks, telephone networks, oil pipelines, and airline routes. There are efficient algorithms (methods) for solving minimal spanning tree problems. A simple method that gives an optimal solution is to start with no connections, and add them in increasing order of size, only adding connections that join up part of the network that wasn’t previously connected. This is called Kruskal’s algorithm after J.B. Kruskal, who published it in 1956. For many problems on graphs, including the “travelling salesperson problem”, computer scientists are yet to find fast enough methods that find the best possible solution.