SlideShare une entreprise Scribd logo
1  sur  15
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 !

Contenu connexe

Tendances

Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Mohanlal Sukhadia University (MLSU)
 
Hamilton paths and circuit
Hamilton paths and circuitHamilton paths and circuit
Hamilton paths and circuitSohag Babu
 
Isomorphism (Graph)
Isomorphism (Graph) Isomorphism (Graph)
Isomorphism (Graph) Pritam Shil
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphismCore Condor
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Rachana Pathak
 
Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)sobia1122
 
Graph Theory: Planarity & Dual Graph
Graph Theory: Planarity & Dual GraphGraph Theory: Planarity & Dual Graph
Graph Theory: Planarity & Dual GraphAshikur Rahman
 

Tendances (20)

Graph theory
Graph theoryGraph theory
Graph theory
 
Echelon forms
Echelon formsEchelon forms
Echelon forms
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
 
Graph theory
Graph theory Graph theory
Graph theory
 
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
 
Hamilton paths and circuit
Hamilton paths and circuitHamilton paths and circuit
Hamilton paths and circuit
 
Isomorphism (Graph)
Isomorphism (Graph) Isomorphism (Graph)
Isomorphism (Graph)
 
Bfs and Dfs
Bfs and DfsBfs and Dfs
Bfs and Dfs
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Graph colouring
Graph colouringGraph colouring
Graph colouring
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
Graph Theory: Trees
Graph Theory: TreesGraph Theory: Trees
Graph Theory: Trees
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
 
Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)
 
Graph Theory: Planarity & Dual Graph
Graph Theory: Planarity & Dual GraphGraph Theory: Planarity & Dual Graph
Graph Theory: Planarity & Dual Graph
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graph coloring
Graph coloringGraph coloring
Graph coloring
 
AVL Tree in Data Structure
AVL Tree in Data Structure AVL Tree in Data Structure
AVL Tree in Data Structure
 
Connectivity of graph
Connectivity of graphConnectivity of graph
Connectivity of graph
 

Similaire à Hamilton path and euler path

Similaire à Hamilton path and euler path (20)

distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
 
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
 
ch10.5.pptx
ch10.5.pptxch10.5.pptx
ch10.5.pptx
 
Euleria
EuleriaEuleria
Euleria
 
CST 504 Graphs
CST 504 GraphsCST 504 Graphs
CST 504 Graphs
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Bioalgo 2012-02-graphs
Bioalgo 2012-02-graphsBioalgo 2012-02-graphs
Bioalgo 2012-02-graphs
 
Ch08 graphsdnaseq
Ch08 graphsdnaseqCh08 graphsdnaseq
Ch08 graphsdnaseq
 
Bridge problem : Discrete Structure
Bridge problem : Discrete Structure Bridge problem : Discrete Structure
Bridge problem : Discrete Structure
 
1550 ladders, couches, and envel
1550 ladders, couches, and envel1550 ladders, couches, and envel
1550 ladders, couches, and envel
 
Euler graph
Euler graphEuler graph
Euler graph
 
Slide task 6
Slide task 6Slide task 6
Slide task 6
 
Fleurys abas abbasli_
Fleurys abas  abbasli_Fleurys abas  abbasli_
Fleurys abas abbasli_
 
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
 
Koningsberg bridge problem
Koningsberg  bridge  problemKoningsberg  bridge  problem
Koningsberg bridge problem
 
Presentation on graphs
Presentation on graphsPresentation on graphs
Presentation on graphs
 
Graphs: Hamiltonian Path and Circuit
 Graphs: Hamiltonian Path and Circuit Graphs: Hamiltonian Path and Circuit
Graphs: Hamiltonian Path and Circuit
 
Graph theory Eulerian graph
Graph theory Eulerian graphGraph theory Eulerian graph
Graph theory Eulerian graph
 
08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx
 
Graph ds
Graph dsGraph ds
Graph ds
 

Dernier

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 

Dernier (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 

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