3 ms·
30+(a number smaller than, say, a hundred or two) is totally brute forcable. I have a python script that plans walking routes between attractions at a large-is
by bigiain 6y ago
30+(a number smaller than, say, a hundred or two) is totally brute forcable.
I have a python script that plans walking routes between attractions at a large-ish festival that pre-calculates shortest paths by brute forcing dijkstra's algorithm between every pair of ~200 "intersections" in a minute or two on my laptop. (The app can then just look up the route by start/end location and draw it on a map)
Travelling salesman is hard, but even O(n!) is trivial on machines today where n is small. And there are simplifications and approximations that get something like within 1% of the theoretical shortest path in something like O(n log(n)) time (with significant startup/preprocessing time, but where N is between a few thousand and a few million these work).