Route Inspection: Eulerian Routes and Two Odd Vertices | Applications and Interpretation IB Maths notes

Free preview: Route Inspection: Eulerian Routes and Two Odd Vertices

Route Inspection: Why Degrees Matter

Applications and interpretation: HL only (AHL 3.16, the Chinese postman problem)

Let's start with a postal worker. She must walk along every street in her area at least once and finish back at the depot. Some streets may have to be walked twice. Which ones, so that the total walk is as short as possible? Gritting lorries, bin lorries and road inspectors all face the same question.

  • The route inspection problem (also called the Chinese postman problem) asks for the shortest closed route that travels along every edge at least once.
  • Compare the travelling salesperson problem, which must visit every vertex. Route inspection is about edges: streets, pipes, gritting routes, cable runs.
  • The answer depends on the degrees of the vertices, which you met with Eulerian graphs.

Why degrees matter

  • Every time a route passes through a vertex it uses one edge in and one edge out. So on a closed route, each vertex uses its edges in pairs.
  • If every vertex has even degree, the graph is Eulerian: there is a closed trail using every edge exactly once. No edge needs repeating.
  • An odd vertex cannot pair off all its edges, so some edge at it must be used again. Repeating an edge adds 1 to the degree at each of its ends.

Diagram: Every time a closed route arrives at a vertex it must leave along a different edge, so the edges are used in in/out pairs.

What the picture shows

  1. Every time a closed route arrives at a vertex it must leave along a different edge, so the edges are used in in/out pairs.
  2. With 4 edge ends: in, out, in, out. Every visit can leave again.
  3. With 3 edge ends: in, out, in, and then there is no new edge to leave by, so an edge must be repeated.

All degrees even:shortest route=total weight of the network

💡 In plain words

  • If every junction has an even number of streets, you can walk every street exactly once and get back to the start.
  • Then the length of the route is just the sum of all the edge weights.

✏️ YOUR TURN 1

Try this first:

A network has edges JK 4, KL 6, LJ 5, LM 3, MN 2, NL 8. Find the length of the shortest closed route that uses every edge, and write one down starting at J.

Answer:

  • Degrees: J 2, K 2, L 4, M 2, N 2. All even, so no edge needs repeating.
  • Length = total weight 4+6+5+3+2+8=28.
  • One route: J–K–L–M–N–L–J. Check: 6 edges, each once, back at J.

Exactly Two Odd Vertices

  • The number of odd vertices is always even (handshaking lemma). So the first case with odd vertices has exactly two.
  • We must repeat some edges. Which ones? Repeating a path between the two odd vertices fixes both at once.

The recipe

  1. Find the total weight of the network. Why: every edge is used at least once.
  2. List every degree and find the two odd vertices. Why: only they cause trouble.
  3. Find the shortest path between the two odd vertices (by inspection: list every possible path and add up its weights). Why: we want the cheapest set of repeats.
  4. Repeat every edge on that path. Why: this adds 1 to the degree of each odd end (now even) and 2 to each vertex in the middle (still even). Now every degree is even.
  5. Route length = total weight + that shortest path.

Shortest route=total weight+shortest path between the two odd vertices

ℹ️ Why must the repeats join the two odd vertices?

  • Look only at the edges you walk a second time. Each odd vertex needs an odd number of these extra edge ends (to become even), and every other vertex needs an even number (to stay even).
  • So, among the repeated edges alone, the two odd vertices are the only odd ones. Start at one odd vertex and follow repeated edges: you can only get stuck at the other odd vertex. So the repeats always contain a route from one odd vertex to the other.
  • That route already fixes both odd vertices, so anything extra is wasted. The cheapest choice is therefore the shortest path between them.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in HL: Graphs and networks (AHL 3.14–3.16)

  1. The Language of Graphs: Degrees, Paths, Trees and Special Graphs
  2. Eulerian and Hamiltonian Graphs
  3. Adjacency Matrices, Counting Walks and Transition Matrices
  4. Kruskal's and Prim's Algorithms on a Network
  5. Prim's Algorithm on a Distance Matrix and Spanning Tree Problems
  6. Route Inspection: Eulerian Routes and Two Odd Vertices
  7. Route Inspection with Four Odd Vertices and Different Start and Finish Points
  8. The Travelling Salesperson Problem: Least Distances and Nearest Neighbour Upper Bounds
  9. Lower Bounds for the Travelling Salesperson Problem: The Deleted Vertex Method

What's inside for this topic

9 teacher notes, 65 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Prim's Algorithm on a Distance Matrix and Spanning Tree Problems Next note: Route Inspection with Four Odd Vertices and Different Start and Finish Points

Route Inspection: Eulerian Routes and Two Odd Vertices on other exam boards

All Applications and Interpretation IB Maths topics · IB Maths