Real life traveling salesman problem

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

Discussion Overview

The discussion centers around the real-life application of the traveling salesman problem, specifically regarding the shortest route for a trip starting from New York to visit Paris, Rome, Munich, Bern, and Madrid. Participants explore various methods and considerations for solving this problem, including practical tools and optimization criteria.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant poses a question about the shortest route for visiting multiple cities and inquires about practical online tools for solving the problem without programming knowledge.
  • Another participant suggests that the problem can be solved using brute force techniques, calculating the number of possible routes based on permutations of the cities.
  • A third participant mentions that Wolfram Alpha can provide solutions based on straight-line distances but may not account for actual travel routes.
  • One participant argues that optimizing for time or cost may be more relevant than simply minimizing distance.
  • Another participant observes that Madrid appears to be an outlier compared to the other cities, which seem closer together.
  • A question is raised about whether including the return trip to New York affects the optimal route.
  • One participant proposes a potential optimal round trip route based on visual inspection of a map, noting that the path is nearly convex with slight deviations.
  • The same participant suggests that changing Bern to Lyon complicates the problem and offers a different one-way route based on their observations.

Areas of Agreement / Disagreement

Participants express differing views on the criteria for optimization (distance vs. time/cost) and the impact of including the return trip. There is no consensus on a definitive solution or method for the problem.

Contextual Notes

Some assumptions about distance calculations and route optimization methods remain unaddressed, and the discussion does not resolve the complexities introduced by different optimization criteria.

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 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
29
Views
6K