jmaths
IB Mathematics: Applications and Interpretation HL · AHL 1: Graph Theory · AHL 1.11
Name Date
The travelling salesman: nearest neighbour Problem set A
Write the tour as a list of vertices and add the weights. Remember to return to the start. No calculator is needed.
Difficulty: first skills applying them stretch
Skills
-
The table shows the distances in km between five towns. Use the nearest neighbour algorithm from C. Write down the tour and its length.
-
The graph shows the distances in km between five towns. Use the nearest neighbour algorithm from A. Write down the tour and its length.
-
The graph shows the distances in km between five towns. A route is A–B–D–C–E–A.
- (a) Show that the route is a Hamiltonian cycle and find its length.
- (b) What does the length tell you about the shortest route that visits every town and returns?
-
The table shows the distances in km between six towns. Use the nearest neighbour algorithm from B. Write down the tour and its length.
-
A courier must visit 7 towns, starting and finishing at the same town. Every pair of towns is joined by a road. A tour and its reverse count as one tour.
- (a) How many different tours are there?
- (b) A computer checks 10 000 tours every second. How long would it take to check every tour for 14 towns? Give your answer in hours to 3 significant figures.
In context
-
A bakery van leaves the depot A, delivers to five shops B to F and returns to A. The table shows the distances in km. Use the nearest neighbour algorithm from A. Write down the route and its length, and state what the length tells you about the shortest possible route.
-
A tour guide visits six villages A to F and returns to her start. The table shows the distances in km.
- (a) Use the nearest neighbour algorithm from A. State the tour and its length.
- (b) Use the nearest neighbour algorithm from E. State the tour and its length.
- (c) State the best upper bound for the shortest route.
-
A delivery driver finds a route of 55 km that visits every stop and returns to the depot, using the nearest neighbour algorithm. Later she finds a route of 51 km.
- (a) State the best upper bound for the shortest route.
- (b) Can the shortest route be 53 km? Explain.
- (c) Can the shortest route be 45 km? Explain.
Stretch
-
The graph shows the distances in km between five towns.
- (a) Use the nearest neighbour algorithm from A. State the tour and its length.
- (b) Find a Hamiltonian cycle shorter than your answer to part (a).
- (c) Does the nearest neighbour algorithm always give the shortest route? Use your answers to explain.
-
The table shows the distances in km between five towns A to E. A salesman may start at any town.
- (a) Use the nearest neighbour algorithm from each town in turn. Write down the length of each tour.
- (b) State the best upper bound and the tour that gives it.
jmaths.xyz · AI HL · AHL 1.11 The travelling salesman: nearest neighbour