SlideShare a Scribd company logo
3
Most read
5
Most read
PRESENTATION
On
Topic: Graph Theory :Eulerian Graph
Seven Bridges of Konigsberg
 The Konigsberg bridge problem:
 Starting and ending at the same point, is it possible to cross all seven bridges
just once and return to the starting point.
 This problem can be represented by a graph.
 Edges represent bridges and each vertex represents a region.
 Begun in 1735.
 Mentioned in Leonhard Euler's paper on “Seven Bridges of Konigsberg ” .
Problem : Walk all 7 bridges without crossing a bridge twice.
Eulerian Graph
If there is a path joining any two vertices in a graph, that graph is
said to be connected.
 A path that begins and ends at the same vertex
without traversing any edge more than once is called a circuit, or a
closed path.
A circuit that follows each edge exactly once while visiting every
vertex is known as an Eulerian circuit, and the graph is called an
Eulerian graph.
Note:
An Eulerian graph is connected and, in addition, all its vertices have
even degree.
Chinese Postman Problem
discovered by Chinese Mathematician Kwan Mei-Ko.
Algorithm:
 step 1 : If graph is Eulerian, return sum of all edge weights. Else do following steps.
 step 2 : We find all the vertices with odd degree .
 step 3 : List all possible pairings of odd vertices For n odd vertices total number of
pairings possible are, (n-1) * (n-3) * (n -5)... * 1 .
 step 4 : For each set of pairings, find the shortest path connecting them.
 step 5 : Find the pairing with minimum shortest path connecting pairs.
 step 6 : Modify the graph by adding all the edges that have been found in step 5.
 step 7 : Weight of Chinese Postman Tour is sum of all edges.
 step 8 : Draw Euler Circuit of the modified graph. This Euler Circuit is Chinese
Postman Tour.
Chinese Postman problem:
a b
e f
d
c
3
1
1
4
1
2
5 6
Illustration:
 As we see that graph does not contain Eulerian circuit because is has odd degree
vertices [a, b, e, f].
 First we make all possible pairs of odd degree vertices:[ae, bf], [ab, ef], [af, eb]
 so pairs with min sum of weight are [ae, bf] :
 ae = (ac + ce = 3 ), bf = ( bd + df = 2 ) Total : 5
 We add edges ac, ce , bd & df to the original graph and create a modified graph.
a b
e f
d
c
3
1
1
4
1
2
5 6
Solution
Graph with adding new edges:ac, ce , bd & df
Optimal Chinese postman route is of length : 5 + 23 = 28
 Chinese Postman Route : a - b - d - f - d - b - f - e - c - a - c - e - a
This route is Euler Circuit of the modified graph.
a b
e f
d
c
3
1
1
1
2
1
2
1
1
5 6
4
THANK YOU

More Related Content

PPTX
Binary Search Tree in Data Structure
PPTX
Polish Notation In Data Structure
PPTX
Euler graph
PPT
Functions in C++
PPT
BINARY TREE REPRESENTATION.ppt
PPTX
Presentation on pointer.
PPT
Bitwise operators
PPT
Bitwise Operators in C
Binary Search Tree in Data Structure
Polish Notation In Data Structure
Euler graph
Functions in C++
BINARY TREE REPRESENTATION.ppt
Presentation on pointer.
Bitwise operators
Bitwise Operators in C

What's hot (20)

PPSX
Stacks Implementation and Examples
PPTX
Conditional statements
PPTX
Operators and expressions in C++
PPTX
Bubble Sort Algorithm Presentation
PPTX
C++ decision making
PPT
Functions in c++
PPTX
Hamiltonian path
PPTX
Tree Traversal
PPTX
Threaded Binary Tree
PPTX
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
PPTX
Evaluation of postfix expression
PPTX
Prim's algorithm
PPT
Operators in C++
PPTX
5.4 mathematical induction
PPTX
Arithmetic Expression
PPTX
Lecture optimal binary search tree
PPTX
Relations in Discrete Math
PPTX
Recursion
PPTX
Binary Tree in Data Structure
PPTX
Asymptotic notations
Stacks Implementation and Examples
Conditional statements
Operators and expressions in C++
Bubble Sort Algorithm Presentation
C++ decision making
Functions in c++
Hamiltonian path
Tree Traversal
Threaded Binary Tree
PPT On Sorting And Searching Concepts In Data Structure | In Programming Lang...
Evaluation of postfix expression
Prim's algorithm
Operators in C++
5.4 mathematical induction
Arithmetic Expression
Lecture optimal binary search tree
Relations in Discrete Math
Recursion
Binary Tree in Data Structure
Asymptotic notations
Ad

Similar to Graph theory Eulerian graph (20)

PPT
Distruct week 15 graphs theory (updated)
PDF
distructweek15graphstheoryupdated-160227143444.pdf
PPS
nossi ch 6
PPTX
ch10.5.pptx
PPTX
Ds lec 5_chap4
PPT
Graph theory
PPTX
euler paths and circuit theorem.pptx
PPTX
Konigsberg Bridge Problem_Graph Theory.pptx
PPT
CST 504 Graphs
PPTX
Bridge problem : Discrete Structure
PDF
Cs6702 graph theory and applications Anna University question paper apr may 2...
DOC
Magtibay buk bind#2
PPTX
Koningsberg bridge problem
PPTX
Shortest path problem
PPTX
Final-term Coverage.pptx. ..............
PDF
Mithfh lecturenotes 9
PDF
Introduction to-graph-theory-1204617648178088-2
PPTX
7. Spanning trees
PDF
introduction to graph theory
Distruct week 15 graphs theory (updated)
distructweek15graphstheoryupdated-160227143444.pdf
nossi ch 6
ch10.5.pptx
Ds lec 5_chap4
Graph theory
euler paths and circuit theorem.pptx
Konigsberg Bridge Problem_Graph Theory.pptx
CST 504 Graphs
Bridge problem : Discrete Structure
Cs6702 graph theory and applications Anna University question paper apr may 2...
Magtibay buk bind#2
Koningsberg bridge problem
Shortest path problem
Final-term Coverage.pptx. ..............
Mithfh lecturenotes 9
Introduction to-graph-theory-1204617648178088-2
7. Spanning trees
introduction to graph theory
Ad

Recently uploaded (20)

PPT
POSITIONING IN OPERATION THEATRE ROOM.ppt
PPTX
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
PDF
AlphaEarth Foundations and the Satellite Embedding dataset
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PPTX
Cell Membrane: Structure, Composition & Functions
PPTX
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
PPT
protein biochemistry.ppt for university classes
PDF
Sciences of Europe No 170 (2025)
PDF
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
PDF
An interstellar mission to test astrophysical black holes
PDF
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
PPTX
BIOMOLECULES PPT........................
DOCX
Viruses (History, structure and composition, classification, Bacteriophage Re...
PPTX
famous lake in india and its disturibution and importance
PPTX
Taita Taveta Laboratory Technician Workshop Presentation.pptx
PPTX
ECG_Course_Presentation د.محمد صقران ppt
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PPTX
The KM-GBF monitoring framework – status & key messages.pptx
PPTX
2Systematics of Living Organisms t-.pptx
PDF
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
POSITIONING IN OPERATION THEATRE ROOM.ppt
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
AlphaEarth Foundations and the Satellite Embedding dataset
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
Cell Membrane: Structure, Composition & Functions
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
protein biochemistry.ppt for university classes
Sciences of Europe No 170 (2025)
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
An interstellar mission to test astrophysical black holes
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
BIOMOLECULES PPT........................
Viruses (History, structure and composition, classification, Bacteriophage Re...
famous lake in india and its disturibution and importance
Taita Taveta Laboratory Technician Workshop Presentation.pptx
ECG_Course_Presentation د.محمد صقران ppt
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
The KM-GBF monitoring framework – status & key messages.pptx
2Systematics of Living Organisms t-.pptx
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf

Graph theory Eulerian graph

  • 2. Seven Bridges of Konigsberg  The Konigsberg bridge problem:  Starting and ending at the same point, is it possible to cross all seven bridges just once and return to the starting point.  This problem can be represented by a graph.  Edges represent bridges and each vertex represents a region.  Begun in 1735.  Mentioned in Leonhard Euler's paper on “Seven Bridges of Konigsberg ” . Problem : Walk all 7 bridges without crossing a bridge twice.
  • 3. Eulerian Graph If there is a path joining any two vertices in a graph, that graph is said to be connected.  A path that begins and ends at the same vertex without traversing any edge more than once is called a circuit, or a closed path. A circuit that follows each edge exactly once while visiting every vertex is known as an Eulerian circuit, and the graph is called an Eulerian graph. Note: An Eulerian graph is connected and, in addition, all its vertices have even degree.
  • 4. Chinese Postman Problem discovered by Chinese Mathematician Kwan Mei-Ko. Algorithm:  step 1 : If graph is Eulerian, return sum of all edge weights. Else do following steps.  step 2 : We find all the vertices with odd degree .  step 3 : List all possible pairings of odd vertices For n odd vertices total number of pairings possible are, (n-1) * (n-3) * (n -5)... * 1 .  step 4 : For each set of pairings, find the shortest path connecting them.  step 5 : Find the pairing with minimum shortest path connecting pairs.  step 6 : Modify the graph by adding all the edges that have been found in step 5.  step 7 : Weight of Chinese Postman Tour is sum of all edges.  step 8 : Draw Euler Circuit of the modified graph. This Euler Circuit is Chinese Postman Tour.
  • 5. Chinese Postman problem: a b e f d c 3 1 1 4 1 2 5 6 Illustration:
  • 6.  As we see that graph does not contain Eulerian circuit because is has odd degree vertices [a, b, e, f].  First we make all possible pairs of odd degree vertices:[ae, bf], [ab, ef], [af, eb]  so pairs with min sum of weight are [ae, bf] :  ae = (ac + ce = 3 ), bf = ( bd + df = 2 ) Total : 5  We add edges ac, ce , bd & df to the original graph and create a modified graph. a b e f d c 3 1 1 4 1 2 5 6
  • 7. Solution Graph with adding new edges:ac, ce , bd & df Optimal Chinese postman route is of length : 5 + 23 = 28  Chinese Postman Route : a - b - d - f - d - b - f - e - c - a - c - e - a This route is Euler Circuit of the modified graph. a b e f d c 3 1 1 1 2 1 2 1 1 5 6 4