Updated · By Pete Bromfield, IB examiner

IA idea · Fractals & chaos

A fractal shortcut for the travelling salesman: ordering stops along a Hilbert curve

AI HLAA HL Ambitious Also in: Networks & graphs, Optimisation

Research question

If delivery stops are visited in the order they appear along a Hilbert space-filling curve, how long is the route compared with the nearest-neighbour route and a lower bound, for real sets of stops?

Adapt it: change the place, the data or the comparison until the question is yours.

Free: the A–E checklist an examiner uses, by email ↓

Why it makes a good exploration

Space-filling curves are a genuine fast heuristic for routing. Comparing them with graph-theory methods links fractals to an applied decision.

The mathematics you'll need

  • Constructing the Hilbert curve recursively
  • Mapping a point to its position along the curve
  • Route length calculations
  • Nearest-neighbour and lower-bound methods (AI HL)
  • Comparing ratios over many sets of stops

Course labels show where a technique sits; using maths from outside your course is fine if you explain it clearly and say it is new to you.

Where the data comes from

Take addresses or landmarks from OpenStreetMap as stops; generate random sets for comparison.

  • OpenStreetMap — Free map with exact coordinates of schools, hospitals, shops and stations; export or read off coordinates.
  • GeoGebra — Free geometry and graphing software — Voronoi diagrams, loci and regression built in.

Cite every source in a footnote where you use it and in your bibliography. Check the licence of any dataset you download.

A possible outline

  1. Explain the curve's construction.
  2. Order stops along it and find the route length.
  3. Compare with nearest neighbour and a lower bound.
  4. Repeat for many sets of stops.
  5. Reflect on roads versus straight lines.

Pitfalls that cost marks

  • Not explaining how a point's position on the curve is found.
  • Comparing on one example only.
  • Ignoring road distances in the conclusion.

Showing personal engagement

  • Use your own delivery round or paper route.
  • Predict which method wins before testing.
  • Try a different space-filling curve.

See Criterion C: personal engagement for what examiners look for.

Which course is it for?

CourseFitMaths to lean on
AA SLNot a natural fitThe core technique sits in the AI course or at HL; an AA SL student could use it only as clearly explained new mathematics.
AA HLGood fitConstructing the Hilbert curve recursively; Mapping a point to its position along the curve
AI SLNot a natural fitThe mathematics is mainly AA or HL (calculus or proof beyond AI SL); an AI SL version would need a data-driven, technology-based approach.
AI HLGood fitConstructing the Hilbert curve recursively; Mapping a point to its position along the curve

Level: Ambitious. Suits confident students; expect to learn some mathematics on your own. See how the IA differs between AA and AI, SL and HL.

How this idea reaches the top bands

Personal engagement (C)

Generate the fractal or the iteration yourself, choose your own variation (a different rule, angle or starting value), and pursue a question you raised while exploring.

Reflection (D)

Reflect on the limits of the model: real coastlines and plants are only self-similar over a range of scales, and computer iterations carry rounding error. Say how that affects your numbers. For this idea, start with: not explaining how a point's position on the curve is found — say how it affects your answer.

Use of mathematics (E)

SL: Geometric sequences and series for lengths and areas, logarithms for dimension, and iteration of functions, each calculated and checked numerically.

HL: Proof of a limit or dimension, complex-number iteration with a derived condition, or analysis of fixed points and their stability using derivatives.

Criteria A and B (presentation and communication) work the same way for every idea: see the guides to Criterion A and Criterion B.

Taking it further

Prove a bound on how much longer the curve route can be in the worst case, or compare different curve orders.

Extending it for HL

This idea already has HL mathematics in it: Nearest-neighbour and lower-bound methods. Find fixed points and decide their stability with derivatives, or prove the limit you found numerically.

Before you start: the checklist an examiner uses

Every check for Criteria A–E in a 4-page PDF, the mistakes that cost the most marks and a self-assessment grid. We'll email it with a short IA tip every few days, timed to your deadline if you give it. Free — no account, no payment.

Turn this idea into your IA

Similar ideas

All fractals & chaos ideas · AI HL ideas · AA HL ideas · All 239 IA ideas