Tree Diagrams A tree is a connected graph in which every edge is a bridge. There can NEVER be a circuit in a tree diagram!

Slides:



Advertisements
Similar presentations
Lecture 15. Graph Algorithms
Advertisements

Math for Liberal Studies.  A cable company wants to set up a small network in the local area  This graph shows the cost of connecting each pair of cities.
Every edge is in a red ellipse (the bags). The bags are connected in a tree. The bags an original vertex is part of are connected.
10.4 Spanning Trees. Def Def: Let G be a simple graph. A spanning tree of G is a subgraph of G that is a tree containing every vertex of G See handout.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
Minimum cost spanning tree and activity networks Data structure 2002/12/2.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 15, Friday, October 3.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
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.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
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.
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.
ECE 250 Algorithms and Data Structures Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo,
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
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.
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.
Minimum-Cost Spanning Tree CS 110: Data Structures and Algorithms First Semester,
V Spanning Trees Spanning Trees v Minimum Spanning Trees Minimum Spanning Trees v Kruskal’s Algorithm v Example Example v Planar Graphs Planar Graphs v.
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.
Union-Find  Application in Kruskal’s Algorithm  Optimizing Union and Find Methods.
AND.
Chapter 6: Graphs 6.1 Euler Circuits
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.
Walks, Paths and Circuits. A graph is a connected graph if it is possible to travel from one vertex to any other vertex by moving along successive edges.
CSC2100B Tutorial 10 Graph Jianye Hao.
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.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
AS Decision Maths Tips for each Topic. Kruskal and Prim What examiner’s are looking for A table of values in the order that they are added and the total.
Graph Search Applications, Minimum Spanning Tree
Minimum-cost spanning tree
Minimum-Cost Spanning Tree and Kruskal’s Algorithm
Minimum Spanning Trees
Minimum Spanning Tree Chapter 13.6.
Topological Sort (topological order)
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
This unit is all about Puzzles Games Strategy.
Quiz Review.
Section 14.4 Trees.
4-4 Graph Theory Trees.
Kruskal’s Algorithm for finding a minimum spanning tree
Warm Up – Friday.
A path that uses every vertex of the graph exactly once.
Warm Up – Wednesday.
CSCI2100 Data Structures Tutorial
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Weighted Graphs & Shortest Paths
Minimum Spanning Trees (MSTs)
Warm Up – Tuesday Find the critical times for each vertex.
Section 13.4 Trees.
Warm Up – Monday Calculate the Redundancy of the above network.
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Presentation transcript:

Tree Diagrams

A tree is a connected graph in which every edge is a bridge. There can NEVER be a circuit in a tree diagram!

Spanning Trees A spanning tree is created from another graph by removing edges while still maintaining a path to each vertex. There are many different spanning trees for most graphs.

Examples Below are two more examples of spanning trees for the same graph.

Try this. In your notes, create two different spanning trees for the following graph. Start drawing edges that connect the vertices. Remember to AVOID making a circuit.

Minimum-Cost Spanning Trees = = = 31 This is the minimum cost spanning tree. The minimum cost is 26.

How to find the minimum cost spanning tree. 1.Select the lowest-cost edge on the graph. 2.Select the next lowest-cost edge that does not form a circuit with the first edge. 3.Select the next lowest-cost edge that does not form a circuit with the previously selected edges. 4.Continue selecting the lowest-cost edges that do not form circuits with previously selected edges. 5.Once you have reached every vertex, you have the minimum cost spanning tree.

Example Find the minimum-cost spanning tree using Kruskal’s Algorithm The lowest cost edge has cost 5. The next lowest cost edge has cost 7. The next lowest cost edge has cost 9. The next lowest cost edge has cost 10. The next lowest cost edge has cost 12. We can’t use this edge, because it would form a circuit. The next lowest cost edge has cost 13. We can’t use this edge, because it would form a circuit. The next lowest cost edge has cost 14. We can’t use this edge, because it would form a circuit. The next lowest cost edge has cost 15. We can’t use this edge, because it would form a circuit. The next lowest cost edge has cost 18. The next lowest cost edge has cost 20. The edges that cost 21 and 22 should never be considered. They cost too much. This is the minimum cost spanning tree. The total cost is = 69

Try this. In your notes, use the space provided to find the minimum-cost spanning tree for the following graph using Kruskal’s Algorithm.

Example Each tree diagram can be made to look like the familiar family tree by simply moving the vertices around.