liveBook · Manning

Tour

As explained in Advanced Algorithms and Data Structures

A tour is a closed sequence of locations that visits the required locations and returns to its starting location.

A tour is a closed sequence of locations: start at one location, visit every required location, and return to the start. In route optimization, each move has a cost such as distance, travel time, or delivery expense; the objective is to minimize the total cost. section 17.2

A single shortest path solves only one delivery at a time. A delivery truck carrying several shipments instead needs one tour through its assigned destinations, beginning and ending at the warehouse. The problem assumes the load and destinations are already fixed; assigning deliveries across trucks is a separate optimization. section 17.2

When representing and comparing tours, make these constraints explicit:

  • Visit each required city exactly once before returning to the starting city. section 17.2
  • Fix the starting location when possible. Rotating a closed tour produces the same solution, so fixing one city removes equivalent permutations; six vertices reduce from 720 sequences to 120. section 17.2.3
  • For an undirected graph, reversing a tour may preserve its cost, leaving at most two equivalent solutions after fixing the start. section 17.2.3

Equivalent closed tours

The sequences [Opal City, Civic City, New Carthage, Happy Harbor, Gotham City, Metropolis] and [New Carthage, Happy Harbor, Gotham City, Metropolis, Opal City, Civic City] describe the same closed tour when the starting point is allowed to shift. With New Carthage fixed as the start, reversing the order gives another equally costly solution in an undirected graph. section 17.2.3

Figure 17.8 An example map, mixing the DC Universe’s cities and other real ones, with some distances: because this is a complete graph with close to fifty edges, we are only showing a few numbers, almost only for the edges in the best tour (the thicker edges).

Use the map to inspect a complete graph of cities, edge costs, and a highlighted shortest tour. section 17.2

How Advanced Algorithms and Data Structures covers it

How deep it goes
Defines tour constraints, cost minimization, and symmetry-based pruning, but defers cross-truck assignment.
Examples
Uses delivery trucks, city maps, complete graphs, weighted edges, and equivalent city permutations.
What it assumes
Assumes familiarity with graphs, paths, edge costs, and route optimization; fixes the starting location explicitly.
What you can do after
Evaluate candidate closed routes and reduce redundant permutations before searching for a minimum-cost tour.
How it connects
Connects traveling salesman, graph algorithms, route optimization, local minima, and simulated annealing.

Also explained in

Compare how 2 books explain tour →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Advanced Algorithms and Data Structures. The section links point to the parts of the book it draws on.