CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Connectivity Lecture _13.
Chapter 8 Topics in Graph Theory
Simple Graph Warmup. Cycles in Simple Graphs A cycle in a simple graph is a sequence of vertices v 0, …, v n for some n>0, where v 0, ….v n-1 are distinct,
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Graph-02.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
Discrete Mathematics and Its Applications
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
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.
Discrete Structures Chapter 7B Graphs Nurul Amelina Nasharuddin Multimedia Department.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 5,Wednesday, September 10.
Chapter 4 Graphs.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
GRAPH Learning Outcomes Students should be able to:
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
(CSC 102) Lecture 29 Discrete Structures. Graphs.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
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.
Tree A connected graph that contains no simple circuits is called a tree. Because a tree cannot have a simple circuit, a tree cannot contain multiple.
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.
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
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.
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.
Introduction to Graph Theory
Lecture 10: Graph-Path-Circuit
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
Lecture 52 Section 11.2 Wed, Apr 26, 2006
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Introduction to Graph Theory
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Chap 7 Graph Def 1: Simple graph G=(V,E) V : nonempty set of vertices E : set of unordered pairs of distinct elements of V called edges Def 2: Multigraph.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
Trees.
Applied Discrete Mathematics Week 14: Trees
CSNB 143 Discrete Mathematical Structures
Graph theory Definitions Trees, cycles, directed graphs.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Discrete Structures – CNS2300
Spanning Trees Discrete Mathematics.
Can you draw this picture without lifting up your pen/pencil?
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
Lecture 15: Graph Theory II
Walks, Paths, and Circuits
Representing Graphs Wade Trappe.
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Graphs G = (V, E) V are the vertices; E are the edges.
Miniconference on the Mathematics of Computation
N(S) ={vV|uS,{u,v}E(G)}
Euler circuit Theorem 1 If a graph G has an Eulerian path, then it must have exactly two odd vertices. Theorem 2 If a graph G has an Eulerian circuit,
5/9/2019 Discrete Math II Howon Kim
Discrete Math II Howon Kim
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Discrete Math II Howon Kim
Agenda Review Lecture Content: Shortest Path Algorithm
GRAPHS.
Presentation transcript:

CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker

2 Path Let v 0 and v n be vertices in a graph. A path from v 0 to v n is an alternating sequence of n+1 vertices and n edges beginning with vertex v 0 and ending with vertex v n, (v 0, e 1, v 1, e 2,..., e n, v n ), in which edge e i is incident on vertices v i-1 and v i for i =1,..., n. Note  Can visit same vertex multiple times  Can have only one vertex => length = 0 If there are no parallel edges, can list the vertices only.

3 Subgraphs and components A graph G is connected if given any vertices v and w in G, there is a path from v to w. Let G=(V,E) be a graph. We call G’=(V’,E’) a subgraph of G if  V’  V and E’  E.  For every edge e’  E’, if e’ is incident on v’ and w’, then v’,w’  V’. Let G be a graph and let v be a vertex in G. The subgraph G’ of G consisting of all edges and vertices in G that are contained in some path beginning at v is called the component of G containing v.  A connected graph has one component

4 Paths and cycles A simple path from v to w is a path from v to w with no repeated vertices. A cycle (or circuit) is a path of nonzero length from v to v with no repeated edges. A simple cycle is a cycle from v to v in which there are no repeated vertices (except for the beginning and ending vertex v).

5 Euler cycle A cycle in a graph G that includes all of the edges and all of the vertices of G is called an Euler cycle. Theorem: If a graph G has an Euler cycle, then G is connected and every vertex has even degree. Theorem: If G is a connected graph and every vertex has even degree, then G has an Euler cycle.

6 Degrees Theorem: If G is a graph with m edges and vertices {v 1, v 2,..., v n }, then sum (deg(v i )) = 2 m Corollary: In any graph, there are an even number of vertices of odd degree. Theorem: A graph has a path with no repeated edges from v to w (v≠w) containing all the edges and vertices if and only if it is connected and v and w are the only vertices having odd degree. Theorem: If a graph G contains a cycle from v to v, G contains a simple cycle from v to v.