Routing Problems Flashcards

Eurerial and Hamiltonian

1
Q

Eularain trail

A

Trail that visits every edge exactly one

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

Eularian circuit

A

Eularian trail starting and ending at the same vertex

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

Euler graph

A

A graph that contains an Eularian circuit

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

Theorem 4.1

A

A connected (multi) graph G is eulerian iff the degree of each vertex in G is even

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

Theorem 4.2

A

A connect (multi) graph G possesses an eulerian trail iff G has exactly 2 vertices of odd degree

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

Fleury’s algorithm

A
  1. Choose any vertex V if G
  2. Set current trail to empty sequence of edges
  3. Select any edge incident with current vertex, only choosing a bridge if there is no alternative
  4. Add e to the current trail set and set current vertex to V
  5. Delete e from graph. Delete any isolated vertices
  6. Repeat until all edges are deleted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Chinese postman problem algorithm

A
  1. Determine all odd vertices (2k)
  2. Consider all possible combinations of odd vertices (k pairs)
  3. Choose combination with least total weight
  4. Add “extra” edges to graph
  5. Use Fleury’s algorithm
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Eulerian circuit of a connected (multi) digraph

A

A directed circuit of D that contains all arcs of D

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

Eulerian digraph

A

Contains a directed eulerian circuit

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

Theorem 4.4 (Directed Eulerian Circuit)

A

A strongly connected (multi) digraph D is eulerian iff the indegree and outdegree are equal for each vertex D

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

Theorem 4.5

A

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

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

Hamiltonian path

A

Path in a graph that visits each vertex exactly once

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

Hamiltonian cycle

A

Cycle that visits every vertex exactly once

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

Hamiltonian graph

A

Graph possessing a hamiltonian cycle

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

Theorem 4.6

A

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

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

Dirac’s theorem (thm 4.4)

A

Let G be a connected graph of order p>=3. If the minimum degree >= p/2 then G is hamiltonian
Sufficient, not necessary

17
Q

Corollary of Dirac

A

Let G be a connected graph of order p. If the minimum degree >= (p-1)/2 then G contains a hamiltonian path.

18
Q

Bondy and Chvátal’s Theorem

A

Let U and V be distinct non adjacent vertices of a graph G of order p such that deg(u)+deg(v)>=p. Then G is hamiltonian iff G+uv is hamiltonian

19
Q

Closure

A

The graph obtained from G by iteratively joining pairs of nonadjacent vertices whose degree sum is at least p (in the resulting graph at each stage) until no such pair remains
cl(G) is unique, regardless of sequence of edges added

20
Q

Theorem 4.6 (2nd one??)

A

A graph is hamiltonian iff its closure is hamiltonian

21
Q

Corollary of 2nd 6.6

A

Let G be a graph of order p>=3. If the closure cl(G) is complete, then G is hamiltonian

22
Q

Ore’s Theorem (thm 4.7)

A

If deg(u)+deg(v)>=p for all pairs u, v of distinct nonadjacent vertices of a graph G of order p>=3 then… FINISH 🤦🏼

23
Q

Triangle inequality

A

Not done🙄

24
Q

Nearest neighbour

A
  1. Start at node i. Find nearest node from i, add to route
  2. From last node in route, find nearest node not yet visited. Add to route
  3. Repeat until all nodes in route. Go to i
25
Q

Closest insertion heuristic

A
  1. Start at node a and find nearest node to a. Add node to cycle: a-b-a
  2. Find nearest node to the cycle (any node in the cycle). Insert new node
  3. Repeat
26
Q

Cheapest insertion

A
  1. Start at a. Find cheapest from a and add. a-b-a
  2. Consider each node that isn’t part of the cycle. Find an edge such that d(i, k) +d(k, j) - d(i, j) is at its minimum. Insert node between i and j
  3. Repeat