4 ms·
> To provide some context: If you started computing this problem on your home computer right now, you’d find the optimal route in about 9.64 x 1052 years — long
by thxg 6y ago
> To provide some context: If you started computing this problem on your home computer right now, you’d find the optimal route in about 9.64 x 1052 years — long after the Sun has entered its red giant phase and devoured the Earth
The above statement is only correct if you go for the naivest of brute force enumerations. As an alternative, you could use a mathematical programming code like Concorde [1], and solve the problem to optimality in under a second.
> If we’re willing to accept that we don’t need the absolute best route between all of the landmarks, then we can turn to smarter techniques such as genetic algorithms to find a solution that’s good enough for our purposes.
The particular TSP instance tackled heuristically in this post (i.e. without any optimality guarantees) is about the same size (50 cities) as that solved by Dantzig, Fulkerson and Johnson to optimality, by hand, in 1954 [2].
[1] http://www.math.uwaterloo.ca/tsp/concorde.html http://www.math.uwaterloo.ca/tsp/concorde.html
[2] http://www.math.uwaterloo.ca/tsp/uk/history.html http://www.math.uwaterloo.ca/tsp/uk/history.html
- thxg 6y agoOh, this needs a (2015). The bad wording was already highlighted here: http://www.math.uwaterloo.ca/tsp/usa50/index.html http://www.math.uwaterloo.ca/tsp/usa50/index.html