CSE, IIT KGP Euler Graphs and Digraphs. CSE, IIT KGP Euler Circuit We use the term circuit as another name for closed trail.We use the term circuit as.

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,
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
MCA 520: Graph Theory Instructor Neelima Gupta
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Graphs CS-240/341. Graphs Used for representing many-to-many relationships –can take two forms directed (digraph) - a finite set of elements called vertices.
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.
1 CIS /204—Spring 2008 Recitation 10 Friday, April 4, 2008.
Approximation Algorithms for the Traveling Salesperson Problem.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Chapter 4 Graphs.
Euler Circuit Chapter 5. Fleury’s Algorithm Euler’s theorems are very useful to find if a graph has an Euler circuit or an Euler path when the graph is.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Data Structures Using C++ 2E
A Shortest Path Algorithm. Motivation Given a connected, positive weighted graph Find the length of a shortest path from vertex a to vertex z.
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
CSE, IIT KGP Matchings and Factors. CSE, IIT KGP Matchings A matching of size k in a graph G is a set of k pairwise disjoint edges.A matching of size.
7.1 Introduction to Graph Theory
Graph Theory Topics to be covered:
Foundations of Discrete Mathematics
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
Trees and Distance. 2.1 Basic properties Acyclic : a graph with no cycle Forest : acyclic graph Tree : connected acyclic graph Leaf : a vertex of degree.
Chinese Postman Algorithm Aims: To be able to use the Chinese Postman Algorithm for: all even vertices. 2 odd vertices. Starting and ending at the same.
Graph Theory Chapter 7 Eulerian Graphs 大葉大學 (Da-Yeh Univ.) 資訊工程系 (Dept. CSIE) 黃鈴玲 (Lingling Huang)
Chinese postman problem
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
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.
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
Chapter 1 Fundamental Concepts II Pao-Lien Lai 1.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Introduction Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
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.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
Graph Theory and Applications
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Eulerian Paths and Cycles. What is a Eulerian Path Given an graph. Find a path which uses every edge exactly once. This path is called an Eulerian Path.
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Chapter 6: Graphs 6.1 Euler Circuits
Trees Thm 2.1. (Cayley 1889) There are nn-2 different labeled trees
Introduction to Graph Theory
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
Introduction to Graph Theory
EULER PATHS & CHINESE POSTMAN SOL: DM.2 CLASSWORK WORKSHEET HOMEWORK (DAY 59) WORKSHEET.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Trees Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT
Connectivity. Graph Scanning Algorithm Input: A graph G and some vertex s. Output: The set R of vertices reachable from s and a set T ⊆ E(G) such that.
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.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Planarity Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT.
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,
Trees.
Chinese Postman Problem
Euler Paths and Circuits
Graph theory Definitions Trees, cycles, directed graphs.
Advanced Algorithms Analysis and Design
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph.
Genome Assembly.
Trees.
Walks, Paths, and Circuits
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
5.4 T-joins and Postman Problems
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
CPS420 Euler Circuit Construction
Euler and Hamilton Paths
Chapter 1: Urban Services Management Science
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Graph Theory: Euler Graphs and Digraphs
Presentation transcript:

CSE, IIT KGP Euler Graphs and Digraphs

CSE, IIT KGP Euler Circuit We use the term circuit as another name for closed trail.We use the term circuit as another name for closed trail. –A circuit containing every edge of G is an Eulerian circuit. –A graph whose edges comprise a single closed trail is Eulerian.

CSE, IIT KGP Properties Non-trivial maximal trails in even graphs are closed.Non-trivial maximal trails in even graphs are closed. A finite graph G is Eulerian if and only if all its vertex degrees are even and all its edges belong to a single component.A finite graph G is Eulerian if and only if all its vertex degrees are even and all its edges belong to a single component. For a connected nontrivial graph with 2k odd vertices, the minimum number of pairwise edge-disjoint trails covering the edges is max{k, 1}.For a connected nontrivial graph with 2k odd vertices, the minimum number of pairwise edge-disjoint trails covering the edges is max{k, 1}.

CSE, IIT KGP Fleury’s Algorithm Input: A graph G with one non-trivial component and at most two odd vertices. Initialization: Start at a vertex that has odd degree unless G is even, in which case start at any vertex. Iteration: From the current vertex, traverse any remaining edge whose deletion from the graph does not leave a graph with two non-trivial components. Stop when all edges have been traversed.

CSE, IIT KGP Euler Trails in Directed Graphs Input: A digraph G that is an orientation of a connected graph and has d + (u) = d  (u) for all u  V(G). Step1: Choose a vertex v  V(G). Let G be the digraph obtained from G by reversing direction on each edge. Search G to construct T consisting of paths from v to all other vertices. Step2: Let T be the reversal of T. T contains a u,v-path in G for each u  V(G). Specify an arbitrary ordering of the edges that leave each vertex u, except that for u  v, the edge leaving u in T must come last. Step3: Construct an Eulerian circuit from v as follows. Whenever u is the current vertex, exit along the next unused edge in the ordering specified for edges leaving u.

CSE, IIT KGP The Chinese Postman Problem Suppose a mail carrier traverses all edges in a road network, starting and ending at the same vertex.Suppose a mail carrier traverses all edges in a road network, starting and ending at the same vertex. –The edges have non-negative weights representing distance or time. –We seek a closed walk of minimum total length that uses all the edges.