Tour Guide (Companion to the Knight’s Tour Activity)
Containing two linked activities, these resources from the CS4FN team introduce graphs to represent inter-related data and algorithms to negotiate them.
Suitable for non-programmers being introduced to algorithms, the two challenges – the Knights Tour and the Tour Guide – are similar. Both use graphs as abstractions of data that present only the information that is critical to solving the problem – complexity is hidden. For the tour guide nodes represent tourist destinations while edges represent the routes between them. The Knights tour presents a modified chessboard, and ask if an algorithm can be found that allows the Knight to visit each square only once.
The students are challenged to plot out a Hamiltonian Cycle – i.e. to visit each node once. While the Tour Guide presents learners with a ready-made graph The Knights tour challenges them to draw their own – thereby abstracting a potentially difficult problem. Depth-first and breadth-first search methods – both graph traversal algorithms - are illustrated as ways to systematically draw graphs.
It turns out, ultimately, that the two graphs are identical, even though the problems appeared to be similar but different. Generalising the problem and representing it in different ways has allowed one solution to be applied to another, related, problem.
This activity would be appropriate for students of all ages, upper primary upwards.
Show health and safety information
|Age||7-11, 11-14, 14-16, 16-19|
|Published||2010 to 2019|
|Log in to rate this resource|
- Queen Mary University of London