You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The route inspection problem (also called the Chinese Postman problem) asks: what is the minimum total weight of a closed walk that traverses every edge of a graph at least once? This models situations like a postal worker who must walk along every street and return to the start.
If the graph is Eulerian (all vertices have even degree), then an Eulerian circuit exists — a closed walk that uses every edge exactly once. The minimum total weight is simply the sum of all edge weights.
If the graph is not Eulerian, some edges must be traversed more than once. The algorithm finds the most efficient way to duplicate edges.
By the handshaking lemma, there is always an even number of odd-degree vertices.
Use Dijkstra's algorithm (or inspection for small graphs) to find the shortest distances.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.