The Minimum Connector Problem: Finding the shortest way to link all the vertices in a graph. Method: Find a minimum spanning tree An example would be joining.

Slides:



Advertisements
Similar presentations
Graph Theory Arnold Mesa. Basic Concepts n A graph G = (V,E) is defined by a set of vertices and edges v3 v1 v2Vertex (v1) Edge (e1) A Graph with 3 vertices.
Advertisements

Networks Prim’s Algorithm
O(N 1.5 ) divide-and-conquer technique for Minimum Spanning Tree problem Step 1: Divide the graph into  N sub-graph by clustering. Step 2: Solve each.
Minimum Spanning Trees (MSTs) Prim's Algorithm For each vertex not in the tree, keep track of the lowest cost edge that would connect it to the tree This.
Discrete Maths Chapter 3: Minimum Connector Problems Lesson 1: Prim’s and Kruskal.
Graphs Chapter 12. Chapter Objectives  To become familiar with graph terminology and the different types of graphs  To study a Graph ADT and different.
MINIMAL CONNECTOR PROBLEMS Problem: A cable TV company is installing a system of cables to connect all the towns in a region. The numbers in the network.
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.
Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network using the lowest possible.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
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.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Spring 2010CS 2251 Graphs Chapter 10. Spring 2010CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Fall 2007CS 2251 Graphs Chapter 12. Fall 2007CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs To.
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
Chapter 9: Graphs Spanning Trees Mark Allen Weiss: Data Structures and Algorithm Analysis in Java Lydia Sinapova, Simpson College.
The Travelling Salesman Algorithm A Salesman has to visit lots of different stores and return to the starting base On a graph this means visiting every.
Minimum Spanning Trees. Subgraph A graph G is a subgraph of graph H if –The vertices of G are a subset of the vertices of H, and –The edges of G are a.
Minimum Spanning Tree Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
Graph Dr. Bernard Chen Ph.D. University of Central Arkansas.
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
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.
The travelling Salesman problem involves visiting every town (node) on a graph and returning to the start in the shortest distance. The slides will show.
Dear teacher, We wanted to apologize for the technical issues that EDpuzzle has experienced today. We have teachers in our team and understand how frustrating.
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
Fundamental Data Structures and Algorithms (Spring ’05) Recitation Notes: Graphs Slides prepared by Uri Dekel, Based on recitation.
Introduction to Graph Theory
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
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.
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.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
CSC2100B Tutorial 10 Graph Jianye Hao.
CSCI2100 Data Structures Tutorial 12
Minimum- Spanning Trees
Minimum Spanning tree Prim’s algorithm 1.Select any vertex 2.Select the shortest edge connected to that vertex 3.Select the shortest edge which connects.
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.
Main Index Contents 11 Main Index Contents Graph Categories Graph Categories Example of Digraph Example of Digraph Connectedness of Digraph Connectedness.
DECISION 1. How do you do a Bubble Sort? Bubble Sort:  You compare adjacent items in a list;  If they are in order, leave them.  If they are not in.
MATRIX FORM OF PRIM’S ALGORITHM. This network may be described using a Distance Matrix.
The travelling salesman problem Finding an upper bound using minimum spanning trees Find a minimum spanning tree using Prim’s algorithm or Kruskal’s algorithm.
Networks Teacher’s guide. Networks 2 Problem 1 – the Link The EMTV Company needs to install a new cable system that links the six major towns in its.
Lower bound algorithm. 1 Start from A. Delete vertex A and all edges meeting at A. A B C D 4 5 E Find the length of the minimum spanning.
Minimum Spanning Trees
Minimum Spanning Tree Chapter 13.6.
Graph Algorithm.
Minimum Spanning Tree.
Minimum Spanning Trees
Connected Components Minimum Spanning Tree
Shortest Path.
Kruskal’s Algorithm for finding a minimum spanning tree
Minimum spanning trees
Discrete Math 2 Shortest Paths Using Matrix
Minimum spanning trees
CSCI2100 Data Structures Tutorial
Minimum spanning trees
Discrete Math 2 Shortest Path Using Matrix
Minimum Spanning Tree.
Minimum Spanning tree Select any vertex
Weighted Graphs & Shortest Paths
Chapter 16 1 – Graphs Graph Categories Strong Components
Networks Prim’s Algorithm
Minimum spanning trees
Minimum Spanning Trees (MSTs)
Prim’s algorithm for minimum spanning trees
Chapter 9: Graphs Spanning Trees
Presentation transcript:

The Minimum Connector Problem: Finding the shortest way to link all the vertices in a graph. Method: Find a minimum spanning tree An example would be joining up several towns with an oil pipeline. Each town does not have to be joined to every other but they all have to be joined into the pipe line.

NorwichYarmouthLowestoftBeccles Norwich Yarmouth Lowestoft Beccles Using Prim`s Algorithm if the data is in a chart/matrix Find the minimum length of telephone cable required to join up the exchanges in the towns.

Choose any column vertex and delete the row corresponding to this vertex Circle the chosen vertex i.e. choose Yarmouth column - delete Yarmouth row NorwichYarmouthLowestoftBeccles Norwich Yarmouth Lowestoft Beccles

Ring the smallest entry in the column corresponding to this vertex i.e. 8 mls to Lowestoft in the Yarmouth column. Ring it. Delete the Lowestoft row and circle the Lowestoft column. NorwichYarmouthLowestoftBeccles Norwich Yarmouth Lowestoft Beccles Y 8 L

Look for the smallest entry in the columns corresponding to these 2 vertices i.e. the Yarmouth and Lowestoft column 10 is the smallest in the Beccles row. Ring it. Delete the Beccles row and circle the Beccles column. NorwichYarmouthLowestoftBeccles Norwich Yarmouth Lowestoft Beccles Y B 8 L Y 8 L

Look for the smallest entry in the columns corresponding to these 3 vertices i.e. the Yarmouth, Lowestoft and Beccles column. 15 is the smallest in the Norwich row. Ring it NorwichYarmouthLowestoftBeccles Norwich Yarmouth Lowestoft Beccles Y B 8 L Y 15 B 10 8 L N The minimum length of cable = 33mls