Presentation is loading. Please wait.

Presentation is loading. Please wait.

Euler Circuits William T. Trotter and Mitchel T. Keller

Similar presentations


Presentation on theme: "Euler Circuits William T. Trotter and Mitchel T. Keller"— Presentation transcript:

1 Euler Circuits William T. Trotter and Mitchel T. Keller
Math 3012 Applied Combinatorics Spring 2009

2 Euler Circuits in Graphs
A sequence x0, x1, x2, …, xt of vertices is called an euler circuit in a graph G if: x0 = xt; For every i = 0, 1, 2, …, t-1, xi xi+1 is an edge of G; and For every edge e of G, there is a unique i with 0 ≤ i < t so that e = xi xi+1.

3 Euler Circuits in Graphs
Here is an euler circuit for this graph: (1,8,3,6,8,7,2,4,5,6,2,3,1)

4 Euler’s Theorem A graph G has an euler circuit if and only if it is connected and every vertex has even degree.

5 Algorithm for Euler Circuits
Choose a root vertex r and start with the trivial partial circuit (r). Given a partial circuit (r = x0,x1,…,xt = r) that traverses some but not all of the edges of G containing r, remove these edges from G. Let i be the least integer for which xi is incident with one of the remaining edges. Form a greedy partial circuit among the remaining edges of the form (xi = y0,y1,…,ys = xi). Expand the original circuit: r =(x0,x1,…, xi-1, xi = y0,y1,…,ys = xi, xi+1,…, xt=r)

6 An Example Start with the trivial circuit (1). Then the greedy algorithm yields the partial circuit (1,2,4,3,1).

7 Remove Edges and Continue
Start with the partial circuit (1,2,4,3,1). First vertex incident with an edge remaining is A greedy approach yields (2,5,8,2). Expanding, we get the new partial circuit (1,2,5,8,2,4,3,1)

8 Remove Edges and Continue
Start with the partial circuit (1,2,5,8,2,4,3,1). First vertex incident with an edge remaining is A greedy approach yields (4,6,7,4,9,6,10,4). Expanding, we get the new partial circuit (1,2,5,8,2,4,6,7,4,9,6,10,4,3,1)

9 Remove Edges and Continue
Start with the partial circuit (1,2,5,8,2,4,6,7,4,9,6,10,4,3,1) First vertex incident with an edge remaining is A greedy approach yields (7,9,11,7). Expanding, we get the new partial circuit (1,2,5,8,2,4,6,7,9,11,7,4,9,6,10,4,3,1). This exhausts the edges and we have an euler circuit.


Download ppt "Euler Circuits William T. Trotter and Mitchel T. Keller"

Similar presentations


Ads by Google