Graph Theory Emily Belyea Paton Vinal Paul Friedman Emily Belyea Paton Vinal Paul Friedman.

Slides:



Advertisements
Similar presentations
Lecture 15. Graph Algorithms
Advertisements

22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
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.
Minimum Spanning Tree Sarah Brubaker Tuesday 4/22/8.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Network Optimization Problems: Models and Algorithms This handout: Minimum Spanning Tree Problem.
Segmentation Graph-Theoretic Clustering.
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.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 10 Instructor: Paul Beame.
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
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.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
1.1 Data Structure and Algorithm Lecture 13 Minimum Spanning Trees Topics Reference: Introduction to Algorithm by Cormen Chapter 13: Minimum Spanning Trees.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
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 Prof. Sin-Min Lee Dept. of Computer Science, San Jose State University.
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.
Introduction to Graph Theory
Basic Notions on Graphs. The House-and-Utilities Problem.
Agenda Review: –Planar Graphs Lecture Content:  Concepts of Trees  Spanning Trees  Binary Trees Exercise.
Lecture19: Graph III Bohyung Han CSE, POSTECH CSED233: Data Structures (2014F)
WK15. Vertex Cover and Approximation Algorithm By Lin, Jr-Shiun Choi, Jae Sung.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Graph Theory and Applications
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Chapter 13: Graphs Data Abstraction & Problem Solving with C++
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.
Minimum- Spanning Trees
Trees Thm 2.1. (Cayley 1889) There are nn-2 different labeled trees
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Prims Algorithm for finding a minimum spanning tree
Lecture 19 Minimal Spanning Trees CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Trees Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT
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.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
Lecture 20. Graphs and network models 1. Recap Binary search tree is a special binary tree which is designed to make the search of elements or keys in.
Graph Search Applications, Minimum Spanning Tree
Greedy Technique.
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Minimum Spanning Tree Chapter 13.6.
Grade 11 AP Mathematics Graph Theory
Graph theory Definitions Trees, cycles, directed graphs.
Spanning Trees Discrete Mathematics.
4-4 Graph Theory Trees.
Kruskal’s Algorithm for finding a minimum spanning tree
Chapter 9: Graphs Basic Concepts
Trees.
CS 583 Analysis of Algorithms
Warm Up – Wednesday.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Simple Graphs: Connectedness, Trees
Minimum Spanning Trees (MSTs)
Warm Up – Tuesday Find the critical times for each vertex.
Graph Theory: Cuts and Connectivity
Introduction to Graph Theory
Chapter 9: Graphs Basic Concepts
Concepts of Computation
Minimum Spanning Trees
Presentation transcript:

Graph Theory Emily Belyea Paton Vinal Paul Friedman Emily Belyea Paton Vinal Paul Friedman

Definitions  A graph consists of two types of elements, vertices and edges. Every edge has two endpoints in the set of vertices, and connects or joins the two endpoints.  A cycle is edges connected that make a continuous circuit.  A graph consists of two types of elements, vertices and edges. Every edge has two endpoints in the set of vertices, and connects or joins the two endpoints.  A cycle is edges connected that make a continuous circuit. Vertex Edge A vertex is simply drawn as point or dot. The vertex set of G is usually represented by V(G), or V when there is no danger of confusion. The order of a graph is the number of its vertices, for example, |V(G)|. An edge is drawn as a line connecting two vertices, called end vertices. An edge with end vertices x and y is represented by xy. The edge set of G is usually written as E(G), or E when there is no possible confusion. cycle

 A bridge, or cut edge or isthmus, is an edge whose removal disconnects a graph, meaning there can only be one line connecting two vertices.  A tree is a connected graph that contains no cycles.  A bridge, or cut edge or isthmus, is an edge whose removal disconnects a graph, meaning there can only be one line connecting two vertices.  A tree is a connected graph that contains no cycles. Bridge tree

 A weighted graph associates a label, a weight, with every edge found in the graph. Weights are usually listed as real numbers. The numbers are usually restricted to rational numbers or integers. Certain algorithms require further restrictions on weights.  Acyclic graph is a graph that contains no cycles.  A weighted graph associates a label, a weight, with every edge found in the graph. Weights are usually listed as real numbers. The numbers are usually restricted to rational numbers or integers. Certain algorithms require further restrictions on weights.  Acyclic graph is a graph that contains no cycles Weighted acyclic graph

The Problem  Our farm is installing a new irrigation system for a field. The well is located off the field and is the water source for the system. There is a need to find the amount of piping that will be used for the system. Each vertex represents a sprinkler head that provides water to the field. What is the minimum amount of piping that can be used for the field?

The Field WELL

Total weight of the Tree  In order to find the total weight of the tree, add up the total of the weighted edges.  =518  In order to find the total weight of the tree, add up the total of the weighted edges.  =518

Minimal Spanning Tree Algorithm 1.Each edge of the graph needs to be labeled, starting with the smallest amount weighted to the largest. (e1,e2,e3…en) weighted as: the weight of e1<e2<en 2.Start the graph sequence with e1. 3.Continue with the next smallest weighted edge, and continue until there is none left without making a circuit. 1.Each edge of the graph needs to be labeled, starting with the smallest amount weighted to the largest. (e1,e2,e3…en) weighted as: the weight of e1<e2<en 2.Start the graph sequence with e1. 3.Continue with the next smallest weighted edge, and continue until there is none left without making a circuit.

The Field (labeled weighted) WELL e5 e2 e8 e4 e11 e10 e12 e14 e17 e1 e13e18 e6 e19 e20 e24 e15 e22 e23 e21 e3 e9 e7 e16

The Field (removing unnecessary pipes) WELL e5 e2 e8 e4 e11 e10 e12 e14 e17 e1 e13e18 e6 e15 e22 e21 e3 e9 e7 e16 The dotted lines are the lines that are unnecessary for the irrigation system, they are removed.

The Field as a Minimal Spanning Tree WELL e5 e2 e8 e4 e11 e10 e12 e14 e17 e1 e13e18 e6 e15 e22 e21 e3 e9 e7 e16

Totaling the Minimal Spanning Tree  =406  The new total saves the farm 112 feet of piping, saving 21.62%  =406  The new total saves the farm 112 feet of piping, saving 21.62%

THE END