Aim: Graph Theory - Trees Course: Math Literacy Do Now: Aim: What’s a tree?

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

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.
Discrete Maths Chapter 3: Minimum Connector Problems Lesson 1: Prim’s and Kruskal.
3.3 Spanning Trees Tucker, Applied Combinatorics, Section 3.3, by Patti Bodkin and Tamsen Hunter.
1 Section 9.4 Spanning Trees. 2 Let G be a simple graph. A spanning subtree of G is a subgraph of G containing every vertex of G –must be connected; contains.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Excursions in Modern Mathematics(Tannenbaum) and Thinking Mathematically (Blitzer)
7.3 Kruskal’s Algorithm. Kruskal’s Algorithm was developed by JOSEPH KRUSKAL.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
The Mathematics of Networks Chapter 7. Trees A tree is a graph that –Is connected –Has no circuits Tree.
Chapter 9: Graphs Basic Concepts
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 10, Monday, September 22.
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.
Minimum Spanning Tree in Graph - Week Problem: Laying Telephone Wire Central office.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
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.
SPANNING TREES Lecture 21 CS2110 – Spring
Graph Theory Topics to be covered:
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.
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.
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 Spanning Trees Easy. Terms Node Node Edge Edge Cut Cut Cut respects a set of edges Cut respects a set of edges Light Edge Light Edge Minimum Spanning.
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.
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.
Union-Find  Application in Kruskal’s Algorithm  Optimizing Union and Find Methods.
SPANNING TREES Lecture 20 CS2110 – Fall Spanning Trees  Definitions  Minimum spanning trees  3 greedy algorithms (incl. Kruskal’s & Prim’s)
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.
Graph Theory. undirected graph node: a, b, c, d, e, f edge: (a, b), (a, c), (b, c), (b, e), (c, d), (c, f), (d, e), (d, f), (e, f) subgraph.
Prims Algorithm for finding a minimum spanning tree
1) Find and label the degree of each vertex in the graph.
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!
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.
Graph Search Applications, Minimum Spanning Tree
Excursions in Modern Mathematics Sixth Edition
Minimum Spanning Tree Chapter 13.6.
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.
Spanning Trees Discrete Mathematics.
Spanning Trees.
Minimum Spanning Tree.
Connected Components Minimum Spanning Tree
Minimum Spanning Tree.
Graph Theory.
Section 14.4 Trees.
Spanning Trees.
4-4 Graph Theory Trees.
Kruskal’s Algorithm for finding a minimum spanning tree
Networks Kruskal’s Algorithm
Cheapest-Link Algorithm/Sorted Edges (Unit 10) SOL: DM.2
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
CSE 373: Data Structures and Algorithms
Minimum spanning trees
Minimum Spanning Trees (MSTs)
Warm Up – Tuesday Find the critical times for each vertex.
Kruskal’s Algorithm AQR.
Section 13.4 Trees.
7 The Mathematics of Networks
Presentation transcript:

Aim: Graph Theory - Trees Course: Math Literacy Do Now: Aim: What’s a tree?

Aim: Graph Theory - Trees Course: Math Literacy A Tree Tree – a graph with the smallest number of edges that allow all vertices to be reached from all other vertices. all connected no circuits no longer trees

Aim: Graph Theory - Trees Course: Math Literacy What’s in a tree? A tree is a graph that is connected and has no circuits. All trees have the following properties: a.There is one and only one path joining any two vertices. b.Every edge is a bridge. c.A tree with n vertices must have n – 1 edges. a tree with 5 vertices must have 4 edges.

Aim: Graph Theory - Trees Course: Math Literacy Model Problem Which graph is a tree?

Aim: Graph Theory - Trees Course: Math Literacy Spanning Trees Spanning tree – a subgraph of a connected graph that contains no circuits. not a tree 7 vertices 7 edges a tree with removal of BC 7 vertices, 6 edges a tree with removal of EG 7 vertices, 6 edges

Aim: Graph Theory - Trees Course: Math Literacy Model Problem Find a spanning tree for the graph below. 8 vertices 12 edges 5 gotta go 8 vertices, 7 edges - a tree

Aim: Graph Theory - Trees Course: Math Literacy Model Problem Find a spanning tree for the graph below. 6 vertices 8 edges 3 gotta go

Aim: Graph Theory - Trees Course: Math Literacy Efficiency! Minimum spanning tree - a spanning tree with the smallest possible total weight on a weight graph original weighted graph = = = 107

Aim: Graph Theory - Trees Course: Math Literacy Kruskal’s Algorithm Kruskal’s Algorithm: finding the minimum spanning tree from a weighted graph: 1.Find the edge with the smallest weight in the graph. If there is more than one, pick one at random and mark it. 2.Find the next smallest edge in the graph. If there is more than one, pick at random. Mark it. 3.Find the next-smallest unmarked edge that does not create a red circuit. 4.Repeat step 3 until all vertices are included. The marked edges are the desired minimum spanning tree.

Aim: Graph Theory - Trees Course: Math Literacy Model Problem Seven building on a college campus are connected by the sidewalks show in the figure below. The weight graph represents building as vertices sidewalks as edges and sidewalk lengths as weights. A heavy snow has fallen and the sidewalks need to be cleared quickly. Determine the shortest series of sidewalks to clear. What is the total length of the sidewalks that need to be cleared? 264’ 256’ 262’ 242’ 259’255’ 251’ 253’ 251’241’ 245’ 274’

Aim: Graph Theory - Trees Course: Math Literacy Model Problem 264’ 256’ 262’ 242’ 259’255’ 251’ 253’ 251’241’ 245’ 274’ G E D B A C F

Aim: Graph Theory - Trees Course: Math Literacy Model Problem Kruskal’s Algorithm: finding the minimum spanning tree from a weighted graph: 1.Find the edge with the smallest weight in the graph. If there is more than one, pick one at random and mark it. 2.Find the next smallest edge in the graph. If there is more than one, pick at random. Mark it. 3.Find the next-smallest unmarked edge that does not create a red circuit. 4.Repeat step 3 until all vertices are included. The marked edges are the desired minimum spanning tree = 1499’

Aim: Graph Theory - Trees Course: Math Literacy Model Problem Use Kruskal’s Algorithm to find the minimum spanning tree for the graph below. Give the total weight of the minimum spanning tree.

Aim: Graph Theory - Trees Course: Math Literacy The Product Rule

Aim: Graph Theory - Trees Course: Math Literacy The Product Rule

Aim: Graph Theory - Trees Course: Math Literacy The Product Rule