KS Maths
Year 11 Extended · Unit 7 Networks and vectors · Lesson 2 of 8

Euler and Hamilton routes

Can a route use every street once, or visit every town once?

Two questions sound alike: can a route use every edge exactly once, and can it visit every vertex exactly once? This lesson finds a quick test for one of them, shows why the other is harder, and shows that the two can disagree on the same network.

Geometry and TrigonometryNo calculator

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

vertex
A corner of a shape. Also, the turning point of a parabola.A triangle has three vertices.
odd
A whole number that leaves remainder 1 when divided by 2.7 is an odd number.
degree
The highest power of x in a polynomial. Also, the unit for measuring angles.The degree of x cubed plus x is 3.
edge
A line where two faces meet. In graph theory, a line joining two points.A cube has twelve edges.
exact
Not rounded. Completely correct.The exact answer is one third, not 0.33.
network
Points joined by lines, like a map of roads.A road map is a network.
round
Change a number to a nearby simpler number.Round 47 to the nearest ten: 50.
pentagon
A shape with five sides.A pentagon has five corners.
twice
Two times as much.Twice 4 is 8.
chord
A straight line joining two points on a circle.A diameter is the longest chord.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Three quick ones from earlier work. Try each in your head or on paper before you open the answer.

  1. From Lesson 1: a graph has 9 edges. What do its degrees add to?
    Answer18. Each edge is counted at both ends.
  2. From Year 10 (listing outcomes): in how many different orders can 3 books be put in a row?
    Answer6. 3 × 2 × 1.
  3. From Lesson 1: could a graph have exactly three vertices of odd degree?
    AnswerNo. The number of odd vertices is always even.
Words used in this lesson
Euler circuit
a route that uses every edge once and returns to its start. For example: a postal round.
Euler trail
a route that uses every edge once and ends elsewhere. For example: start at one odd vertex.
Hamilton cycle
a route that visits every vertex once and returns. For example: a tour of every town.
connected
every vertex can be reached from every other. For example: a road map with no island.
complete graph
every pair of vertices is joined by an edge. For example: every town has a road to every other.

Can the van cross every bridge exactly once?

A market town in Peru has four districts, P, Q, R and S, separated by rivers. Two bridges join P and Q, two join P and R, and one bridge joins each of the pairs P and S, Q and S, and R and S: seven bridges in all. The council wants a van to cross every bridge exactly once on a market-day round. Treat each district as a vertex and each bridge as an edge, and the question becomes one about a graph. A route that uses every edge exactly once is an Euler route. If it ends where it began it is an Euler circuit; if it ends elsewhere it is an Euler trail.

Predict first: can the van cross every bridge exactly once? Then explore the four networks in the figure, and look at whether a route that visits every vertex once (a Hamilton route) behaves the same way.

3A2B3C2D2Enetwork 2shaded vertices have odd degree
2vertices of odd degree
trailEuler route
yesHamilton cycle

Network 2: 2 vertices have odd degree, so there is an Euler trail between the two odd vertices; a Hamilton cycle exists.

Show me the steps
  1. Network 1, the pentagon: every degree is 2, so there is an Euler circuit, and going round the five sides is also a Hamilton cycle.
  2. Network 2, the pentagon with chord AC: A and C have degree 3, so there is an Euler trail that starts at one of them and ends at the other, and the sides still give a Hamilton cycle.
  3. Network 3, the pentagon with chords AC, BD and CE: four vertices have odd degree, so there is no Euler route at all, yet the sides are still a Hamilton cycle.
  4. Network 4, two triangles meeting at C: every degree is even, so there is an Euler circuit, but C would have to be visited twice to cover the other four vertices, so there is no Hamilton cycle.

Euler test, by counting odd vertices. A connected graph has an Euler circuit if every vertex has even degree, an Euler trail (starting at one odd vertex and ending at the other) if exactly two have odd degree, and no Euler route if more than two have odd degree.

Hamilton routes have no such test. A Hamilton cycle visits every vertex exactly once and returns. You find one by searching, or show there is none by finding a vertex that every cycle would have to pass through twice. A complete graph has a Hamilton cycle for every n of 3 or more; counting them is a counting problem: fix a start, then count the orders of the other vertices. A cycle and the same cycle taken the other way round are one cycle, so when the question asks for distinct cycles, halve that count.

Two common slips. Thinking the two kinds of route go together: a network can have an Euler circuit and no Hamilton cycle, and the reverse. And using the odd-vertex count when the graph is not connected: if some part cannot be reached from another, no route can use every edge at all.

The rest of this lesson is in the full course

Still to come in this lesson:

  • Worked examples
  • Check before you go on
  • Your turn

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

Years 7 to 11 plan$59Every lesson from Year 7 to Year 11, so the refresher links always open, and every Year 7 to 11 revision pack, for the whole family. $59 for 12 months or $99 for 2 years.
IB Diploma plan$99Every lesson from Year 7 to the IB Diploma, AA and AI, SL and HL, for the whole family. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

Year 11 revision pack, $19BuyPlan $59