Eulerian Graphs and RIP Flashcards
What is a Eulerian trail?
Trail that visits each edge exactly once
What is a Eulerian circuit?
Eulerian trail that begins and ends at same vertex
What is the difference between a path and a trail?
A path is a walk with no repeating vertices
A trail is a walk with no repeating edges
When is a graph Eulerian?
If and only if Degree of each vertex even
If graph contains Eulerian circuit
When does a graph posess a eulerian trail?
Iff graph has exactly two vertices of odd degree. The trail must begin at once and end at other.
What is Fleury’s algorithm used for and under which conditions?
Used to find Eulerian Trail to other odd vertex, given there are 2 odd neighboured vertices.
What are the steps of Fleury’s algorithm?
- Ensure graph has 0 or 2 odd v
- If 0 odd, start anywhere. If 2, start path at any.
- Follow edges one at a time, choosing bridge (edge which will turn destination vertex into an isolate if removed) iff only option.
What are necessary and sufficient conditions
Consider events A, B
B necessary for A iff A guaranteed false if B false
B sufficient for A iff A true if B true
How do we prove that even degrees implies a eulerian graph?
In notes.
When is a strongly connected digraph Eulerian?
Iff indegree and out degree of each vertex is equal
Contains Eulerian circuit
When does a graph contain a Eulerian trail?
iff D contains two vertices u, v such that:
- od(u) = id(u) + 1
- id(v) = od(u) + 1
and all other vertices have equal in and out degrees. Trail starts at u and ends at v
How can we calculate the amount of pairings for k pairs of vertices?
Since there is always an even number of odd vertices, there are n = 2k odd vertices.
(n-1)(n-3)(n-5)…(1)
What is the RIP and what are its steps?
Problem: Given connected weighted graph, find closed walk of minimum weight traversing each edge of G at least once
Steps:
1. Construct Eulerian graph by adding edges until all vertices have even degree, where added edgers are parallel to existing ones and sum of total weight is minimised.
2. Find eulerian circuit using Fleury’s algorithm