ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalMATH2113Eulerian Hamiltonian P…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    MATH2113

    Discrete Mathematics

    Progress0 / 25 done
    Topics25
    1Sets, Subsets, Algebra of Sets2Propositions and Compound Statements3Basic Logical Operations4Propositional Logic and its Applications with Statement Problems5Propositions and Truth Tables6Tautologies and Contradictions7Conditional and Bi-conditional Statements8Arguments in Propositional Logic9Propositional Functions10Quantifiers and Negation of Quantified Statements11Relations and Equivalence Relations12Partial Ordering Relations13Functions and Recursively Defined Functions
    14Basics of Counting Methods15Combinations and Permutations16Pigeonhole Principle17Graphs and its Types18Graph Isomorphism19Trees in Graph Theory20Connectivity in Graphs21Eulerian and Hamiltonian Paths22Spanning Trees and Shortest Path Problem
    23Power, Floor, Increasing, Decreasing24Big O, Little O and Omega Notations25Orders of the Polynomial Functions
    8 min read
    Topic 21 of 25
    Topic Study Note Illustration
    21

    Eulerian and Hamiltonian Paths

    Eulerian and Hamiltonian Paths


    Eulerian and Hamiltonian Paths


    In graph theory, Eulerian and Hamiltonian paths are two distinct types of paths that have specific properties related to the traversal of a graph. Understanding these paths is important in applications like circuit design, routing, and network analysis. The key difference between the two lies in how the vertices and edges are used during the traversal.


    1. Eulerian Path and Circuit

    An Eulerian path in a graph is a path that visits every edge of the graph exactly once. An Eulerian circuit (or cycle) is an Eulerian path that starts and ends at the same vertex.

    a) Conditions for an Eulerian Path

    For an undirected graph to have an Eulerian path, the following conditions must hold:

    1. Exactly 0 or 2 vertices have an odd degree.
    2. All the vertices with nonzero degree are connected (the graph must be connected when considering only the vertices with edges).
    • If there are exactly 0 vertices with odd degrees, then the graph contains an Eulerian circuit (which is also an Eulerian path).
    • If there are exactly 2 vertices with odd degrees, the graph contains an Eulerian path but no Eulerian circuit.

    b) Conditions for an Eulerian Circuit

    For an undirected graph to have an Eulerian circuit, the following conditions must hold:

    1. All vertices must have an even degree.
    2. The graph must be connected when considering only the vertices with edges.

    If a graph satisfies these two conditions, it contains an Eulerian circuit.

    Example:

    Consider the graph with vertices A,B,C,DA, B, C, DA,B,C,D and edges AB,BC,CD,DA,ACAB, BC, CD, DA, ACAB,BC,CD,DA,AC.

    • All vertices have an even degree, so this graph contains an Eulerian circuit.
    • A possible Eulerian path might be A→B→C→D→AA \rightarrow B \rightarrow C \rightarrow D \rightarrow AA→B→C→D→A.

    Applications of Eulerian Paths and Circuits:

    1. Chinese Postman Problem: The goal is to find the shortest path that visits every edge of a graph (usually a road network) at least once. The problem is closely related to finding Eulerian paths and circuits.
    2. Network Routing: Efficiently routing tasks or packages through a network where every connection (edge) needs to be visited exactly once.

    2. Hamiltonian Path and Circuit

    A Hamiltonian path is a path that visits every vertex of the graph exactly once. A Hamiltonian circuit (or cycle) is a Hamiltonian path that starts and ends at the same vertex.

    a) Conditions for a Hamiltonian Path

    Unlike Eulerian paths, there is no simple characterization or formula for when a graph has a Hamiltonian path. In general, finding a Hamiltonian path is more complex and does not depend solely on vertex degrees.

    However, some heuristics and theorems provide useful conditions or approaches:

    • Dirac's Theorem: A graph with n≥3n \geq 3n≥3 vertices is Hamiltonian-connected if every vertex has a degree of at least n/2n/2n/2.
    • Ore’s Theorem: A graph with n≥3n \geq 3n≥3 vertices is Hamiltonian-connected if for every pair of non-adjacent vertices, the sum of their degrees is at least nnn.

    b) Conditions for a Hamiltonian Circuit

    Similarly, the conditions for a Hamiltonian circuit are more complex and involve graph-specific analysis. However, sufficient conditions can be used for specific types of graphs.

    • Dirac’s Theorem: If every vertex in a graph has degree at least n/2n/2n/2, then the graph contains a Hamiltonian cycle (if n≥3n \geq 3n≥3).
    • Chvátal’s Theorem: A graph is Hamiltonian if it satisfies certain degree conditions that relate to its vertex degrees.

    Example:

    Consider a graph with vertices A,B,C,D,EA, B, C, D, EA,B,C,D,E, and edges AB,BC,CD,DA,AC,BD,BE,CEAB, BC, CD, DA, AC, BD, BE, CEAB,BC,CD,DA,AC,BD,BE,CE.

    • A possible Hamiltonian path might be A→B→D→C→EA \rightarrow B \rightarrow D \rightarrow C \rightarrow EA→B→D→C→E.
    • A possible Hamiltonian circuit might be A→B→D→C→E→AA \rightarrow B \rightarrow D \rightarrow C \rightarrow E \rightarrow AA→B→D→C→E→A.

    Applications of Hamiltonian Paths and Circuits:

    1. Traveling Salesman Problem (TSP): This problem seeks to find the shortest Hamiltonian circuit that visits every city (vertex) exactly once and returns to the starting city. The TSP is a famous optimization problem in logistics and planning.
    2. Routing and Scheduling: In various scheduling and routing problems, finding Hamiltonian paths and circuits is essential to minimize time or distance.
    3. Circuit Design: Hamiltonian circuits may be used in circuit design problems, such as minimizing the number of wiring paths in chip layout.

    3. Differences Between Eulerian and Hamiltonian Paths

    Property Eulerian Path Hamiltonian Path
    Edge Usage Each edge is visited exactly once. Each vertex is visited exactly once.
    Start and End Can start and end at the same or different vertices. Can start and end at the same or different vertices.
    Conditions A graph must have exactly 0 or 2 vertices with an odd degree. No simple degree condition; depends on the structure of the graph.
    Cycle Type Eulerian circuit is an Eulerian path that starts and ends at the same vertex. Hamiltonian circuit is a Hamiltonian path that starts and ends at the same vertex.
    Complexity Easier to check for Eulerian paths and circuits. NP-complete: No polynomial-time algorithm for general graphs.
    Applications Routing (Chinese Postman Problem), network traversal. Optimization problems (Traveling Salesman, scheduling).

    4. Complexity of Finding Eulerian and Hamiltonian Paths

    • Eulerian Path: Determining if a graph has an Eulerian path can be done in linear time, O(V+E)O(V + E)O(V+E), by checking the degree conditions and ensuring the graph is connected. Once these conditions are satisfied, constructing the Eulerian path is straightforward.

    • Hamiltonian Path: Finding a Hamiltonian path is much more computationally difficult. The problem is NP-complete, meaning there is no known polynomial-time algorithm to solve it for all graphs. For large graphs, brute-force algorithms or approximation methods are often used. Techniques like backtracking, dynamic programming, or heuristic methods may help solve specific instances.


    5. Summary

    • Eulerian Paths:

      • Visit every edge of the graph exactly once.
      • For an Eulerian path, the graph must have exactly 0 or 2 vertices with an odd degree.
      • An Eulerian circuit is a cycle that visits every edge exactly once and returns to the starting vertex.
    • Hamiltonian Paths:

      • Visit every vertex of the graph exactly once.
      • There is no simple condition for determining the existence of a Hamiltonian path, unlike Eulerian paths.
      • A Hamiltonian circuit is a cycle that visits every vertex exactly once and returns to the starting vertex.

    Both types of paths are crucial in many practical applications, including routing, network design, and optimization problems. Eulerian paths are easier to identify and compute, while Hamiltonian paths pose more computational challenges, often requiring advanced algorithms and heuristics.

    ← Previous topic 20
    Connectivity in Graphs
    Next topic 22 →
    Spanning Trees and Shortest Path Problem

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    8mremaining
    1.3kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Discrete Mathematics