A Level Further Mathematics · Chapter 66 · Decision Mathematics · Decision 1
A gritting lorry must drive along every road and return home, and the odd vertices of the network tell you exactly which roads it must drive twice.
Postal workers, gritters, road inspectors and refuse collectors all need to travel along every street in an area. This chapter shows how to find the shortest such route by finding the odd vertices and repeating the cheapest possible set of paths between them.
In this chapter · jump to a section
Start here
Your route through this chapter
By the end of this chapter you will be able to:
- decide whether a network can be traversed using every edge exactly once
- find the length of the shortest closed inspection route for a network with two odd vertices
- compare every pairing of four odd vertices and choose the best
- count the pairings of six or more odd vertices
- find the shortest route that starts and finishes at different vertices
- write down a complete inspection route and say which edges are repeated
Time: two sessions, about 3 hours, plus the practice ladder and the exam workshop.
You need first: graphs, networks and planarity, especially Eulerian graphs, and Dijkstra's algorithm from minimum spanning trees and shortest paths.
The big idea
The big idea
An inspection route travels along every edge of a network at least once and returns to its start. If every vertex is even, a route can use each edge exactly once. Otherwise some paths must be travelled twice, and the aim is to make that extra distance as small as possible.
The network above has total weight 43. Its only odd vertices are B and E. Repeating the shortest path between them, of length 7, makes every vertex even, so the shortest inspection route has length 50.
The problem
The route inspection problem asks for the shortest closed route that travels along every edge at least once. It is also called the Chinese postman problem, after the mathematician Kwan Mei-Ko, who studied it while thinking about a postman's round.
Why odd vertices matter
A closed route enters and leaves each vertex the same number of times, so it uses an even number of edge-ends there. At an odd vertex, at least one edge must therefore be used twice. Odd vertices are exactly where the extra distance comes from.
Repeating paths, not single edges
The extra distance is made of whole paths joining pairs of odd vertices. Repeating a path adds one to the degree of each end, and two to the degree of every vertex in between. So the ends become even, and every other vertex stays as it was.
The algorithm in one sentence
List the odd vertices and pair them up so that the shortest paths between pairs have least total length. Then add that total to the weight of the network. The rest of this chapter makes each part of this sentence precise.
Using shortest paths
The path repeated between a pair of odd vertices should be the shortest one, which may not be the direct edge. Dijkstra's algorithm, or careful inspection in small networks, finds these distances. A wrong shortest distance spoils the whole answer.
What the answer looks like
A full answer states the odd vertices, the pairings considered with their lengths, the edges to repeat, and the length of the route. Questions sometimes also ask for an actual route, written as a list of vertices.
Route inspection and the previous chapters
This chapter brings together two earlier ideas: the degree test for Eulerian graphs and Dijkstra's shortest paths. The degree test tells you where repeats are needed, and Dijkstra tells you how long they must be. Keep both tools ready.
Section 1
Traversable networks
Eulerian networks
A network in which every vertex is even is Eulerian. It has a closed trail using every edge exactly once, so the shortest inspection route is just the total weight. No edge needs to be repeated.
Common mistake: taking the shortest inspection route to be the total weight even when the network has odd vertices. The total weight is only achievable when every vertex is even. Odd vertices force some paths to be travelled twice, which adds their length to the route.
Odd vertices and the route length
- Odd vertices
- B, E
- Total weight
- 43
- Shortest route
- 50
Figure 66.1 shows the effect of odd vertices on the length of the route. Adding an edge between the two odd vertices makes every vertex even.
Semi-Eulerian networks
If exactly two vertices are odd, a trail using every edge exactly once exists, but it starts at one odd vertex and ends at the other. To return to the start, the route must also travel back between them, along the shortest path.
Counting odd vertices quickly
Write the degree beside each vertex before doing anything else. The odd vertices always come in pairs, so if you count an odd number of them, you have made a mistake. This quick check saves many lost marks.
The total weight
Add every edge weight once to find the total weight of the network. This is the length of the route before any repeats. Write it down clearly, because the final answer is this total plus the repeated length.
Why the route length is total plus repeats
Every edge must be travelled at least once, which accounts for the total weight. The only extra travel is along repeated paths. So the length of the route is the total weight plus the length of the repeated paths, and the aim is to minimise the repeats.
Proof: the length of an inspection route
Let be the total weight and let the route repeat paths of total length . Every edge is used once, and the repeated paths are used a second time, so the length is
The total weight is fixed by the network, so
and the problem reduces to making the repeated length as small as possible.
Loops and multiple edges
A loop adds two to the degree of its vertex, so it never changes whether a vertex is odd. A loop must still be travelled, so its weight is included in the total. Multiple edges between the same pair each count separately.
Disconnected networks
If the network is not connected, no single route can cover every edge. Inspection problems always assume a connected network. If a question shows separate pieces, check whether an edge has been missed.
Real roads
Real roads have two sides and sometimes one-way restrictions. The basic model treats each road as a single edge that can be driven in either direction. More detailed models change the network, for example by doubling roads that need each side gritting.
Recording the degrees
A neat way to record the degrees is a small table with one column per vertex. Shade or circle the odd entries. This table is the first thing an examiner looks for, and it makes every later step easier to check.
When the network is already Eulerian
Some exam networks have no odd vertices at all. Then the answer is simply the total weight, and any closed trail using every edge is a valid route. Recognising this quickly saves time for the harder parts of the paper.
Worked example 1: checking for odd vertices
Find the odd vertices of the network in the big idea, and its total weight.
| Working | Reason |
|---|---|
| Degrees A 2, B 3, C 4, D 4, E 3, F 2 | Count the edges meeting each vertex |
| Odd vertices B and E | Only these have odd degree |
| Total | Add every edge weight once |
Why every vertex even is enough
If every vertex is even, a closed trail using every edge exactly once always exists in a connected network. Euler proved this by showing that such a trail can always be extended until no unused edges remain. So the total weight is always achievable.
Worked example 2: a network with every vertex even
A road BE of length 7 is added to the network in the big idea. Find the length of the shortest inspection route.
| Working | Reason |
|---|---|
| B and E each gain one edge | The new road joins the two odd vertices |
| Every vertex is now even | Degrees A 2, B 4, C 4, D 4, E 4, F 2 |
| Route length | The total weight, with no repeats needed |
Check yourself. Is a network whose vertices have degrees 2, 4, 4, 2 and 2 Eulerian?
Show the answer
Every degree is even, so the network is Eulerian. The shortest inspection route is the total weight, with no edges repeated.
Section 2
Two odd vertices
The method
If a network has exactly two odd vertices, find the shortest path between them. Repeat every edge on that path. The shortest inspection route has length equal to the total weight plus the length of that path.
Common mistake: repeating the direct edge between the two odd vertices without checking whether a shorter indirect path exists. The repeated path should be the shortest, which may pass through other vertices. A direct edge can be longer than a route around two shorter edges.
Finding the shortest path
In a small network, list the possible routes between the two odd vertices and compare their lengths. In a larger network, use Dijkstra's algorithm from one odd vertex. Either way, show enough working for the examiner to see that the path is the shortest.
Which edges are repeated
State the repeated edges by name, not just the path length. For the network in the big idea, the repeated edges are BD and DE. Naming them makes the answer complete and helps with writing out the route later.
Effect on the degrees
Repeating the path B, D, E adds one to the degrees of B and E and two to the degree of D. B and E become even, and D stays even. Every vertex is then even, so a closed route using each edge, including the repeats, exists.
Where the route starts
For a closed inspection route, the start does not change the length. The route can begin at any vertex, such as a depot. Questions usually name the starting vertex, and the route must return there.
A worked check
After choosing the repeated path, recount the degrees with the repeated edges included. If any vertex is still odd, a mistake has been made. This check is quick and catches most errors.
Comparing with the direct edge
When a direct edge joins the two odd vertices, compare its weight with every indirect path. In the diagram, the direct edge PQ has weight 9, but P, R, Q has length 7. Repeating the longer edge would add 2 to the route unnecessarily.
A check using the degree sum
After repeating a path, the new degree sum must still be even, since every edge, including the repeats, has two ends. If the sum comes out odd, an edge has been miscounted. This is the handshaking lemma working as a check.
Distances that tie
Sometimes two different paths between the odd vertices have the same length. Either may be repeated, and the route length is the same. The repeated edges differ, though, so state which path you chose.
Presenting the two-odd-vertex case
A complete answer has four lines: the odd vertices, the shortest path between them with its length, the edges to repeat, and the route length. Writing these as separate lines makes it easy for an examiner to award each mark.
Worked example 3: the network in the big idea
Find the shortest inspection route for the network in the big idea.
| Working | Reason |
|---|---|
| Odd vertices B and E | From the degree count |
| Shortest B to E: B, D, E of length | Shorter than B, C, E of length 12 |
| Route length ; repeat BD and DE | Total weight plus the repeated path |
Using Dijkstra's algorithm
For larger networks, run Dijkstra's algorithm from one odd vertex and read off the label of the other. The route traced back gives the edges to repeat. Show the labelling clearly, since it earns method marks in its own right.
Worked example 4: a shorter indirect path
The network in the diagram has edges PQ 9, PR 3, RQ 4, QT 5 and TP 6. Find the shortest inspection route.
| Working | Reason |
|---|---|
| Degrees P 3, Q 3, R 2, T 2; total 27 | P and Q are the odd vertices |
| Shortest P to Q: P, R, Q of length 7 | Shorter than the direct edge of 9 |
| Route length ; repeat PR and RQ | Total weight plus the shortest path |
Check yourself. In the network in the big idea, what is the shortest distance between the odd vertices?
Show the answer
The paths from B to E include B, D, E of length 7 and B, C, E of length 12. The shortest distance is 7, along B, D, E.
Section 3
Four odd vertices
Pairing the odd vertices
With four odd vertices, two paths must be repeated, each joining a pair. There are three ways to split four vertices into two pairs. For each pairing, add the two shortest distances, and choose the pairing with the least total.
Common mistake: pairing the two closest odd vertices first instead of comparing every possible pairing. Joining the closest pair can force the remaining two into a very long path. Only comparing all three pairings guarantees the least repeated length.
Pairing the odd vertices
- This pairing repeats
- 10
- Best pairing
- AB, CD (6)
- Shortest route
- 41
Figure 66.2 shows the three pairings for a network with four odd vertices. The greedy choice of the closest pair turns out to be one of the worst.
Listing the pairings
For odd vertices A, B, C and D, the pairings are AB with CD, AC with BD, and AD with BC. Fix A and pair it with each of the others in turn; the remaining two form the second pair. This systematic listing ensures none is missed.
Finding each shortest distance
There are six shortest distances needed: AB, AC, AD, BC, BD and CD. Find each one carefully, using indirect paths where they are shorter. A small table of these distances makes the comparison of pairings quick.
Comparing the pairings
Add the two distances for each pairing and write the totals side by side. The least total is the extra distance in the shortest route. If two pairings tie, either may be used, and the route length is the same.
The network for this section
The network for this section has edges AB 3, BC 2, CD 3, AE 5, BE 4, CE 4, DE 5 and AD 9. Its odd vertices are A, B, C and D, and its total weight is 35.
Shortest distances in this network
Here AB is 3, BC is 2 and CD is 3 directly. AC is 5, through B. BD is 5, through C. AD is 8, through B and C, which beats the direct edge of 9.
Why greedy pairing fails
B and C are the closest odd vertices, only 2 apart. Pairing them forces A with D, at a distance of 8, for a total of 10. Pairing A with B and C with D costs only .
Recording the answer
State the best pairing, the repeated edges, and the route length. Here the repeated edges are AB and CD, and the route length is . The examiner looks for all three pairings with their totals.
A table for four odd vertices
Set out the six shortest distances in a small table, then a second table listing the three pairings and their totals. Two tables are quicker to check than a paragraph, and they make the least total obvious at a glance.
Paths that share edges
Occasionally the two repeated paths share an edge. That edge is then travelled three times in total. This is allowed: the method still gives the shortest route, because each repeated path was chosen as the shortest.
What changes and what stays fixed
The total weight is fixed by the network, so only the repeated length varies between pairings. That is why the comparison uses only the shortest distances. The total is added once, at the very end.
Worked example 5: comparing pairings
Find the shortest inspection route for the network in this section.
| Working | Reason |
|---|---|
| AB + CD | First pairing of the four odd vertices |
| AC + BD ; AD + BC | The other two pairings |
| Least is 6, so route length | Repeat AB and CD |
Thinking about the geometry
On this network, the odd vertices lie roughly along a line, A, B, C, D. Pairing the middle two leaves the outer two far apart. Pairing neighbours at each end keeps both repeats short. Picturing the layout can suggest which pairing will win.
Worked example 6: the cost of greedy pairing
A student pairs B with C because they are closest. Find the length of the student's route and compare it with the shortest.
| Working | Reason |
|---|---|
| BC + AD | The greedy pairing and its forced partner |
| Student's route | Total weight plus the greedy repeats |
| Longer than 41 by 4 | Greedy pairing is not optimal here |
Check yourself. What is the least total repeated length for the network in this section?
Show the answer
The three pairings give 6, 10 and 10. The least is 6, from pairing A with B and C with D.
Section 4
Counting pairings
Six odd vertices
A network with six odd vertices needs three repeated paths. The number of ways to pair six vertices is much larger than three, so a systematic count is needed. Exam questions with six odd vertices usually give the shortest distances.
Common mistake: counting the pairs of odd vertices, n(n − 1)/2, instead of the number of complete pairings. A pairing splits every odd vertex into pairs at once. Choosing a single pair is only the first step of a pairing, so the counts are different.
The counting argument
Take the first odd vertex. It can be paired with any of the other . The remaining vertices are then paired in the same way. Multiplying gives pairings.
Derivation: the number of pairings of n odd vertices
Let be the number of pairings of vertices. The first vertex has possible partners, and the rest are paired in ways, so
With , repeating this gives
So , and .
Six odd vertices in practice
With fifteen pairings, list them systematically: pair the first vertex with each of the five others, and for each choice list the three pairings of the remaining four. Fifteen sums is manageable, but eight odd vertices, with 105 pairings, is not done by hand.
Using a table of distances
For six odd vertices, a table of the fifteen shortest distances between pairs is the starting point. Each pairing then needs three numbers from the table. Organise the working in a list so the examiner can check each total.
Spotting forced pairings
Sometimes one pair of odd vertices is very close and far from the others. Even so, every pairing must be checked, because a greedy choice can still fail. However, a quick estimate can help order the work.
Why the count grows so fast
Each extra pair of odd vertices multiplies the count by the next odd number. This is why route inspection by hand is limited to small numbers of odd vertices. Computers use cleverer matching algorithms for large networks.
Odd vertices and network design
Planners can reduce inspection costs by designing networks with fewer odd vertices. Adding a short road between two odd vertices can make them even, removing the need for repeats. This links network design to running costs.
Organising fifteen pairings
Label the six odd vertices in order. Pair the first with each of the others in turn, writing five headings. Under each heading, list the three pairings of the remaining four. This tree of choices covers all fifteen without repetition.
When distances are given
Exam questions with six odd vertices normally give a table of shortest distances, so no shortest paths need finding. The skill being tested is the systematic listing and comparison. Show every one of the fifteen totals.
Worked example 7: six odd vertices
How many pairings must be compared for a network with six odd vertices?
| Working | Reason |
|---|---|
| First vertex: 5 choices of partner | Any of the other five odd vertices |
| Remaining four: 3 pairings | From the four-vertex case |
| pairings | Multiply the choices together |
Beyond the exam
For very large numbers of odd vertices, computers use an efficient method called minimum-weight perfect matching. It avoids listing every pairing, yet still finds the best one. This is how real postal and gritting routes are planned.
Worked example 8: eight odd vertices
How many pairings are there for eight odd vertices, and how does this compare with the number of single pairs?
| Working | Reason |
|---|---|
| The product of odd numbers below 8 | |
| Single pairs | This counts pairs, not pairings |
| 105 pairings, far more than 28 pairs | The two counts answer different questions |
Check yourself. How many pairings are there for ten odd vertices?
Show the answer
Multiply the odd numbers below 10: pairings, far too many to compare by hand.
Section 5
Routes with different start and finish
Open inspection routes
Sometimes the route need not return to its start. Then two odd vertices can be the start and finish, and do not need to be joined by a repeat. Only the remaining odd vertices are paired.
Common mistake: starting and finishing at the two closest odd vertices instead of the two that are hardest to join. The ends are the odd vertices left unpaired. Leaving out a close pair means repeating a long path between the others, so choose the ends to make the repeats as short as possible.
Starting and finishing at different vertices
- Route from A to C
- 40
- Best ends
- A and D
- Shortest open route
- 37
Figure 66.3 lets you choose the two ends of the route. The best choice leaves A and D as the ends, since they are the furthest apart.
Two odd vertices
If a network has exactly two odd vertices and the route may finish elsewhere, start at one odd vertex and finish at the other. No edges need repeating, so the route length is just the total weight.
Four odd vertices
With four odd vertices, choose which two are the ends. The other two must be joined by a repeated path. Compare all six choices of ends, or equivalently find the shortest single distance between two odd vertices and leave the other two as ends.
Choosing the ends
For each pair of odd vertices, the length of the repeat is the shortest distance between the other two. So the best ends are the pair whose complement is closest together. In this section's network, BC is shortest at 2, so A and D are the ends.
When the start is fixed
If the route must start at a given odd vertex, only the finishing vertex can be chosen. Compare the options with that start, choosing the finish that leaves the shortest repeat. If the start is even, it cannot be an end of an open route with no extra repeats.
Comparing open and closed routes
An open route is never longer than the closed route, because it repeats fewer paths. The saving is the difference between the best closed repeat and the best open repeat. Questions often ask for this saving.
Practical meaning
An open route suits a worker who can be collected at the end, or a lorry that finishes at a second depot. The choice of finishing point can save a lot of distance, which is why companies plan depots carefully.
A quick rule for four odd vertices
With four odd vertices and free ends, find the shortest of the six distances between odd vertices. Repeat that path, and use the other two odd vertices as the ends. This always gives the shortest open route.
Why the rule works
An open route repeats exactly one path, joining two of the four odd vertices. Its length is the total weight plus that path's length. So the best choice is the shortest single path, and the ends are whatever is left.
Open routes with six odd vertices
With six odd vertices and free ends, two vertices are left as ends and the other four are paired. There are fifteen choices of ends, each with three pairings, so careful organisation matters. Exam questions usually restrict the choices to keep the work manageable.
Worked example 9: an open route
Find the shortest route along every edge of this section's network, allowing different start and finish.
| Working | Reason |
|---|---|
| Shortest single distance between odd vertices: BC 2 | B and C should be joined by a repeat |
| Ends are A and D | The two odd vertices left over |
| Route length | Total weight plus the single repeat |
When the start is an even vertex
If a route must start at an even vertex but may finish anywhere, the start cannot be an end without changing its parity. The route must then return to that start, or an extra path must be repeated. Read such questions carefully before choosing the ends.
Worked example 10: a fixed start and finish
The route must start at A and finish at B. Find its length.
| Working | Reason |
|---|---|
| Ends A and B, so C and D must be joined | The other two odd vertices are paired |
| Shortest C to D is 3 | The direct edge CD is shortest |
| Route length | One more than the best open route |
Check yourself. If the route must start at A and finish at C, what is its length?
Show the answer
Then B and D must be joined, and the shortest distance between them is 5. The route length is .
Section 6
Writing a full route
From repeats to a route
Once the repeated edges are known, draw them as extra edges on the network. Every vertex is now even, so a closed trail using every edge, including the repeats, exists. Write it as a list of vertices.
Common mistake: repeating only one edge of a shortest path that passes through several edges. The whole path must be repeated, so every edge along it is travelled twice. Repeating only part of it leaves some vertices odd and the route impossible.
Building the trail
Start at the required vertex and follow unused edges. Avoid using an edge that would cut off a part of the network you have not yet travelled. Cross off each edge as you use it, including the repeated copies.
Checking the route
Count the edges in your route: it should equal the number of edges in the network plus the number of repeated edges. Add the weights to check the total length. Both checks catch slips quickly.
Many correct routes
There are usually many valid routes with the same length. Any route that uses each edge the right number of times and returns to the start earns the marks. Examiners check the count and the start and finish.
Directed networks
If some edges are one-way, the problem changes: each vertex must have equal numbers of edges in and out. This needs a different method and is beyond this course, but it explains why real gritting routes can be longer.
Weights that are times
When weights are times rather than distances, the same method finds the quickest route. Make sure the units are consistent and state them in the answer, for example minutes or hours.
Adapting to new roads
If a new road is built, recount the degrees, since adding an edge changes the parity of both its ends. A new road between two odd vertices can shorten the inspection route even though it adds weight.
Comparing the options
The bar chart compares the closed route with two open routes for the network of section 3. Ending at A and D saves 4, but ending at B and C is worse even than returning to the start. The choice of ends really matters.
Explaining your route
When asked to describe a route, say where it starts and finishes, which edges are repeated, and its length. A list of vertices proves the route exists. Examiners give method marks for a clear explanation, even if the list contains a slip.
Worked example 11: an open route with two odd vertices
Find the shortest route along every edge of the network in the big idea if the route need not return to its start.
| Working | Reason |
|---|---|
| Odd vertices B and E | From the degree count |
| Start at B and finish at E | The odd vertices are the ends |
| Length 43, no repeats needed | A trail uses each edge exactly once |
Writing the route as a list
Write the route as a list of vertices separated by commas, starting and ending at the depot. Each consecutive pair must be joined by an edge. Count the commas: the number of edges travelled is one less than the number of vertices listed.
Worked example 12: a full closed route
Write down a shortest closed inspection route for the network in the big idea, starting at A.
| Working | Reason |
|---|---|
| Repeat BD and DE | Found in worked example 3 |
| A, B, D, B, C, D, E, D, F, E, C, A | Each edge used, with BD and DE twice |
| 11 edges, length 50 | Nine edges plus two repeats |
Check yourself. Counting repeats, how many edges does the route in worked example 12 travel along?
Show the answer
The network has 9 edges, and BD and DE are each travelled twice. So the route travels along 11 edges, with total length 50.
Reference
Results in this chapter
| Result | What it says | When to use it | In the formula booklet? |
|---|---|---|---|
| All even: length total weight | Eulerian network | No repeats needed | No, learn it |
| Two odd: add their shortest distance | Semi-Eulerian network | One repeated path | No, learn it |
| Four odd: compare 3 pairings | Least repeated length | Two repeated paths | No, learn it |
| Number of pairings | Six or more odd vertices | No, derive it | |
| Open route: leave two odd vertices as ends | Different start and finish | Routes ending elsewhere | No, learn it |
| Route length | Total plus repeats | Every inspection problem | No, derive it |
Reasoning
Modelling task: gritting the village roads
The situation
A council gritting lorry must grit every road in a village and return to its depot at A. The roads form the network in the big idea, with lengths in kilometres. The council wants the shortest route so that the gritting is finished quickly on icy nights.
Assumptions
Each road is gritted completely in one pass, whichever direction the lorry travels. The lorry can drive along any road in either direction. Turning at junctions takes no extra time, and the lorry carries enough grit for the whole route.
These assumptions turn the task into a route inspection problem, with the depot as the start and finish.
The model
The odd vertices are B and E. The shortest path between them is B, D, E, of length 7 km. The lorry must drive BD and DE twice, once gritting and once simply travelling.
Results
The shortest route has length km. One such route is A, B, D, B, C, D, E, D, F, E, C, A. Of the 50 km, 43 km is gritting and 7 km is driving over roads already gritted.
Evaluating the model
The model gives a clear, shortest route. But it ignores one-way streets, which would force longer detours, and wide roads, which need two passes, one for each side. It also assumes the lorry never needs to refill.
Adding these features would change the network: doubling wide roads or making some edges directed. The basic model is still a useful first plan and a benchmark for comparing real routes.
Your turn
The council considers moving the depot so that the lorry can finish at a second depot instead of returning to A. Where should the two depots be, and how much distance would this save each night?
Show a model answer
The odd vertices B and E can be the start and finish, so the lorry needs no repeated roads. The route length falls from 50 km to 43 km, saving 7 km each night.
Practice
Practice ladder
Rung 1: Recall and fluency
Q1. List the odd vertices of the network with edges AB 3, BC 2, CD 3, AE 5, BE 4, CE 4, DE 5 and AD 9.
Worked solution to Q1
The degrees are A 3, B 3, C 3, D 3 and E 4, counting the edges at each vertex. So the odd vertices are A, B, C and D.
Q2. Give the total weight of the network in Q1.
Worked solution to Q2
Adding every edge weight once gives . This is the length of the route before any repeats.
Q3. State how many pairings of four odd vertices there are.
Worked solution to Q3
The first vertex can be paired with any of the other three, and the remaining two then form a pair. So there are 3 pairings.
Rung 2: Application
Q4. In the network of Q1, find the shortest distance between A and D.
Worked solution to Q4
The direct edge AD has weight 9, but the path A, B, C, D has length . The shortest distance is therefore 8.
Q5. Edges PQ 9, PR 3, RQ 4, QT 5 and TP 6 form a network. Calculate the length of its shortest inspection route.
Worked solution to Q5
P and Q are the odd vertices, and the shortest path between them is P, R, Q of length 7. The total weight is 27, so the route length is 34.
Q6. Determine the shortest closed inspection route length for the network in Q1, stating the edges to repeat.
Worked solution to Q6
The pairings give AB + CD = 6, AC + BD = 10 and AD + BC = 10. The best is 6, so repeat AB and CD, giving a route length of 41.
Rung 3: Analysis
Q7. Work out how many pairings there are for eight odd vertices.
Worked solution to Q7
The number of pairings is the product of the odd numbers below 8. That is pairings.
Q8. For the network in Q1, find the shortest route along every edge when the start and finish may differ, and state the ends.
Worked solution to Q8
The closest pair of odd vertices is B and C, 2 apart, so they are joined by a repeat. The ends are A and D, and the route has length .
Q9. Suppose the route in Q1's network must start at B and finish at D. Calculate its length.
Worked solution to Q9
With ends B and D, the vertices A and C must be joined, and their shortest distance is 5. The route length is .
Rung 4: Stretch
Q10. Explain, using the network in Q1, why pairing the two closest odd vertices first can fail.
Worked solution to Q10
B and C are closest, 2 apart, but pairing them forces A with D at 8, a total of 10. Pairing AB and CD costs only 6, so the greedy choice adds 4 to the route.
Q11. Roads BE of length 7 and AF of length 9 are added to the network in the big idea. Find the new shortest inspection route.
Worked solution to Q11
B and E become even, but A and F become odd. The shortest path from A to F is the new road of length 9, and the total weight is 59, so the route length is 68.
Q12. With a start at C and a finish at D in Q1's network, deduce the route length and compare it with the best open route.
Worked solution to Q12
With ends C and D, A and B must be joined, at distance 3. The length is , which is 1 more than the best open route of 37.
Exam practice
Exam technique and worked answer workshop
How these questions are marked
M1 marks go to identifying the odd vertices, considering every pairing, and adding the repeated length to the total. A1 marks go to correct shortest distances, the least pairing and the route length. B1 marks go to explanations and to a valid route.
Always show all the pairings with their totals, even when the best seems obvious. Name the repeated edges, and state the final length with units if the question gives them.
Exam question 1 (6 marks · Paper 3 · about 8 minutes)
Identify the odd vertices of the network in the big idea. Find the length of the shortest inspection route starting and finishing at A, and state which edges must be traversed twice. (6)
Mark scheme for exam question 1
Odd vertices B and E B1
Total weight 43 B1
Considers routes from B to E M1
Shortest path B, D, E of length 7 A1
Route length 50 A1
Repeat BD and DE A1
Exam question 2 (7 marks · Paper 3 · about 10 minutes)
A network has edges AB 3, BC 2, CD 3, AE 5, BE 4, CE 4, DE 5 and AD 9. Apply the route inspection algorithm to find the length of the shortest closed route, considering all pairings of the odd vertices. (7)
Mark scheme for exam question 2
Odd vertices A, B, C, D B1
Considers all three pairings M1
AB + CD = 6 A1
AC + BD = 10 A1
AD + BC = 10, using AD = 8 A1
Total weight 35 M1
Route length 41 A1
Exam question 3 (6 marks · Paper 3 · about 8 minutes)
For the network of exam question 2, the route may start and finish at different vertices. Determine the best start and finish, and the length of the route. (6)
Mark scheme for exam question 3
Recognises two odd vertices are left as ends M1
Considers the repeat for each choice of ends M1
Shortest single repeat BC = 2 A1
Ends A and D A1
Route length 37 A1
Saving of 4 on the closed route B1
Exam question 4 (5 marks · Paper 3 · about 7 minutes)
A network has six odd vertices. Explain how many pairings must be considered when applying the route inspection algorithm, and why the number grows so quickly. (5)
Mark scheme for exam question 4
First vertex has 5 partners M1
Remaining four give 3 pairings M1
15 pairings A1
Product of odd numbers B1
Each extra pair multiplies by the next odd number B1
Exam question 5 (6 marks · Paper 3 · about 8 minutes)
A network has edges PQ 9, PR 3, RQ 4, QT 5 and TP 6. Find the shortest inspection route, explaining why the direct edge PQ is not repeated. (6)
Mark scheme for exam question 5
Odd vertices P and Q B1
Total weight 27 B1
Compares PQ 9 with P, R, Q M1
Shortest 7 A1
Route length 34 A1
Direct edge longer by 2 B1
Exam question 6 (6 marks · Paper 3 · about 8 minutes)
In the network of exam question 2, a route must start at A and finish at B. Calculate its length, and compare it with the best route that starts and finishes at different vertices. (6)
Mark scheme for exam question 6
Ends A and B, so C and D paired M1
Shortest CD = 3 A1
Route length 38 A1
Best open route 37 M1 A1
Difference of 1 B1
Exam question 7 (5 marks · Paper 3 · about 7 minutes)
Suppose the route for the network in the big idea may finish at a different vertex from its start. State where it should start and finish and find its length, explaining why no edges are repeated. (5)
Mark scheme for exam question 7
Odd vertices B and E B1
Start at one, finish at the other M1
No repeats needed B1
Length 43 A1
A trail exists using each edge once B1
Exam question 8 (6 marks · Paper 3 · about 8 minutes)
A new road BE of length 7 is built in the network in the big idea. Find the length of the shortest closed inspection route after the road is built, and explain why it equals the length before the road was built. (6)
Mark scheme for exam question 8
New total weight 50 B1
B and E become even M1
All vertices even, so no repeats A1
Route length 50 A1
Before: 43 + 7 = 50 M1
The new road replaces the repeated path of the same length B1
Annotated model answer: exam question 2
The degrees are A 3, B 3, C 3, D 3 and E 4, so the odd vertices are A, B, C and D. B1. The three pairings are needed. M1. AB + CD = 3 + 3 = 6. A1. AC + BD = 5 + 5 = 10. A1.
AD + BC = 8 + 2 = 10, using the path A, B, C, D for AD, which beats the direct edge of 9. A1. The total weight is 35, M1, so the shortest route has length , repeating AB and CD. A1.
Annotated model answer: exam question 3
An open route leaves two odd vertices as the ends, so only the other two need joining. M1. For each choice of ends, the repeat is the distance between the other two. M1. The shortest such distance is BC = 2. A1.
So the ends are A and D, A1, and the route has length . A1. This is 4 shorter than the closed route of 41. B1.
Connections
Synoptic link
Graphs, networks and planarity introduced Eulerian and semi-Eulerian graphs, which decide when no repeats are needed. Minimum spanning trees and shortest paths gave Dijkstra's algorithm, which finds the distances between odd vertices.
The travelling salesman problem, next, asks a related but different question: visiting every vertex rather than travelling every edge. Comparing the two problems is a common exam theme.
Synoptic question 1. Why can the odd vertices in a route inspection problem always be paired? Use the handshaking lemma in your explanation.
Answer to synoptic question 1
The degrees add to twice the number of edges, which is even. So there is always an even number of odd vertices, and they can always be split into pairs.
Recap
Recap and next step
- If every vertex is even, the shortest inspection route is the total weight.
- Odd vertices must be paired, and the shortest path between each pair is repeated.
- With two odd vertices, add their shortest distance to the total weight.
- With four odd vertices, compare all three pairings; with six, compare fifteen.
- If the route may end elsewhere, leave two odd vertices as the ends and pair the rest.
- A full route lists vertices so that every edge, including repeats, is used.
Next chapter: The travelling salesman problem, which looks for the shortest tour visiting every vertex.
For your exam board
This chapter covers Pearson Edexcel A Level Further Mathematics (9FM0) Decision Mathematics 1 section 3: the route inspection algorithm, for networks with up to four odd vertices and with six given the distances, including routes with different start and finish points. It is assessed on Paper 3D, Decision Mathematics 1. Similar content appears in AQA (7367) and OCR (H245) discrete options.