際際滷

際際滷Share a Scribd company logo
EULER GRAPH
PRESENTED : AAQIB
ASHRAF
PARREY
Graphs consist of
 points called vertices
 lines called edges
1. Edges connect two
vertices.
2. Edges only intersect
at vertices.
3. Edges joining a
vertex to itself are
called loops.
The following picture is a graph.
A
B
C
D
E
EULER GRAPH
 A graph is called Eulerian if it has an Eulerian
Cycle and called Semi-Eulerian if it has an
Eulerian Path.
An Eulerian cycle (path) is a sub_graph
Ge = (V;Ee) of G = (V;E)
which passes exactly once through each edge
of G.
G must thus be connected and all vertices V are
visited (perhaps more than once). We then says
that G is Eulerian
Euler Circuit and Euler path
 When a graph has no vertices of odd degree, then it
has at least one Euler circuit.
 When a graph has exactly two vertices of odd degree,
then it has at least one Euler path.
 When a graph has more than two vertices of odd
degree, then
 There is no Euler circuit or Euler path
 There is no possible way that we can travel along all the
edges of the graph without having to cross some of them
more than once.
Euler circuit & Euler path
 How we will find a route that covers all the edges of
the graph while revisiting the least possible number
of edges (deadhead travel)?
 In real-world problems,
The cost is proportional to the amount of travel.
 Total cost of a route
= cost of traveling original edges in the graph
+ cost of deadhead travel
The bridges of Konigsberg problem
Seven bridges of Konigsberg problem, was first solved by Euler in
the eighteenth century. The problem was rather simple. The town of
Konigsberg consists of two islands and seven bridges. Is it possible,
by beginning anywhere and ending anywhere, to walk through the
town by crossing all seven bridges but not crossing any bridge twice?
Eulerizing a graph
 Modifying a graph by adding extra edges in such a
way that the odd vertices become even vertices.
 The process of changing a graph by adding additional
edges so that odd vertices are eliminated is called
Eulerizing the graph.
 Note: The edges that we add must be duplicates of
edges that already exist. The idea is to cover the
edges of the original graph in the best possible way
without creating any new.
Eulerizing Graphs
First step is to identify the
odd vertices.
Second step is to add
duplicate copies of edges to
create all even vertices
OPTIMAL
ROUTE:
duplicate the
fewest
number of
edges
NOT an
optimal
route
illegal
route
Semi- eularization of the graph
 We are not required to start and end at the
same vertex.
 We duplicate as many edges as needed to
eliminate all odd vertices except for two,
which we allow to remain odd.
 We then use one of the odd vertices as the
starting point and we will end up to the other
odd vertex.
Semi-Eulerizing Graphs
First step is to identify the odd
vertices.
Second step is leave out 2 odd
vertices and add duplicate copies
of edges to create even vertices
OPTIMAL
ROUTE:
duplicate the
fewest
number of
edges
NOT an
optimal
route
illegal
route
Fleurys Algorithm
 Finds an Euler circuit in a connected graph
with no odd vertices.
 Finds an Euler path in a connected graph with
two odd vertices.
 The idea behind the algorithm: Dont burn
your bridges behind you.
A B
Bridge
We would only want to cross that bridge if we know
that all edges in A have been traveled.
Fleurys Algorithm
 Let G be an Eulerian graph.
 STEP 1: Choose any vertex v of G and set current vertex equal to v and
current trail equal to the empty sequence of edges.
 STEP 2: Select any edge e incident with the current vertex but choosing a
bridge only if there is no alternative.
 STEP 3: Add e to the current trail and set the current vertex equal to the
vertex at the other end of e. [If e is a loop, the current vertex will not
move.]
 STEP 4: Delete e from the graph. Delete any isolated vertices.
 Repeat steps 2  4 until all edges have been deleted from G. The final
current trail is an Eulerian trail in G.
Fleurys Theorem
 Every time we traverse another edge, we erase it from
copy 1 but mark (red) and level it with the
appropriate number on copy 2.
 Copy 1 gets smaller and cop2 gets redder.
 Copy 1 helps us decide where to go next; copy 2
helps us reconstruct our trip.
Copy 1
A
B
C D
E F
B
C D
E F
Copy 2
Start at F (arbitrarily)
Fleurys Theorem
Copy 1
B
C D
E F
A
B
C D
E F
Copy 2
Step 1: Travel from F to C
Could have also travel
from F to D
A
Fleurys Theorem
Copy 1
B
C D
E F
A
B
C D
E F
Copy 2
Step 2: Travel from C to D
Could have also travel
to A or to E
1
2
A
Fleurys Theorem
Copy 1
B
C D
E F
A
B
C D
E F
Copy 2
Step 3: Travel from D to A
Could have also travel
to B but not to F  DF is a bridge!
1
2
A
3
Fleurys Theorem
Copy 1
B
C D
E F
A
B
C D
E F
Copy 2
Step 4: Travel from A to C
Could have also travel
to E but not to B  AB is a bridge!
1
2
A
3
4
Fleurys Theorem
Copy 1
B
C D
E F
A
B
C D
E F
Copy 2
Step 5: Travel from C to E
There is no choice!
1
2
A
3
4
5
Fleurys Theorem
Copy 1
B
C D
E F
Copy 2
Steps 6, 7, 8, and 9: Only one way to go at each step
1
2
A
3
4
5
6
7
8
9
Fleurys Algorithm for finding Euler
circuit
 First make sure that the graph is connected and all
the vertices have even degree.
 Pick any vertex as the stating point
 When you have a choice, always choose to travel
along an edge that is not a bridge of the yet-to-be-
traveled part of the graph
 Label the edges in the order in which we travel them
 When we cannot travel any more, stop. we are done.
APPLICATIONS
 Chinese postman problem
 Communicating networks
 Tourist guide
Thank you

More Related Content

What's hot (20)

Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
Core Condor
Graph theory
Graph theory Graph theory
Graph theory
iranian translate
Real life application
Real life applicationReal life application
Real life application
umadeviR3
Dijkstra's algorithm
Dijkstra's algorithmDijkstra's algorithm
Dijkstra's algorithm
gsp1294
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
Tech_MX
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
Bhavik Vashi
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Yosuke Mizutani
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
sana younas
Graph Theory
Graph TheoryGraph Theory
Graph Theory
Rashmi Bhat
Introduction to Graph Theory
Introduction to Graph  TheoryIntroduction to Graph  Theory
Introduction to Graph Theory
Manash Kumar Mondal
Graph Theory
Graph TheoryGraph Theory
Graph Theory
kailash shaw
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answers
appasami
Floyd Warshall Algorithm
Floyd Warshall AlgorithmFloyd Warshall Algorithm
Floyd Warshall Algorithm
InteX Research Lab
Graph theory
Graph theoryGraph theory
Graph theory
Thirunavukarasu Mani
graph.ppt
graph.pptgraph.ppt
graph.ppt
RakeshPandey951330
Graph representation
Graph representationGraph representation
Graph representation
Tech_MX
Graph coloring
Graph coloringGraph coloring
Graph coloring
Rashika Ahuja
Graphs in data structure
Graphs in data structureGraphs in data structure
Graphs in data structure
hamza javed
Graph-theory.ppt
Graph-theory.pptGraph-theory.ppt
Graph-theory.ppt
AlpaSinghRajput1
Graph data structure and algorithms
Graph data structure and algorithmsGraph data structure and algorithms
Graph data structure and algorithms
Anandhasilambarasan D
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
Core Condor
Real life application
Real life applicationReal life application
Real life application
umadeviR3
Dijkstra's algorithm
Dijkstra's algorithmDijkstra's algorithm
Dijkstra's algorithm
gsp1294
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
Tech_MX
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
Bhavik Vashi
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Yosuke Mizutani
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
sana younas
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answers
appasami
Graph representation
Graph representationGraph representation
Graph representation
Tech_MX
Graphs in data structure
Graphs in data structureGraphs in data structure
Graphs in data structure
hamza javed
Graph data structure and algorithms
Graph data structure and algorithmsGraph data structure and algorithms
Graph data structure and algorithms
Anandhasilambarasan D

Similar to Euler graph (20)

Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
abas1333
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
Robert Almazan
distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
ansariparveen06
Graph theory
Graph theoryGraph theory
Graph theory
manikanta361
Koningsberg bridge problem
Koningsberg  bridge  problemKoningsberg  bridge  problem
Koningsberg bridge problem
Sudiksha Joshi
Graph ds
Graph dsGraph ds
Graph ds
university of Gujrat, pakistan
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............
eustaquiojm1
koningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxkoningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptx
Alpa Rajput
Graph-Theory-and-Management-Science-2-Fleurys-Algorithm-and-Eulerizing.pptx
Graph-Theory-and-Management-Science-2-Fleurys-Algorithm-and-Eulerizing.pptxGraph-Theory-and-Management-Science-2-Fleurys-Algorithm-and-Eulerizing.pptx
Graph-Theory-and-Management-Science-2-Fleurys-Algorithm-and-Eulerizing.pptx
MuhammadMuqrrab1
Math
MathMath
Math
blackbox90s
ch10.5.pptx
ch10.5.pptxch10.5.pptx
ch10.5.pptx
GauravGautam216125
Konigsberg Bridge Problem_Graph Theory.pptx
Konigsberg Bridge Problem_Graph Theory.pptxKonigsberg Bridge Problem_Graph Theory.pptx
Konigsberg Bridge Problem_Graph Theory.pptx
granjith6
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure
Mitul Desai
nossi ch 6
nossi ch 6nossi ch 6
nossi ch 6
lesaturner
Ds lec 5_chap4
Ds lec 5_chap4Ds lec 5_chap4
Ds lec 5_chap4
Self-Employed
Presentation on graphs
Presentation on graphsPresentation on graphs
Presentation on graphs
ForwardBlog Enewzletter
Graphs.pptx topic in discrete mathematics
Graphs.pptx topic in discrete mathematicsGraphs.pptx topic in discrete mathematics
Graphs.pptx topic in discrete mathematics
mahrukhsultan17
Depth first traversal(data structure algorithms)
Depth first traversal(data structure algorithms)Depth first traversal(data structure algorithms)
Depth first traversal(data structure algorithms)
bhuvaneshwariA5
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
Hector Zenil
Graph algorithm
Graph algorithmGraph algorithm
Graph algorithm
University of Potsdam
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
abas1333
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
Robert Almazan
distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
ansariparveen06
Koningsberg bridge problem
Koningsberg  bridge  problemKoningsberg  bridge  problem
Koningsberg bridge problem
Sudiksha Joshi
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............
eustaquiojm1
koningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptxkoningsbergproblem-140215072342-phpapp02 (1).pptx
koningsbergproblem-140215072342-phpapp02 (1).pptx
Alpa Rajput
Graph-Theory-and-Management-Science-2-Fleurys-Algorithm-and-Eulerizing.pptx
Graph-Theory-and-Management-Science-2-Fleurys-Algorithm-and-Eulerizing.pptxGraph-Theory-and-Management-Science-2-Fleurys-Algorithm-and-Eulerizing.pptx
Graph-Theory-and-Management-Science-2-Fleurys-Algorithm-and-Eulerizing.pptx
MuhammadMuqrrab1
Konigsberg Bridge Problem_Graph Theory.pptx
Konigsberg Bridge Problem_Graph Theory.pptxKonigsberg Bridge Problem_Graph Theory.pptx
Konigsberg Bridge Problem_Graph Theory.pptx
granjith6
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure
Mitul Desai
Graphs.pptx topic in discrete mathematics
Graphs.pptx topic in discrete mathematicsGraphs.pptx topic in discrete mathematics
Graphs.pptx topic in discrete mathematics
mahrukhsultan17
Depth first traversal(data structure algorithms)
Depth first traversal(data structure algorithms)Depth first traversal(data structure algorithms)
Depth first traversal(data structure algorithms)
bhuvaneshwariA5

Recently uploaded (20)

How Engineering Model Making Brings Designs to Life.pdf
How Engineering Model Making Brings Designs to Life.pdfHow Engineering Model Making Brings Designs to Life.pdf
How Engineering Model Making Brings Designs to Life.pdf
Maadhu Creatives-Model Making Company
04 MAINTENANCE OF CONCRETE PAVEMENTS.ppt
04  MAINTENANCE OF CONCRETE PAVEMENTS.ppt04  MAINTENANCE OF CONCRETE PAVEMENTS.ppt
04 MAINTENANCE OF CONCRETE PAVEMENTS.ppt
sreenath seenu
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptxRAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
JenTeruel1
Piping-and-pipeline-calculations-manual.pdf
Piping-and-pipeline-calculations-manual.pdfPiping-and-pipeline-calculations-manual.pdf
Piping-and-pipeline-calculations-manual.pdf
OMI0721
Best KNow Hydrogen Fuel Production in the World The cost in USD kwh for H2
Best KNow  Hydrogen Fuel Production in the World The cost in USD kwh for H2Best KNow  Hydrogen Fuel Production in the World The cost in USD kwh for H2
Best KNow Hydrogen Fuel Production in the World The cost in USD kwh for H2
Daniel Donatelli
Lessons learned when managing MySQL in the Cloud
Lessons learned when managing MySQL in the CloudLessons learned when managing MySQL in the Cloud
Lessons learned when managing MySQL in the Cloud
Igor Donchovski
GM Meeting 070225 TO 130225 for 2024.pptx
GM Meeting 070225 TO 130225 for 2024.pptxGM Meeting 070225 TO 130225 for 2024.pptx
GM Meeting 070225 TO 130225 for 2024.pptx
crdslalcomumbai
Multi objective genetic approach with Ranking
Multi objective genetic approach with RankingMulti objective genetic approach with Ranking
Multi objective genetic approach with Ranking
namisha18
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
Cloud Computing concepts and technologies
Cloud Computing concepts and technologiesCloud Computing concepts and technologies
Cloud Computing concepts and technologies
ssuser4c9444
Lectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).pptLectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).ppt
SherifElGohary7
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
Thane Heins NOBEL PRIZE WINNING ENERGY RESEARCHER
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
slayshadow705
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
ASHISHDESAI85
Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...
dhanashree78
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptxUNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
KesavanT10
Unit II: Design of Static Equipment Foundations
Unit II: Design of Static Equipment FoundationsUnit II: Design of Static Equipment Foundations
Unit II: Design of Static Equipment Foundations
Sanjivani College of Engineering, Kopargaon
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Brian Gongol
Cyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptxCyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptx
Harshith A S
04 MAINTENANCE OF CONCRETE PAVEMENTS.ppt
04  MAINTENANCE OF CONCRETE PAVEMENTS.ppt04  MAINTENANCE OF CONCRETE PAVEMENTS.ppt
04 MAINTENANCE OF CONCRETE PAVEMENTS.ppt
sreenath seenu
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptxRAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
JenTeruel1
Piping-and-pipeline-calculations-manual.pdf
Piping-and-pipeline-calculations-manual.pdfPiping-and-pipeline-calculations-manual.pdf
Piping-and-pipeline-calculations-manual.pdf
OMI0721
Best KNow Hydrogen Fuel Production in the World The cost in USD kwh for H2
Best KNow  Hydrogen Fuel Production in the World The cost in USD kwh for H2Best KNow  Hydrogen Fuel Production in the World The cost in USD kwh for H2
Best KNow Hydrogen Fuel Production in the World The cost in USD kwh for H2
Daniel Donatelli
Lessons learned when managing MySQL in the Cloud
Lessons learned when managing MySQL in the CloudLessons learned when managing MySQL in the Cloud
Lessons learned when managing MySQL in the Cloud
Igor Donchovski
GM Meeting 070225 TO 130225 for 2024.pptx
GM Meeting 070225 TO 130225 for 2024.pptxGM Meeting 070225 TO 130225 for 2024.pptx
GM Meeting 070225 TO 130225 for 2024.pptx
crdslalcomumbai
Multi objective genetic approach with Ranking
Multi objective genetic approach with RankingMulti objective genetic approach with Ranking
Multi objective genetic approach with Ranking
namisha18
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
Cloud Computing concepts and technologies
Cloud Computing concepts and technologiesCloud Computing concepts and technologies
Cloud Computing concepts and technologies
ssuser4c9444
Lectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).pptLectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).ppt
SherifElGohary7
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
slayshadow705
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
ASHISHDESAI85
Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...
dhanashree78
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptxUNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
KesavanT10
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Brian Gongol
Cyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptxCyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptx
Harshith A S

Euler graph

  • 1. EULER GRAPH PRESENTED : AAQIB ASHRAF PARREY
  • 2. Graphs consist of points called vertices lines called edges 1. Edges connect two vertices. 2. Edges only intersect at vertices. 3. Edges joining a vertex to itself are called loops. The following picture is a graph. A B C D E
  • 3. EULER GRAPH A graph is called Eulerian if it has an Eulerian Cycle and called Semi-Eulerian if it has an Eulerian Path. An Eulerian cycle (path) is a sub_graph Ge = (V;Ee) of G = (V;E) which passes exactly once through each edge of G. G must thus be connected and all vertices V are visited (perhaps more than once). We then says that G is Eulerian
  • 4. Euler Circuit and Euler path When a graph has no vertices of odd degree, then it has at least one Euler circuit. When a graph has exactly two vertices of odd degree, then it has at least one Euler path. When a graph has more than two vertices of odd degree, then There is no Euler circuit or Euler path There is no possible way that we can travel along all the edges of the graph without having to cross some of them more than once.
  • 5. Euler circuit & Euler path How we will find a route that covers all the edges of the graph while revisiting the least possible number of edges (deadhead travel)? In real-world problems, The cost is proportional to the amount of travel. Total cost of a route = cost of traveling original edges in the graph + cost of deadhead travel
  • 6. The bridges of Konigsberg problem Seven bridges of Konigsberg problem, was first solved by Euler in the eighteenth century. The problem was rather simple. The town of Konigsberg consists of two islands and seven bridges. Is it possible, by beginning anywhere and ending anywhere, to walk through the town by crossing all seven bridges but not crossing any bridge twice?
  • 7. Eulerizing a graph Modifying a graph by adding extra edges in such a way that the odd vertices become even vertices. The process of changing a graph by adding additional edges so that odd vertices are eliminated is called Eulerizing the graph. Note: The edges that we add must be duplicates of edges that already exist. The idea is to cover the edges of the original graph in the best possible way without creating any new.
  • 8. Eulerizing Graphs First step is to identify the odd vertices. Second step is to add duplicate copies of edges to create all even vertices OPTIMAL ROUTE: duplicate the fewest number of edges NOT an optimal route illegal route
  • 9. Semi- eularization of the graph We are not required to start and end at the same vertex. We duplicate as many edges as needed to eliminate all odd vertices except for two, which we allow to remain odd. We then use one of the odd vertices as the starting point and we will end up to the other odd vertex.
  • 10. Semi-Eulerizing Graphs First step is to identify the odd vertices. Second step is leave out 2 odd vertices and add duplicate copies of edges to create even vertices OPTIMAL ROUTE: duplicate the fewest number of edges NOT an optimal route illegal route
  • 11. Fleurys Algorithm Finds an Euler circuit in a connected graph with no odd vertices. Finds an Euler path in a connected graph with two odd vertices. The idea behind the algorithm: Dont burn your bridges behind you. A B Bridge We would only want to cross that bridge if we know that all edges in A have been traveled.
  • 12. Fleurys Algorithm Let G be an Eulerian graph. STEP 1: Choose any vertex v of G and set current vertex equal to v and current trail equal to the empty sequence of edges. STEP 2: Select any edge e incident with the current vertex but choosing a bridge only if there is no alternative. STEP 3: Add e to the current trail and set the current vertex equal to the vertex at the other end of e. [If e is a loop, the current vertex will not move.] STEP 4: Delete e from the graph. Delete any isolated vertices. Repeat steps 2 4 until all edges have been deleted from G. The final current trail is an Eulerian trail in G.
  • 13. Fleurys Theorem Every time we traverse another edge, we erase it from copy 1 but mark (red) and level it with the appropriate number on copy 2. Copy 1 gets smaller and cop2 gets redder. Copy 1 helps us decide where to go next; copy 2 helps us reconstruct our trip. Copy 1 A B C D E F B C D E F Copy 2 Start at F (arbitrarily)
  • 14. Fleurys Theorem Copy 1 B C D E F A B C D E F Copy 2 Step 1: Travel from F to C Could have also travel from F to D A
  • 15. Fleurys Theorem Copy 1 B C D E F A B C D E F Copy 2 Step 2: Travel from C to D Could have also travel to A or to E 1 2 A
  • 16. Fleurys Theorem Copy 1 B C D E F A B C D E F Copy 2 Step 3: Travel from D to A Could have also travel to B but not to F DF is a bridge! 1 2 A 3
  • 17. Fleurys Theorem Copy 1 B C D E F A B C D E F Copy 2 Step 4: Travel from A to C Could have also travel to E but not to B AB is a bridge! 1 2 A 3 4
  • 18. Fleurys Theorem Copy 1 B C D E F A B C D E F Copy 2 Step 5: Travel from C to E There is no choice! 1 2 A 3 4 5
  • 19. Fleurys Theorem Copy 1 B C D E F Copy 2 Steps 6, 7, 8, and 9: Only one way to go at each step 1 2 A 3 4 5 6 7 8 9
  • 20. Fleurys Algorithm for finding Euler circuit First make sure that the graph is connected and all the vertices have even degree. Pick any vertex as the stating point When you have a choice, always choose to travel along an edge that is not a bridge of the yet-to-be- traveled part of the graph Label the edges in the order in which we travel them When we cannot travel any more, stop. we are done.
  • 21. APPLICATIONS Chinese postman problem Communicating networks Tourist guide