Brain Dump

Route Inspection Problem

Tags
algorithm math

Is the problem of traversing a graph \( G \) such that you cover every edge in the graph once and then return to your start point.

The algorithm for this has us convert a non-traversable network into a traversable one by repeating one or more edges on an odd node to ensure it has an even valency (making the graph eulerian).

The algorithm is:

  1. List all odd vertices.
  2. Form all possible pairings of odd vertices.
  3. For each pairing find the shortest distance between the pairs.
  4. Choose the pair with the shortest sum. Constructing a route that repeats these edges (effectively making all vertices even.)