1 / 10

Euler and Hamilton Paths

Euler and Hamilton Paths. Section 9.5. C. c. D. A. d. a. B. b. Euler Paths and Circuits. Seven bridges of K ö nigsberg. C. What about this one?. D. A. B. Euler Paths and Circuits. An Euler path is a path using every edge of the graph G exactly once.

saxton
Télécharger la présentation

Euler and Hamilton Paths

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Euler and Hamilton Paths Section 9.5 CSE 2813 Discrete Structures

  2. C c D A d a B b Euler Paths and Circuits • Seven bridges of Königsberg CSE 2813 Discrete Structures

  3. C • What about this one? D A B Euler Paths and Circuits • An Euler path is a path using every edge of the graph G exactly once. • An Euler circuit is an Euler path that returns to its start. CSE 2813 Discrete Structures

  4. Necessary and Sufficient Conditions • Theorem:A connected multigraph has a Euler circuit iff each of its vertices has an even degree. • Theorem:A connected multigraph has a Euler path but not an Euler circuit iff it has exactly two vertices of odd degree. CSE 2813 Discrete Structures

  5. a a a b b b e e e c c d c d d Example • Which of the following graphs have an Euler circuit? Which have an Euler path? CSE 2813 Discrete Structures

  6. Hamilton Paths and Circuits • A Hamilton path in a graph G is a path which visits every vertex in G exactly once. • A Hamilton circuit is a Hamilton path that returns to its start. CSE 2813 Discrete Structures

  7. Finding Hamilton Circuits • Unlike the Euler circuit problem, finding Hamilton circuits is hard. • There is no simple set of necessary and sufficient conditions, and no simple algorithm. CSE 2813 Discrete Structures

  8. Properties to look for ... • No vertex of degree 1 • If a node has degree 2, then both edges incident to it must be in any Hamilton circuit. • No smaller circuits contained in any Hamilton circuit (the start/endpoint of any smaller circuit would have to be visited twice). CSE 2813 Discrete Structures

  9. A Sufficient Condition • Let G be a connected simple graph with n vertices with n 3. G has a Hamilton circuit if the degree of each vertex is  n/2. CSE 2813 Discrete Structures

  10. Summary YES NO NO NO NO NO NO YES CSE 2813 Discrete Structures

More Related