Discrete Mathematical Structures: Theory and Applications

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Hamiltonian Circuits and Paths
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
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.
Data Structures Using C++
Graphs Chapter 20 Data Structures and Problem Solving with C++: Walls and Mirrors, Carrano and Henry, © 2013.
Introduction This chapter explores graphs and their applications in computer science This chapter explores graphs and their applications in computer science.
Data Structures Using C++
Data Structures Using Java1 Chapter 11 Graphs. Data Structures Using Java2 Chapter Objectives Learn about graphs Become familiar with the basic terminology.
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Decision Maths Graphs Wiltshire Graphs A graph is just a diagram made up of “dots” and “lines”. These are all graphs. The dots are called “nodes” or.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
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.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
Graphs Chapter 20 Data Structures and Problem Solving with C++: Walls and Mirrors, Frank Carrano, © 2012.
Chapter 4 Graphs.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Copyright © Cengage Learning. All rights reserved.
Can you find a way to cross every bridge only once?
GRAPH Learning Outcomes Students should be able to:
Data Structures Using C++ 2E
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.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
Chapter 6 Graph Theory R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001.
Lesson Reflection for Chapter 14 Section 6 Pre-Algebra Learning Goal Students will understand collecting, displaying, & analyzing data.
1 CS104 : Discrete Structures Chapter V Graph Theory.
CS 200 Algorithms and Data Structures
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Basic Notions on Graphs. The House-and-Utilities Problem.
Lecture 14: Graph Theory I Discrete Mathematical Structures: Theory and Applications.
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.
ساختمانهای گسسته دانشگاه صنعتی شاهرود – فروردین 1392.
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Foundations of Discrete Mathematics Chapters 9 and 10 By Dr. Dalia M. Gil, Ph.D.
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.
Lecture 11: 9.4 Connectivity Paths in Undirected & Directed Graphs Graph Isomorphisms Counting Paths between Vertices 9.5 Euler and Hamilton Paths Euler.
Chapter 6: Graphs 6.1 Euler Circuits
Review Euler Graph Theory: DEFINITION: A NETWORK IS A FIGURE MADE UP OF POINTS (VERTICES) CONNECTED BY NON-INTERSECTING CURVES (ARCS). DEFINITION: A VERTEX.
Lecture 16: Graph Theory III Discrete Mathematical Structures: Theory and Applications.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Graph Theory Euler Paths and Euler Circuits. Euler Paths & Circuits Euler Paths and Euler Circuits (Euler is pronounced the same as Oiler) An Euler path.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
STARTER: CAN YOU FIND A WAY OF CROSSING ALL THE BRIDGES EXACTLY ONCE? Here’s what this question would look like drawn as a graph.
An Introduction to Graph Theory
Homework 8 Graph G is given by the figure below.
Graphs Chapter 20.
Graphs: Definitions and Basic Properties
Graph theory Definitions Trees, cycles, directed graphs.
Konigsberg’s Seven Bridges
Can you draw this picture without lifting up your pen/pencil?
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Lecture 15: Graph Theory II
Foundations of Discrete Mathematics
Walks, Paths, and Circuits
Konigsberg- in days past.
Decision Maths Graphs.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Presentation transcript:

Discrete Mathematical Structures: Theory and Applications Chapter 10: Graph Theory Discrete Mathematical Structures: Theory and Applications

Learning Objectives Learn the basic properties of graph theory Learn about walks, trails, paths, circuits, and cycles in a graph Explore how graphs are represented in computer memory Learn about Euler and Hamilton circuits Learn about isomorphism of graphs Explore various graph algorithms Examine planar graphs and graph coloring Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation The Königsberg bridge problem is as follows: Starting at one land area, is it possible to walk across all of the bridges exactly once and return to the starting land area? In 1736, Euler represented the Königsberg bridge problem as a graph, as shown in Figure 10.1(b), and answered the question in the negative. Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Consider the following problem related to an old children’s game. Using a pencil, can each of the diagrams in Figure 10.2 be traced, satisfying the following conditions? The tracing must start at point A and come back to point A. While tracing the figure, the pencil cannot be lifted from the figure. A line cannot be traced twice. As in geometry, each of points A, B, and C is called a vertex of the graph and the line joining two vertices is called an edge. Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Suppose there are three houses, which are to be connected to three services — water, telephone, and electricity — by means of underground pipelines. The services are to be connected subject to the following condition: The pipes must be laid so that they do not cross each other. Consider three distinct points, A, B, C, as three houses and three other distinct points, W , T, and E, which represent the water source, the telephone connection point, and the electricity connection point. Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Try to join W , T, and E with each of A, B, and C by drawing lines (they may not be straight lines) so that no two lines intersect each other (see Figure 10.3). This is known as the three utilities problem. Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Graph Definitions and Notation Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Walks, Paths, and Cycles Discrete Mathematical Structures: Theory and Applications

Matrix Representation of a Graph Discrete Mathematical Structures: Theory and Applications

Matrix Representation of a Graph Discrete Mathematical Structures: Theory and Applications

Matrix Representation of a Graph Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Matrix Representation of a Graph Discrete Mathematical Structures: Theory and Applications

Matrix Representation of a Graph Discrete Mathematical Structures: Theory and Applications

Matrix Representation of a Graph Discrete Mathematical Structures: Theory and Applications

Special Circuits Discrete Mathematical Structures: Theory and Applications

Special Circuits Discrete Mathematical Structures: Theory and Applications

Special Circuits Discrete Mathematical Structures: Theory and Applications

Special Circuits Discrete Mathematical Structures: Theory and Applications

Special Circuits Definition 10.4.9 Example 10.4.10 An open trail in a graph is called an Euler trail if it contains all the edges and all the vertices. Example 10.4.10 This is a connected graph. It has a vertex of odd degree. Thus, this graph has no Euler circuit, but the trail (v2, e7, v6, e5, v5, e4, v4, e3, v3, e2, v2, e1, v1, e6, v6) contains all the edges of G. Hence, this is an Euler trail. Discrete Mathematical Structures: Theory and Applications

Special Circuits Discrete Mathematical Structures: Theory and Applications

Special Circuits This diagram in Figure 10.63 is a connected graph with 20 vertices. Each Vertex represents a famous city. It follows that the game is equivalent to finding a cycle in the graph in Figure 10.63 that contains each vertex exactly once except for the starting and ending vertices, which appear twice, making a Hamiltonian Cycle. Discrete Mathematical Structures: Theory and Applications

Special Circuits Discrete Mathematical Structures: Theory and Applications

Special Circuits Discrete Mathematical Structures: Theory and Applications

Special Circuits Discrete Mathematical Structures: Theory and Applications

Special Circuits During a certain soccer tournament with 4 teams, each team has played against all the others exactly once and there were no ties. All the teams can be listed in order so that each has defeated the team next on the list. Let the teams be denoted by v1, v2, v3, and v4 and let the matches correspond to the vertices and the arcs of a directed graph, respectively, in such a way that the initial and terminal vertices of an arc correspond to the winner and loser, respectively, of the corresponding match. v2 → v1 → v3 → v4 is a Hamiltonian directed path. Discrete Mathematical Structures: Theory and Applications

Isomorphism Discrete Mathematical Structures: Theory and Applications

Isomorphism In Figure 10.77, v1 and v2 are the end vertices of edge e1 in G1 and f(v1) = u1 and f(v2) = u3 are end vertices of edge h(e1) = f2 in G2. Also, f(v3) = u4 and f(v1) = u1 are the end vertices of edge f4 = h(e2) in G2 and v3 and v1 are end vertices of edge e2 in G1. Similarly, for other vertices, any two vertices vi and vj are end vertices of some edge ek in G1 if and only if f(vi) and f(vj) are end vertices of edge h(ek) in G2. G1 is therefore isomorphic to G2 Discrete Mathematical Structures: Theory and Applications

Isomorphism Discrete Mathematical Structures: Theory and Applications

Isomorphism Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Graph Algorithms Graphs can be used to show how different chemicals are related or to show airline routes. They can also be used to show the highway structure of a city, state, or country. The edges connecting two vertices can be assigned a nonnegative real number, called the weight of the edge. If the graph represents a highway structure, the weight can represent the distance between two places, or the travel time from one place to another. Such graphs are called weighted graphs. Discrete Mathematical Structures: Theory and Applications

Graph Algorithms Discrete Mathematical Structures: Theory and Applications

Graph Algorithms Discrete Mathematical Structures: Theory and Applications

Graph Algorithms Discrete Mathematical Structures: Theory and Applications

Graph Algorithms Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Graph Algorithms Discrete Mathematical Structures: Theory and Applications

Graph Algorithms Discrete Mathematical Structures: Theory and Applications

Graph Algorithms To guide the breadth-first topological ordering, use a data structure called a queue. Formally, a queue is a data structure in which elements are added at one end, called the rear of the queue, and removed from the other end, called the front of the queue. Items are processed in the order they arrive. When the immediate predecessor count of a vertex becomes 0, it is placed next in the queue. The vertex at the front of the queue is removed and placed in the topological order. It follows that when a vertex, say v, is placed in the queue, either all of its predecessors are already placed in the topological order or they are in the queue. Because vertex v is placed at the end of the queue before it is placed in the topological order, all of its predecessors are placed in the topological order. Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring A graph is a planar graph if and only if it has a pictorial representation in a plane which is a plane graph. This pictorial representation of a planar graph G as a plane graph is called a planar representation of G. Let G denote the plane graph in Figure 10.111. Graph G, in Figure 10.111, divides the plane into different regions, called the faces of G. Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring Discrete Mathematical Structures: Theory and Applications

Planar Graphs and Graph Coloring Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications