Updated · By Pete Bromfield, IB Maths IA examiner

Top-band exemplar · AI HL · written to a full-marks standard

What is the quickest way to deliver a leaflet to every house on my estate?

Graph theory: Chinese postman and modelling · about 13 pages · top-band standard · our judgement 20/20

Written by IB Math Revision to show a top-band (full-marks) standard — not a real student's IA, not moderated by the IB; marks can't be guaranteed. The marks below are our examiner-style judgement against the criteria. This exploration was never submitted in an IB session and we do not claim it scored 20/20.

An AI HL graph-theory exploration written to a top-band (full-marks) standard: the Chinese postman algorithm justified rather than quoted, Dijkstra by hand, all 15 pairings compared (and greedy pairing shown to fail), an open-route variant, a second model for two-sided streets with a break-even analysis, an exhaustive search over 256 street-by-street combinations, and a real delivery to test it.

Why it reaches the top band, criterion by criterion

CriterionMarkWhy
A · Presentation4/4A numbered aim that the sections follow exactly; the conclusion answers each part. Coherent and concise — the variants are there because they change the decision.
B · Mathematical communication4/4Graph drawn clearly with weights, legend and odd vertices marked; tables for degrees, Dijkstra, pairings and times; notation (d(u, v), degrees, multigraph) defined and used consistently.
C · Personal engagement3/3Outstanding: the student owns the task, reshapes the textbook problem to fit reality (two-sided streets, time not distance) and tests the plan in a real delivery.
D · Reflection3/3Substantial and critical: the greedy instinct is tested and rejected, a sensitivity analysis finds the break-even crossing time, and the real delivery is used to re-estimate a parameter and confirm the decision.
E · Use of mathematics6/6Sophisticated and rigorous AI HL mathematics: the algorithm is justified (handshake lemma, why repeated edges form paths), Dijkstra is shown, pairings are counted and all checked, parity in the multigraph is used correctly, and technology is used for a well-designed exhaustive search.
Total20/20Full marks are justified because the student does not just apply the Chinese postman algorithm: they justify it, adapt it twice to the real problem and test it — with every step correct and in service of the aim.

Marks are our judgement of this teaching exemplar against the current criteria, explained criterion by criterion. They are not IB moderation results, and a real IA written to this standard could still be marked differently by a teacher or moderator.

What would lose marks here

The same exploration, with these changes, would drop out of the top band:

  • E Applying the Chinese postman algorithm from a textbook without explaining why it works would make E “correct” but not “sophisticated” at HL — typically 4 rather than 6.
  • E Pairing the nearest odd vertices without checking all 15 pairings gives a wrong answer here (it is 300 m worse).
  • D Stopping at the 2380 m route and saying “this is the best route”, without asking whether distance is the right thing to minimise.
  • C A made-up network with no connection to the student, or a network copied from a textbook exercise.
  • B A graph with no weights shown, or vertices renamed between the diagram and the tables.

Excerpts with examiner annotations

Free sections are shown below with comments; the rest is in the full exemplar, available in the protected viewer with the IA package or a Pro plan.

1. Introduction

Every spring my Scout group raises money by delivering leaflets for a local plant sale, and my patrol is given our own estate: 137 houses on 14 stretches of street. Last year we split up and each walked the streets we thought were nearest, and it took most of a Saturday morning, with some streets done twice and one cul-de-sac missed completely. This year I volunteered to plan the route, and I realised that the problem — walk along every street at least once and return to the start, as quickly as possible — is the Chinese postman problem we met in the graph theory topic.

But the textbook version assumes that walking a street once is enough. On a street with houses on both sides, I either have to cross the road back and forth or walk down one side and back up the other. So the real question is not only which route, but how to walk each street.

Aim. I will (1) model my estate as a weighted graph and find the shortest closed route that covers every street, justifying why it is optimal, (2) see how much an open route (ending somewhere other than home) would save, (3) compare two ways of dealing with streets that have houses on both sides, and find the best combination of them, and (4) test the predicted time against a real delivery.

C A real task the student took responsibility for, with a concrete memory of what went wrong last time. The student immediately notices that the textbook model does not fit the real problem — the question is theirs, not the textbook's.

A The aim is precise, numbered and sets up the structure: optimal route, a variant, a modelling comparison and a test.

2. Modelling the estate as a graph

I drew the estate from an online map and measured each stretch of street between junctions with the map's measuring tool, rounding to the nearest 10 m. Each junction or dead end is a vertex, and each stretch of street is an edge weighted by its length. H is the junction next to my house, where we start and finish. I also counted the houses on each stretch and noted whether they were on one side or both.

Data note: the street network and delivery data in this exemplar are illustrative, created by IB Math Revision; a student must use their own area.

60 170 180 150 130 100 70 200 100 130 100 60 140 190My estate as a weighted graph (lengths in metres)HABCDEFGJKhouses on both sideshouses on one sideodd vertex
Figure 1: Schematic, not to scale. Vertices are junctions or dead ends; H is the junction by my house. Six vertices have odd degree.

Table 1: Degrees of the vertices in Figure 1.
VertexABCDEFGHJK
Degree3334443211

The graph has 10 vertices and 14 edges with a total length of 1780 m. J and K are cul-de-sacs, so they have degree 1. I checked that every edge is the shortest way between its two ends (no street is longer than a detour around it), so the edge weights are also the shortest distances between neighbouring vertices.

Assumptions. Pavements run along every street; the walking distance along a street equals its length; walking speed is constant; every letterbox takes the same time; and there are no one-way restrictions for walkers. I test the effect of the most doubtful of these (the constant times) in Section 7.

B The graph is drawn clearly with a legend, weights on the edges and odd vertices highlighted; the degree table supports the next step.

E Checking that each edge is its own shortest path is a small piece of rigour many students skip — it matters for the pairing step later.

D Assumptions are stated where they are made, and the student says which one will be tested and where.

3. When can every street be walked exactly once?

In the full exemplar (about 1.5 pages). Euler's condition, a proof that the number of odd vertices is even, and a justification of why pairing odd vertices by shortest paths gives the optimal route. Open in the protected viewer

4. The shortest closed route

To compare pairings I need the shortest distance between every pair of odd vertices. Many of these are not direct streets, so I used Dijkstra's algorithm. Table 2 shows it from C: at each step the unvisited vertex with the smallest temporary label is made permanent and its neighbours' labels are updated.

Table 2: Dijkstra's algorithm from C: the order in which vertices receive permanent labels.
StepVertex made permanentShortest distance from C (m)Route
1C0C
2E70C–E
3D100C–D
4A150C–A
5F170C–E–F
6G200C–E–G
7H210C–A–H
8B230C–D–B
9J230C–E–F–J
10K390C–E–G–K

I repeated this from each odd vertex (and checked the results with a graph-theory package). With six odd vertices there are \(5 \times 3 \times 1 = 15\) possible pairings: A can be paired with any of the other 5, then the first remaining vertex with any of 3, and the last two together.

Table 3: The six cheapest of the 15 ways of pairing the odd vertices (shortest distances in brackets).
PairingAdded length (m)
AB (180), CJ (230), GK (190)600
AB (180), CG (200), JK (350)730
AB (180), CK (390), GJ (160)730
AC (150), BJ (390), GK (190)730
AJ (380), BC (230), GK (190)800
AC (150), BG (400), JK (350)900
… 9 more pairingsup to 1170

The best pairing is AB, CJ, GK, adding 600 m, so the shortest closed route is \(1780 + 600 = 2380\) m. My first instinct was to pair the closest odd vertices first: that gives AC, GJ, BK for 900 m, which is 300 m worse. Pairing the closest vertices first uses up the pair AC and leaves the remaining vertices far apart. This is why all 15 pairings have to be checked.

60 170 180 150 130 100 70 200 100 130 100 60 140 190Streets walked twice in the optimal closed route (600 m)HABCDEFGJKrepeated
Figure 2: The repeated streets join the odd vertices in the pairs AB, CJ, GK.

To turn this into a route I added the repeated streets to the graph (now every vertex has even degree) and built an Eulerian circuit starting at H with Hierholzer's method — follow edges until you return to the start, then splice in any unused loops. One such route, of 2380 m, is:

H–B–D–E–G–K–G–F–J–F–E–C–E–F–D–C–A–B–A–H

Checking it edge by edge, it uses every street once, except the repeated ones, which it uses twice, and its length adds up to 2380 m. With 6 odd vertices checking 15 pairings is easy, but the number grows quickly: with \(2k\) odd vertices there are \((2k-1)(2k-3)\cdots 3 \cdot 1\) pairings, which is 945 for 10 odd vertices and over 650 million for 20. A whole town would need a cleverer algorithm than listing them all.

E Dijkstra shown step by step, a correct count of pairings with the reasoning, all pairings considered, and an explicit route constructed and checked. The factorial-style growth is analysed rather than just mentioned.

D The student tests their own instinct (greedy pairing), finds it wrong, and explains why — reflection that deepens understanding of the method.

B Tables and figure work together; the route is written out so it can be followed and checked.

5. Do we have to come back home?

In the full exemplar (about 1 page). The open-route variant for every possible end vertex, and why it saves so little here. Open in the protected viewer

6. Streets with houses on both sides

In the full exemplar (about 3 pages). Two models for two-sided streets, a break-even crossing time, and the best street-by-street combination out of 2^8 cases. Open in the protected viewer

7. Testing the prediction

In the full exemplar (about 1 page). A real delivery with a GPS watch, compared with the model, and what the difference means for the plan. Open in the protected viewer

8. Conclusion and reflection

Modelling my estate as a weighted graph with six odd vertices, the shortest closed route covering every street is 2380 m, found by pairing the odd vertices (AB, CJ, GK) using Dijkstra's shortest distances and checking all 15 pairings; pairing the nearest vertices first would have added 300 m. An open route would save only 150 m. The more important decision was how to walk streets with houses on both sides: walking each side separately adds 650 m but, with any crossing slower than about 11 s, is quicker than zig-zagging, and the best street-by-street mix improves on it by only 2.2 minutes. The real delivery took 71 minutes, longer than predicted because letterboxes took longer than I assumed, but the choice of plan did not depend on that.

The main limitations are in the inputs. Street lengths were measured from a map to the nearest 10 m, the “half the houses need a crossing” rule is an average, and the constant walking speed ignores the hill on the way to K. I tested the parameter that mattered most (the crossing time) and found the conclusion robust. The model also assumes one walker: with the whole patrol, the real problem is to split the estate into several routes of similar length that all start at H, which is a much harder problem (a version of the “multiple postmen” problem) that I could only approach by trial and error.

What surprised me most is that the shortest route was not the quickest. The textbook Chinese postman problem minimises distance, but my problem was to minimise time, and making that change is what made the mathematics mine.

A Each part of the aim is answered with the key figures, and the final paragraph returns to the difference between the textbook problem and the student's own.

D Limitations are specific and prioritised by their effect; the natural extension (several walkers) is identified honestly as beyond the exploration.

Bibliography and appendices

In the full exemplar (about 1 page). Sources, technology and appendices. Open in the protected viewer

What a moderator could still ask for

  • Even at this level, a moderator might want the argument in Section 3 (repeated edges split into paths between odd vertices) made fully rigorous rather than “convinced myself”.
  • The half-the-houses crossing rule could be checked by counting the actual sides of consecutive houses on one street.

Frequently asked questions

Did this IA actually get 20/20?

No — it is not a real student's IA and was never submitted or moderated. It was written by IB Math Revision to show what a top-band (full-marks) standard looks like; the marks are our examiner-style judgement against the criteria, and no one can guarantee a mark.

Is the Chinese postman problem enough for AI HL?

It can be, if you justify the algorithm and adapt it to a real problem, as here. Applying it to a textbook-style network with no changes usually is not enough for the top of Criterion E at HL.

Can I do a route IA on my own town?

Yes — your own streets, your own measurements and your own reason for the route are what make it yours. Do not reuse this exemplar's network, structure or wording: copying or closely paraphrasing an exemplar is academic misconduct.

Other top-band examples

All 10 annotated exemplars, including a deliberately mid-band draft.

Read the whole exploration

The full “Chinese postman leaflet round (AI HL)” exemplar, with an examiner's note on every section, is in the IA package with the other 9 exemplars (Pro and Platinum plans include them too). €39 once, 12 months' access, 14-day money-back guarantee. It helps you write your own IA; it never writes it for you.

See what's in the IA package

Already have access? Open it in the viewer · All exemplars · Want your own draft marked like this? Examiner review