Routing Problems Flashcards
Eurerial and Hamiltonian
Eularain trail
Trail that visits every edge exactly one
Eularian circuit
Eularian trail starting and ending at the same vertex
Euler graph
A graph that contains an Eularian circuit
Theorem 4.1
A connected (multi) graph G is eulerian iff the degree of each vertex in G is even
Theorem 4.2
A connect (multi) graph G possesses an eulerian trail iff G has exactly 2 vertices of odd degree
Fleury’s algorithm
- Choose any vertex V if G
- Set current trail to empty sequence of edges
- Select any edge incident with current vertex, only choosing a bridge if there is no alternative
- Add e to the current trail set and set current vertex to V
- Delete e from graph. Delete any isolated vertices
- Repeat until all edges are deleted
Chinese postman problem algorithm
- Determine all odd vertices (2k)
- Consider all possible combinations of odd vertices (k pairs)
- Choose combination with least total weight
- Add “extra” edges to graph
- Use Fleury’s algorithm
Eulerian circuit of a connected (multi) digraph
A directed circuit of D that contains all arcs of D
Eulerian digraph
Contains a directed eulerian circuit
Theorem 4.4 (Directed Eulerian Circuit)
A strongly connected (multi) digraph D is eulerian iff the indegree and outdegree are equal for each vertex D
Theorem 4.5
A strongly connected (multi) digraph D possesses an eulerian trail iff D has 2 distinct vertices u and v such that od(u)=id(u) +1, id(v)=od(v)+1 and od(w)=id(w) for all other vertices w in V(D).
Trail begins at u, ends at v
Hamiltonian path
Path in a graph that visits each vertex exactly once
Hamiltonian cycle
Cycle that visits every vertex exactly once
Hamiltonian graph
Graph possessing a hamiltonian cycle
Theorem 4.6
If G is hamiltonian, then k(G-S)<=|S| for every nonempty propper subset S in V(G) of G, then G is not hamiltonian
Neccessary, not sufficient