10.5 Euler and Hamilton Paths Flashcards

1
Q

Euler Circuits and Euler paths :

A

An Euler circuit in a graph G is a simple circuit containing every edge of G. An Euler path
in G is a simple path containing every edge of G.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

NECESSARY AND SUFFICIENT CONDITIONS FOR EULER CIRCUITS

Recall that text theory behind it.

A

A connected multigraph with at least two vertices has an Euler circuit if and only if each of its vertices has even degree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ALGORITHM 1 Constructing Euler Circuits.

Another algorithm for constructing Euler circuits, called Fleury’s algorithm, is described
in the premble to Exercise 50.

A

procedure Euler(G: connected multigraph with all vertices of
even degree)
circuit := a circuit in G beginning at an arbitrarily
chosen vertex with edges successively added to
form a path that returns to this vertex
H := G with the edges of this circuit removed
while H has edges
subcircuit := a circuit in H beginning at a vertex in H
that also is an endpoint of an edge of
circuit
H := H with edges of subcircuit and all isolated
vertices removed
circuit := circuit with subcircuit inserted at the
appropriate vertex
return circuit {circuit is an Euler circuit}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Worst case complexity of ALGORITHM 1 Constructing Euler Circuits.

A

We leave it to the reader (Exercise 66) to show that

the worst case complexity of this algorithm is O(m), where m is the number of edges of G

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

NECESSARY AND SUFFICIENT CONDITIONS FOR EULER PATHS

Reason it, think of theory before the thm..

A

A connected multigraph has an Euler path but not an Euler circuit if and only if it has exactly
two vertices of odd degree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Necessary and sufficient conditions for Euler paths and circuits in directed graphs :

A

are given

in Exercises 16 and 17

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

APPLICATIONS OF EULER PATHS AND CIRCUITS

hint:

Chinese postman problem

A

The problem of finding a circuit in a graph
with the fewest edges that traverses every edge at least once is known as the Chinese postman problem.

Among the other areas where Euler circuits and paths are applied is in the layout of circuits,
in network multicasting, and in molecular biology, where Euler paths are used in the sequencing
of DNA.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Hamilton Paths and Circuits

Definition 2:

A

A simple path in a graph G that passes through every vertex exactly once is called a Hamilton
path, and a simple circuit in a graph G that passes through every vertex exactly once is called
a Hamilton circuit. That is, the simple path x0, x1, … , xn−1, xn in the graph G = (V, E) is a
Hamilton path if V = {x0, x1, … , xn−1, xn} and xi ≠ xj for 0 ≤ i < j ≤ n, and the simple circuit
x0, x1, … , xn−1, xn, x0 (with n > 0) is a Hamilton circuit if x0, x1, … , xn−1, xn is a Hamilton
path.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

history of hamilton.. u can skip it

A

This terminology comes from a game, called the Icosian puzzle, invented in 1857 by the
Irish mathematician Sir William Rowan Hamilton. It consisted of a wooden dodecahedron [a
polyhedron with 12 regular pentagons as faces, as shown in Figure 8(a)], with a peg at each
vertex of the dodecahedron, and string. The 20 vertices of the dodecahedron were labeled with
different cities in the world. The object of the puzzle was to start at a city and travel along the
edges of the dodecahedron, visiting each of the other 19 cities exactly once, and end back at the
first city. The circuit traveled was marked off using the string and pegs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CONDITIONS FOR THE EXISTENCE OF HAMILTON CIRCUITS:

5

A

There are no known simple necessary and sufficient criteria for the existence of Hamilton circuits.
However,
1. some thms give sufficient conftn to exist.
2. Few properties tell it won’t exist.
- Graph with deg = 1 won’t have this circuit.
-In hamilton circuit each vertex is incident with 2 edges.
- If a vertex in the graph has degree two, then
both edges that are incident with this vertex must be part of any Hamilton circuit.
- While constructing this circuit, if the circuit has passed through a vertex, then all
remaining edges incident with this vertex, other than the two used in the circuit, can be removed
from consideration.
- Hamilton circuit cannot contain a smaller circuit within it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Hamilton Circuits.

Comment on complete graphs:

A

Kn has a Hamilton circuit whenever n ≥ 3.Such a circuit can be
built by visiting vertices in any order we choose, as long as the path begins and ends at the same
vertex and visits each other vertex exactly once. This is possible because there are edges in Kn
between any two vertices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When is existence of hamilton Circuit more likely:

A

More edges a graph has more likely it is.
So as we add edges to a graph, especially when we make sure to add edges to each vertex, we
make it increasingly likely that a Hamilton circuit exists in this graph.

Consequently, we would
expect there to be sufficient conditions for the existence of Hamilton circuits that depend on
the degrees of vertices being sufficiently large.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

DIRAC’S THEOREM

Dirac’s theorem can be proved as a corollary to Ore’s theorem because the conditions of Dirac’s theorem imply those of Ore’s theorem

A

If G is a simple graph with n vertices with n ≥ 3 such that the
degree of every vertex in G is at least n∕2, then G has a Hamilton circuit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ORE’S THEOREM

The proof of Ore’s theorem is outlined in Exercise 65

A

If G is a simple graph with n vertices with n ≥ 3 such that
deg(u) + deg(v) ≥ n for every pair of nonadjacent vertices u and v in G, then G has a
Hamilton circuit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Direc and Ore are sufficient. Show a counter example to show that its not necessary:

A

C5.

It doesn’t satisfy direc or ore but has a Hamilton circuit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Algorithm for Hamilton Circuit :

A

exponential worst-case time complexity (in the number of vertices
of the graph).
- NP complete.

17
Q

Applications of Hamilton Circuits

A
  • Utility grids, communication networks, road intersections.
  • Travelleing Salesman Problem: asks for the shortest route a traveling salesperson should take to visit
    a set of cities, reduces to find hamilton circuit.
  • Gray Code.
18
Q

Gray code:

A

The position of a rotating pointer can be represented in digital form. One way to
do this is to split the circle into 2^n arcs of equal length and to assign a bit string of length n to
each arc.

When the pointer is near the boundary of two arcs, a mistake may be made in reading its
position. To minimize the effect of an error in determining the position of the pointer, the assignment of the bit strings to the 2^n arcs
should be made so that only one bit is different in the bit strings represented by adjacent arcs.

A Gray code is a labeling of the arcs of the circle such that adjacent arcs are labeled with bit strings that differ in exactly one bit.
We can find
a Gray code by listing all bit strings of length n in such a way that each string differs in exactly
one position from the preceding bit string, and the last string differs from the first in exactly one
position. We can model this problem using the n-cube Qn. What is needed to solve this problem
is a Hamilton circuit in Qn. Such Hamilton circuits are easily found. For instance, a Hamilton
circuit for Q3 is displayed in Figure 14. The sequence of bit strings differing in exactly one bit
produced by this Hamilton circuit is 000, 001, 011, 010, 110, 111, 101, 100.