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 PortalGE-167Eulerian Hamiltonian G…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    GE-167

    Discrete Structures

    Progress0 / 67 done
    Topics67
    1Propositional and Predicate Logic
    2Logical Operators3Translations Between Symbolic Expressions and Formal English Expression4Logical Equivalences
    5Quantifiers6Nested Quantification7Equivalences in Predicate Logic8Translations Between Symbolic Forms and Formal English
    9Proof Methods and Strategies10Direct Proof11Proof by Contraposition12Proof by Induction13Proof by Implication14Existence Proof15Uniqueness Proofs16Trivial Proofs17Vacuous Proofs
    18Notations and Set Operations19Venn Diagrams20Countable and Uncountable Sets
    21Equivalence Relations and Partitions22Partial Orderings23Recurrence Relations51Reflexive, Symmetric, Transitive, and Antisymmetric52Equivalence Relations and Equivalence Classes53Partial Orders
    24Injective, Surjective, Bijective25Special Types of Functions26Function Composition27Inverse Functions28Recursive Functions29Compositions
    30Sequences and Series
    31Inclusion and Exclusion Principle32Pigeonhole Principle33Permutations and Combinations46Product Rule and Sum Rule47Principle of Inclusion-Exclusion48Binomial Coefficients49Pascal's Identity and Pascal’s Triangle50Binomial Theorem
    34Division Theorem35Modular Arithmetic36LCM and GCD37Euclidean and Extended Euclidean Method38Finding Solutions to Congruence
    39Fundamental Theorem of Arithmetic40Characterizations of Primes41Mersenne Primes
    42Weak Induction43Strong Induction
    44Formulation of Recurrences45Closed Formulas
    54Terminologies55Elements of Graph Theory56Planar Graphs57Graph Coloring58Euler Graph59Hamiltonian Path60Rooted Trees61Graph Traversals62Handshaking Lemma and Corollary63Special Families of Graphs64Graph Isomorphism65Planarity in Graphs66Eulerian and Hamiltonian Graphs67Trees in Graph Theory
    6 min read
    Topic 66 of 67
    Topic Study Note Illustration
    66

    Eulerian and Hamiltonian Graphs

    In graph theory, Eulerian and Hamiltonian graphs are two important types of graphs related to specific types of paths and cycles. These concepts have applications in optimization...

    Eulerian and Hamiltonian Graphs

    In graph theory, Eulerian and Hamiltonian graphs are two important types of graphs related to specific types of paths and cycles. These concepts have applications in optimization problems, circuit design, and network analysis.

    1. Eulerian Graphs

    An Eulerian graph is a graph in which there exists a path that visits every edge exactly once. This path is called an Eulerian Path. If the Eulerian path forms a cycle (i.e., it starts and ends at the same vertex), it is called an Eulerian Circuit.

    Euler's Theorems:

    Euler's theorems provide the conditions under which a graph has an Eulerian path or an Eulerian circuit:

    • Eulerian Circuit: A graph contains an Eulerian circuit if and only if the graph is connected and every vertex has an even degree. This is known as Euler’s Theorem for Eulerian Circuits.

    • Eulerian Path: A graph contains an Eulerian path if and only if the graph is connected and has exactly 0 or 2 vertices with an odd degree. This is known as Euler’s Theorem for Eulerian Paths.

    In summary:

    • A graph has an Eulerian circuit if all of its vertices have even degrees and it is connected.
    • A graph has an Eulerian path if exactly two vertices have odd degrees and the graph is connected.
    Example of an Eulerian Graph:

    Consider the graph GGG:

       A --- B
       |     |
       D --- C
    

    This graph has 4 vertices: A,B,C,DA, B, C, DA,B,C,D and 4 edges. The degree of each vertex is 2, which is even. Therefore, this graph has an Eulerian Circuit, and the path could be:

    A→B→C→D→AA \to B \to C \to D \to AA→B→C→D→A

    This is an Eulerian Circuit because all edges are visited exactly once, and the path starts and ends at the same vertex.


    2. Hamiltonian Graphs

    A Hamiltonian graph is a graph that contains a Hamiltonian cycle, a cycle that visits every vertex exactly once and returns to the starting vertex. Unlike Eulerian graphs, the focus here is on visiting all vertices rather than all edges.

    • A Hamiltonian cycle is a cycle that passes through every vertex exactly once and returns to the starting vertex.
    • A Hamiltonian path is a path that passes through every vertex exactly once but does not necessarily return to the starting vertex.

    There are no simple, universal theorems like Euler’s Theorem for Hamiltonian paths and cycles. The conditions for Hamiltonian cycles and paths are generally more complex, and there is no simple characterization like the degree conditions for Eulerian graphs.

    Hamiltonian Path Problem:

    Determining whether a graph contains a Hamiltonian path is a NP-complete problem. This means that it is computationally difficult to find a Hamiltonian path (or to determine if one exists) in large graphs.

    Example of a Hamiltonian Graph:

    Consider the following graph GGG:

       A --- B
       |     |
       D --- C
    

    This graph has 4 vertices: A,B,C,DA, B, C, DA,B,C,D and 4 edges. A possible Hamiltonian cycle could be:

    A→B→C→D→AA \to B \to C \to D \to AA→B→C→D→A

    This cycle visits every vertex exactly once and returns to the starting vertex, making the graph Hamiltonian.


    Key Differences Between Eulerian and Hamiltonian Graphs

    Property Eulerian Graphs Hamiltonian Graphs
    Focus Concerned with visiting every edge exactly once. Concerned with visiting every vertex exactly once.
    Eulerian Path Exists if there are 0 or 2 vertices of odd degree and the graph is connected. Not necessarily related to vertex degrees.
    Eulerian Circuit Exists if all vertices have even degree and the graph is connected. A Hamiltonian cycle exists if there is a cycle that visits each vertex exactly once.
    Conditions Degree conditions: All vertices must have even degree for a circuit, exactly 2 odd-degree vertices for a path. No simple degree condition. The problem is NP-complete.
    Applications Useful in problems like garbage collection routes, circuit board design. Useful in solving problems like the Travelling Salesman Problem.

    Algorithms and Computational Complexity

    1. Eulerian Graphs:

      • Checking for Eulerian Path/Circuit: This can be done in linear time (O(V + E)) by checking the degree of each vertex and ensuring the graph is connected.
    2. Hamiltonian Graphs:

      • Finding a Hamiltonian Path or Cycle: This is generally a NP-complete problem, meaning there is no known efficient algorithm for solving it in all cases. It may require exhaustive search techniques, such as backtracking, or approximation methods.
      • Special Cases: There are some polynomial-time algorithms for specific types of graphs (e.g., complete graphs, bipartite graphs) where Hamiltonian cycles can be found more efficiently.

    Examples of Graph Types and Their Eulerian/Hamiltonian Properties

    1. Complete Graphs (Kₙ):

      • A complete graph KnK_nKn​ is Eulerian if nnn is even (since every vertex has degree n−1n-1n−1, which is even for even nnn).
      • A complete graph KnK_nKn​ is Hamiltonian for all n≥3n \geq 3n≥3 (since it contains a cycle that visits all vertices).
    2. Cycle Graphs (Cₙ):

      • A cycle graph CnC_nCn​ is always Eulerian (since every vertex has degree 2).
      • It is also Hamiltonian since it contains a cycle that visits all vertices.
    3. Tree Graphs:

      • A tree with more than 2 vertices is not Eulerian (because it has vertices with odd degrees).
      • A tree is not Hamiltonian unless it has exactly 2 vertices (because it cannot form a cycle with more than 2 vertices).

    Conclusion

    • Eulerian Graphs focus on paths and circuits that visit every edge exactly once, and they have well-defined degree conditions for having an Eulerian path or circuit.
    • Hamiltonian Graphs focus on paths and cycles that visit every vertex exactly once, but there are no simple degree conditions for determining whether a graph contains a Hamiltonian path or cycle. The problem of finding such paths and cycles is NP-complete.

    Understanding these graph properties is essential for various applications, including optimization problems, network routing, and circuit design.

    ← Previous topic 65
    Planarity in Graphs
    Next topic 67 →
    Trees in Graph Theory

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    6mremaining
    1.1kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Discrete Structures