Nearest neighbour is a bound, not an answer
Take the cheapest road at every step and you get 23. Every choice was the best available, and the tour is still not the best tour: the true shortest is 22.
The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.
Four quick ones from earlier work. Try each on paper before you open the answer.
A and C: two odd vertices. Every degree sum is even, so there is always an even number of odd vertices. Two odd vertices are exactly the case where an Eulerian trail exists but a circuit does not.
7. A tree on n vertices has n − 1 edges: one fewer edge than vertices, because a tree has no cycle.
8 km, going through B. The direct road is longer, so a table of least distances replaces 10 with 8.
A trail. A path may not repeat a vertex, and B is repeated; a trail may repeat vertices but not edges. The five route words differ in exactly what they may repeat.
Two tours of the same five towns, one built greedily and one optimal. They are not the same tour.
| Word | What it may repeat | Closed? |
|---|---|---|
| Walk | Anything: edges and vertices | Either |
| Trail | Vertices, but no edge twice | Either |
| Path | Nothing | Open |
| Circuit | Vertices, but no edge twice | Closed |
| Cycle | Nothing except the start, which is also the end | Closed |
| Named route | Visits | Exists when |
|---|---|---|
| Eulerian trail | every EDGE once | the graph is connected AND exactly 0 or 2 vertices have odd degree |
| Eulerian circuit | every EDGE once, and returns | the graph is connected AND every vertex has even degree |
| Hamiltonian path | every VERTEX once | no simple test exists |
| Hamiltonian cycle | every VERTEX once, and returns | no simple test exists |
Euler is about edges and Hamilton is about vertices. The two words are the thing questions swap on you. Connectivity sits in both Euler rows for a reason: two disjoint triangles have every degree even and no Eulerian circuit at all. And note the asymmetry: Euler has a five-second test and Hamilton has no simple test at all, which is why the travelling salesman problem is met with bounds rather than an exact method.
Still to come in this lesson:
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.
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.