SlideShare a Scribd company logo
Hamilton Path
and
Euler Path
Things we are going to discuss
 History of Euler path and Hamilton path
 Vertex(node) and edge
 Hamilton path and Hamilton circuit
 Euler path and Euler circuit
 Degree of vertex and comparison of Euler and Hamilton path
 Solving a problem
History of Euler Path
Euler path was first discussed by
Leonhard Euler while solving the famous
Seven Bridges of Konigsberg problem
in 1736. The problem can be stated
mathematically like this:
a
b
c
d
History of Hamilton Path
 Hamiltonian paths and cycles
are named after William Rowan
Hamilton who invented the
ICOSIAN game, now also
known as Hamilton's puzzle,
which involves finding a
Hamiltonian cycle in the edge
graph of the dodecahedron
Vertex
Vertex :
Vertex typically means a
corner or a point where
lines meet.
Vertex
Not a Vertex
Edge:
An edge is a line segment that
joins two vertices
Edge
Edge
Hamiltonian Path and circuits
In graph theory, an Hamilton path is a path which visits
every vertex exactly once. Similarly, an Hamilton circuit is a
circuit which starts and ends on the same vertex.
 This has a Hamilton Path and a
Hamilton circuit
 This has a Hamilton Path , but does not
have a Hamilton circuit
 This has no Hamilton Path
Euler path and circuit
In graph theory, an Euler path is a path
which visits every edge exactly once.
Similarly, an Eulerian circuit or Eulerian
cycle is an Eulerian trail which starts and
ends on the same vertex.
This has an Euler Path and an Euler
circuit
This has an Euler Path , but does not
have an Euler circuit
This has no Hamilton Path
Degree of Vertex
The degree of a vertex is the number
of edges of the vertex.
Comparison of Euler and Hamilton circuits
Property Euler Hamilton
Repeated visits to a
given node allowed?
Repeated traversals of a
given edge allowed?
Omitted nodes allowed?
Omitted edges allowed?
YES NO
NO NO
NO NO
NO YES
in the image, is it possible to
construct a path ( a path starting and
ending on the same vertex) which
visits each edge exactly once?
Seven Bridges Problem
A
B
C
D
a
b
c
d
Solve
We know that ,
 An Euler Circuit is possible if every vertex has
even degree.
 An Euler path is possible but Euler Circuit is
possible ,if exactly two vertices have odd
degree.
 No Euler Path is possible if more than two
vertices have odd degree.
a
b
c
d
THERE IS NO EULERS PATH
THANK YOU !
Ad

More Related Content

What's hot (20)

GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONS
Manojit Chakraborty
 
Euler graph
Euler graphEuler graph
Euler graph
AAQIB PARREY
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
Sikder Tahsin Al-Amin
 
Graph colouring
Graph colouringGraph colouring
Graph colouring
Priyank Jain
 
Graph coloring problem
Graph coloring problemGraph coloring problem
Graph coloring problem
V.V.Vanniaperumal College for Women
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
Fahim Ferdous
 
Graph coloring and_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applications
mohammad alkhalil
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
sana younas
 
Introduction to algorithms
Introduction to algorithmsIntroduction to algorithms
Introduction to algorithms
subhashchandra197
 
Graph representation
Graph representationGraph representation
Graph representation
Tech_MX
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
Amar Jukuntla
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
Ehsan Hamzei
 
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...
RahulSharma4566
 
Greedy Algorihm
Greedy AlgorihmGreedy Algorihm
Greedy Algorihm
Muhammad Amjad Rana
 
Coloring graphs
Coloring graphsColoring graphs
Coloring graphs
Vikas Sharma
 
Graph theory and its applications
Graph theory and its applicationsGraph theory and its applications
Graph theory and its applications
Manikanta satyala
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structure
Abrish06
 
Euler paths and circuits
Euler paths and circuitsEuler paths and circuits
Euler paths and circuits
03446940736
 
Approximation Algorithms TSP
Approximation Algorithms   TSPApproximation Algorithms   TSP
Approximation Algorithms TSP
P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
Rashmi Bhat
 

Similar to Hamilton path and euler path (20)

distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
ansariparveen06
 
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
 
ch10.5.pptx
ch10.5.pptxch10.5.pptx
ch10.5.pptx
GauravGautam216125
 
Graphs.pptx topic in discrete mathematics
Graphs.pptx topic in discrete mathematicsGraphs.pptx topic in discrete mathematics
Graphs.pptx topic in discrete mathematics
mahrukhsultan17
 
Euleria
EuleriaEuleria
Euleria
narca
 
Hamilton circuits7 19and22
Hamilton circuits7 19and22Hamilton circuits7 19and22
Hamilton circuits7 19and22
shivam19942
 
CST 504 Graphs
CST 504 GraphsCST 504 Graphs
CST 504 Graphs
Neil MacIntosh
 
Graph theory
Graph theoryGraph theory
Graph theory
manikanta361
 
Bioalgo 2012-02-graphs
Bioalgo 2012-02-graphsBioalgo 2012-02-graphs
Bioalgo 2012-02-graphs
BioinformaticsInstitute
 
Ch08 graphsdnaseq
Ch08 graphsdnaseqCh08 graphsdnaseq
Ch08 graphsdnaseq
BioinformaticsInstitute
 
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure
Mitul Desai
 
1550 ladders, couches, and envel
1550 ladders, couches, and envel1550 ladders, couches, and envel
1550 ladders, couches, and envel
Dr Fereidoun Dejahang
 
Slide task 6
Slide task 6Slide task 6
Slide task 6
Hafiz Safwan
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
abas1333
 
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
 
Koningsberg bridge problem
Koningsberg  bridge  problemKoningsberg  bridge  problem
Koningsberg bridge problem
Sudiksha Joshi
 
Presentation on graphs
Presentation on graphsPresentation on graphs
Presentation on graphs
ForwardBlog Enewzletter
 
Graphs: Hamiltonian Path and Circuit
 Graphs: Hamiltonian Path and Circuit Graphs: Hamiltonian Path and Circuit
Graphs: Hamiltonian Path and Circuit
Liwayway Memije-Cruz
 
Graph theory Eulerian graph
Graph theory Eulerian graphGraph theory Eulerian graph
Graph theory Eulerian graph
rajeshree nanaware
 
08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx
RajnikantPandey11
 
distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
ansariparveen06
 
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
 
Graphs.pptx topic in discrete mathematics
Graphs.pptx topic in discrete mathematicsGraphs.pptx topic in discrete mathematics
Graphs.pptx topic in discrete mathematics
mahrukhsultan17
 
Euleria
EuleriaEuleria
Euleria
narca
 
Hamilton circuits7 19and22
Hamilton circuits7 19and22Hamilton circuits7 19and22
Hamilton circuits7 19and22
shivam19942
 
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure
Mitul Desai
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
abas1333
 
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
 
Koningsberg bridge problem
Koningsberg  bridge  problemKoningsberg  bridge  problem
Koningsberg bridge problem
Sudiksha Joshi
 
Graphs: Hamiltonian Path and Circuit
 Graphs: Hamiltonian Path and Circuit Graphs: Hamiltonian Path and Circuit
Graphs: Hamiltonian Path and Circuit
Liwayway Memije-Cruz
 
08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx
RajnikantPandey11
 
Ad

Recently uploaded (20)

Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
Ad

Hamilton path and euler path

  • 2. Things we are going to discuss  History of Euler path and Hamilton path  Vertex(node) and edge  Hamilton path and Hamilton circuit  Euler path and Euler circuit  Degree of vertex and comparison of Euler and Hamilton path  Solving a problem
  • 3. History of Euler Path Euler path was first discussed by Leonhard Euler while solving the famous Seven Bridges of Konigsberg problem in 1736. The problem can be stated mathematically like this: a b c d
  • 4. History of Hamilton Path  Hamiltonian paths and cycles are named after William Rowan Hamilton who invented the ICOSIAN game, now also known as Hamilton's puzzle, which involves finding a Hamiltonian cycle in the edge graph of the dodecahedron
  • 5. Vertex Vertex : Vertex typically means a corner or a point where lines meet. Vertex Not a Vertex
  • 6. Edge: An edge is a line segment that joins two vertices Edge Edge
  • 7. Hamiltonian Path and circuits In graph theory, an Hamilton path is a path which visits every vertex exactly once. Similarly, an Hamilton circuit is a circuit which starts and ends on the same vertex.
  • 8.  This has a Hamilton Path and a Hamilton circuit  This has a Hamilton Path , but does not have a Hamilton circuit  This has no Hamilton Path
  • 9. Euler path and circuit In graph theory, an Euler path is a path which visits every edge exactly once. Similarly, an Eulerian circuit or Eulerian cycle is an Eulerian trail which starts and ends on the same vertex.
  • 10. This has an Euler Path and an Euler circuit This has an Euler Path , but does not have an Euler circuit This has no Hamilton Path
  • 11. Degree of Vertex The degree of a vertex is the number of edges of the vertex.
  • 12. Comparison of Euler and Hamilton circuits Property Euler Hamilton Repeated visits to a given node allowed? Repeated traversals of a given edge allowed? Omitted nodes allowed? Omitted edges allowed? YES NO NO NO NO NO NO YES
  • 13. in the image, is it possible to construct a path ( a path starting and ending on the same vertex) which visits each edge exactly once? Seven Bridges Problem A B C D a b c d
  • 14. Solve We know that ,  An Euler Circuit is possible if every vertex has even degree.  An Euler path is possible but Euler Circuit is possible ,if exactly two vertices have odd degree.  No Euler Path is possible if more than two vertices have odd degree. a b c d THERE IS NO EULERS PATH