Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Introduction to Graphs
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.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 excerpts Graphs (breadth-first-search)
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
What is the first line of the proof? a). Assume G has an Eulerian circuit. b). Assume every vertex has even degree. c). Let v be any vertex in G. d). Let.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Graphs Chapter 20 Data Structures and Problem Solving with C++: Walls and Mirrors, Frank Carrano, © 2012.
The Mathematics of Networks Chapter 7. Trees A tree is a graph that –Is connected –Has no circuits Tree.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 10, Monday, September 22.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
GRAPH Learning Outcomes Students should be able to:
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Spring 2015 Mathematics in Management Science Euler’s Theorems Euler Circuits & Paths ECT & EPT Burning Bridges Fleury’s Algorithm.
Graph Theory Topics to be covered:
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Chapter 14 Graphs. © 2004 Pearson Addison-Wesley. All rights reserved Terminology G = {V, E} A graph G consists of two sets –A set V of vertices,
(CSC 102) Lecture 29 Discrete Structures. Graphs.
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.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
1 CS104 : Discrete Structures Chapter V Graph Theory.
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Lecture 14: Graph Theory I Discrete Mathematical Structures: Theory and Applications.
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Unit – V Graph theory. Representation of Graphs Graph G (V, E,  ) V Set of vertices ESet of edges  Function that assigns vertices {v, w} to each edge.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Introduction to Graphs. This Lecture In this part we will study some basic graph theory. Graph is a useful concept to model many problems in computer.
Graphs and 2-Way Bounding Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois 1 /File:7_bridgesID.png.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Chapter 13: Graphs Data Abstraction & Problem Solving with C++
AND.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
© 2006 Pearson Addison-Wesley. All rights reserved 14 A-1 Chapter 14 Graphs.
Introduction to Graph Theory
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
1) Find and label the degree of each vertex in the graph.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits.
CSC 252: Algorithms October 28, 2000 Homework #5: Graphs Victoria Manfredi (252a-ad) notes: -Definitions for each of the graph concepts are those presented.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
CSNB 143 Discrete Mathematical Structures
Minimum Spanning Tree Chapter 13.6.
Can you draw this picture without lifting up your pen/pencil?
Lecture 15: Graph Theory II
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
CHAPTER 15 Graph Theory.
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Hamilton Paths and Circuits
Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved.
Presentation transcript:

Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Chapter 15: Graph Theory 15.1 Basic Concepts 15.2 Euler Circuits 15.3 Hamilton Circuits and Algorithms 15.4 Trees and Minimum Spanning Trees © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 15-1 Basic Concepts © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Basic Concepts Graphs Walks, Paths, and Circuits Complete Graphs and Subgraphs Graph Coloring © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Simple Graphs Graphs in which there is no more than one edge between any two vertices and in which no edge goes from vertex to the same vertex are called simple. Simple Not simple © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Degree of the Vertex The number of edges joined to a vertex is called the degree of the vertex. C A B D A has degree 0, B has degree 1, C has degree 2 and D has degree 3. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Isomorphic Graphs Two graphs are isomorphic if there is a one-to-one matching between vertices of the two graphs with the property that whenever there is an edge between two vertices of either one of the graphs, there is an edge between the corresponding vertices of the other graph. © 2008 Pearson Addison-Wesley. All rights reserved

Connected and Disconnected Graphs A graph is connected if one can move from each vertex of the graph to every other vertex of the graph along edges of the graph. If not, the graph is disconnected. The connected pieces of a graph are called the components of the graph. © 2008 Pearson Addison-Wesley. All rights reserved

Example: Isomorphic Graphs Are the two graphs isomorphic? Solution Yes, and corresponding vertices are labeled below. D A B D B C A C © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Sum of Degrees Theorem In any graph, the sum of the degrees of the vertices equals twice the number of edges. © 2008 Pearson Addison-Wesley. All rights reserved

Example: Sum of Degrees A graph has exactly four vertices, each of degree 3. How many edges does this graph have? Solution The sum of degrees of the vertices is 12. By the theorem, this number is twice the number of edges, so the number of edges is 12/2 = 6. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Walk A walk in a graph is a sequence of vertices, each linked to the next vertex by a specified edge of the graph. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Path A path in a graph is a walk that uses no edge more than once. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Circuit A circuit in a graph is a path that begins and ends at the same vertex. © 2008 Pearson Addison-Wesley. All rights reserved

Venn Diagram of Walks, Paths, and Circuits © 2008 Pearson Addison-Wesley. All rights reserved

Example: Classifying Walks Using the graph, classify each sequence as a walk, a path or a circuit. A E B D C © 2008 Pearson Addison-Wesley. All rights reserved

Example: Classifying Walks Solution B D C Walk Path Circuit a) No No b) Yes Yes c) Yes d) Yes © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Complete Graph A complete graph is a graph in which there is exactly one edge going from each vertex to each other vertex in the graph. © 2008 Pearson Addison-Wesley. All rights reserved

Example: Complete Graph Draw a complete graph with four vertices. Solution Answers may vary, but one solution is shown below. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Subgraph A graph consisting of some of the vertices of the original graph and some the original edges between those vertices is called a subgraph. © 2008 Pearson Addison-Wesley. All rights reserved

Coloring and Chromatic Number A coloring for a graph is a coloring of the vertices in such a way that the vertices joined by an edge have different colors. The chromatic number of a graph is the least number of colors needed to make a coloring. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Coloring a Graph Step 1: Choose a vertex with highest degree, and color it. Use the same color to color as many vertices as you can without coloring vertices joined by an edge of the same color. Step 2: Choose a new color, and repeat what you did in Step 1 for vertices not already colored. Step 3: Repeat Step 1 until all vertices are colored. © 2008 Pearson Addison-Wesley. All rights reserved

Example: Coloring a Graph Color the graph below and give its chromatic number . Solution Its chromatic number is 3. © 2008 Pearson Addison-Wesley. All rights reserved