travelling salesman problem
travelling salesman problem
(algorithm, complexity)This is a famous problem with a variety of solutions ofvarying complexity and efficiency. The simplest solution (thebrute force approach) generates all possible routes andtakes the shortest. This becomes impractical as the number oftowns, N, increases since the number of possible routes is!(N-1). A more intelligent algorithm (similar to iterative deepening) considers the shortest path to each town which canbe reached in one hop, then two hops, and so on until alltowns have been visited. At each stage the algorithmmaintains a "frontier" of reachable towns along with theshortest route to each. It then expands this frontier by onehop each time.
Pablo Moscato's TSP bibliography.Fractals and the TSP.