Real life traveling salesman problem

  • Context: Undergrad 
  • Thread starter Thread starter beamthegreat
  • Start date Start date
  • Tags Tags
    Life
Click For Summary
SUMMARY

The discussion centers on solving the Traveling Salesman Problem (TSP) for a trip starting from New York to Paris, Rome, Munich, Bern, and Madrid. The brute force method calculates 120 possible routes, with the goal of identifying the shortest distance. Tools like Wolfram Alpha can assist in determining distances, although they may not account for actual travel routes. The optimal round trip route identified is NY-Paris-Bern-Munich-Rome-Madrid-NY, while a one-way trip is suggested as NY-Madrid-Paris-Bern-Munich-Rome.

PREREQUISITES
  • Understanding of the Traveling Salesman Problem (TSP)
  • Familiarity with basic distance calculation methods
  • Knowledge of online tools like Wolfram Alpha
  • Awareness of geographical proximity of cities
NEXT STEPS
  • Explore advanced algorithms for solving the Traveling Salesman Problem
  • Learn about optimization techniques for route planning
  • Investigate travel planning tools that incorporate real-world data
  • Study the impact of geographical factors on route efficiency
USEFUL FOR

Travel planners, logistics coordinators, and anyone interested in optimizing travel routes for efficiency and cost-effectiveness.

beamthegreat
Messages
116
Reaction score
7
TL;DR
How to find optimal route for a trip to multiple cities
If a person is from New York, and he/she wants to visit Paris, Rome, Munich, Bern, and Madrid in a single trip, what's the shortest route to take? Are there any practical online tools you can use to solve this problem that doesn't require you to have knowledge of programming or mathematics?
 
Mathematics news on Phys.org
Here we have 6 cities to visit. This is solvable by brute force techniques.

You start in NY, thus you have 5 options for the first city, 4 for the next one etc. So eventually, you have ##5! =120## possible routes. Now, pick the one with minimal distance.
 
Wolfram alpha can do this with simple location data (as the bird flies), but not with roads \ railway \ airports I don't think. Shortest Path
 
I think you'd want to optimise time or cost rather than distance here.
 
  • Like
Likes   Reactions: pbuk and jbriggs444
When I look at the map, Madrid seems to be the outlier of those. The other 4 seem to have some proximity to each other. However that might just be my opinion.
 
Just wondering.
Does it make a difference if the return trip to New York is included?
 
If you assume straight line distances then simply by looking at the map the optimum route for a round trip is NY-Paris-Bern-München-Roma-Madrid-NY. This is trivial because the path is almost convex with only a slight deviation to Bern.

Replace Bern with Lyon and the problem becomes more interesting (and at the risk of offending anyone from Switzerland, so does the trip :biggrin:).

The one-way solution is again trivial by inspection (if you count checking that Madrid is closer to Paris than it is to Roma with dividers on my globe): NY-Madrid-Paris-Bern-München-Roma.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
913
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
29
Views
5K