2082 4

BIT152 ยท 2082 ยท 5 marks

Mention the necessary and sufficient conditions for Euler path and Euler circuit with example.

Mention the necessary and sufficient conditions for Euler path and Euler circuit with example. [5]

Discrete StructureChapter 9: Trees and Graph AlgorithmsEuler paths and circuits

Quick answer

This graph does NOT have an Euler Circuit (B and C have odd degree).

Euler Path and Euler Circuit: Necessary and Sufficient Conditions

Definitions

  • Euler Path: A path in a graph that visits every edge exactly once.
  • Euler Circuit: A closed path (circuit) in a graph that visits every edge exactly once and starts and ends at the same vertex.

Conditions for Euler Path

Necessary and Sufficient Conditions:

A connected graph G has an Euler Path if and only if it has exactly two vertices of odd degree.

The path must start at one odd-degree vertex and end at the other odd-degree vertex.

Example:

Consider the graph:

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

Edges: A-B, B-C, C-E, E-D, D-A, B-E

Degree of each vertex:

VertexDegree
A2 (even)
B3 (odd)
C2 (even)
D2 (even)
E3 (odd)
  • Exactly two odd-degree vertices: B and E
  • Therefore, an Euler Path exists, starting at B and ending at E (or vice versa).
  • Example path: B โ†’ A โ†’ D โ†’ E โ†’ C โ†’ B โ†’ E

Conditions for Euler Circuit

Necessary and Sufficient Conditions:

A connected graph G has an Euler Circuit if and only if every vertex has even degree.

Since the circuit must return to the starting vertex, every time we enter a vertex we must also be able to leave it, requiring even degree for all vertices.

Example:

Consider the graph:

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

Edges: A-B, A-C, B-C, B-D, C-D

Degree of each vertex:

VertexDegree
A2 (even)
B3 (odd)
C3 (odd)
D2 (even)

Now consider a simpler graph -- a cycle C4:

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

Edges: A-B, B-C, C-D, D-A

VertexDegree
A2 (even)
B2 (even)
C2 (even)
D2 (even)
  • All vertices have even degree
  • Euler Circuit exists: A โ†’ B โ†’ C โ†’ D โ†’ A

Summary Table

ConditionEuler PathEuler Circuit
All vertices even degreeYes (also a circuit)Yes
Exactly 2 odd-degree verticesYesNo
More than 2 odd-degree verticesNoNo
Graph must beConnectedConnected

Key Point: An Euler Circuit is a special case of an Euler Path where the start and end vertex are the same, requiring the stricter condition that all vertices have even degree.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.