optimise distances through trial-and-error and systematic methods; for example, shortest path, routes to visit all towns, and routes to use all roads