We have solved a traveling salesman problem (TSP) to walk to 81,998 bars in South Korea. The problem was created using the Open Source Routing Machine (OSRM) to build a table of the 3,361,795,003 point-to-point travel times, one for each pair of bar locations. Our computation produced a tour together with a proof that it is a shortest-possible route to visit all 81,998 stops when measured with the OSRM times.
It would be a very long pub crawl. The total walking time for the round trip is 15,386,177 seconds, or 178 days, 1 hour, 56 minutes, and 17 seconds. You will need to stop for plenty of drinks along the way (better stick with water, tea, or Diet Coke if you want to finish the route in only a few years), so it's not likely you would count every second on such a journey. But the level of precision makes the point that this not just a good route, it is an optimal solution to the 81,998-stop TSP. It is not possible to rearrange the order of stops to save even a single second of the OSRM-estimated walking time.
This is the largest road-map instance of the TSP that has been solved to provable optimality, exceeding the 57,912-stop tour through the Netherlands solved in February 2021. The computations were carried out between December 2024 and March 2025 at Roskilde University and at the University of Waterloo. Details of the computing work can be found on the Computation page.
Interactive map
The figure below is a screen shot of an interactive map of the korea81998 tour. The menu on the left-hand-side lets you select one of seven regions to view. At the top right-hand-side you can choose to have either a colored street map or a grayscale map without street labels. Just below this menu you can select whether or not to display the stop markers, or to display the tour edges, or to display both. You can view the map by clicking on the image.
Snapshots of the Tour
If you have trouble viewing the interactive map, you can click on the drawings below to see high-resolution images of the tour. For close-up views of city regions, please see the Cities page.
Optimality
Newspapers, popular journals, blogs, and scientific press releases regularly report that solving even tiny instances of the TSP is impossible with the current generation of computers. A typical example is the following quote from the Washington Post.
"It would take a laptop computer 1,000 years to compute the most efficient route between 22 cities, for example."
Statements such as this assume the only way to solve the TSP is to check each possible tour, one-by-one. That clearly cannot work for any of the large instances of the TSP we have solved. The number of tours in the korea81998 case is roughly 2 followed by 367308 zeroes.
This huge number of possible solutions is frightening, but it doesn't mean we can't solve this large example of the TSP. Our approach combines the LKH code for computing extremely good TSP solutions and the Concorde code for applying what is known as the "cutting-plane method" for producing quality guarantees. You can see a short discussion of how we apply these tools on the Computation page.
For a quick glimpse of the cutting-plane method, here is how I describe the process in a short piece in Scientific American
"The idea is to follow Yogi Berra's advice `When you come to a fork in the road, take it.' A tool called linear programming allows us to do just this, assigning fractions to roads joining pairs of cities, rather than deciding immediately whether to use a road or not. It is perfectly fine, in this model, to send half a salesman along both branches of the fork."
"The process begins with the requirement that, for every city, the fractions assigned to the arriving and departing roads each sum to one. Then, step-by-step, further restrictions are added, each involving sums of fractions assigned to roads. Linear programming eventually points us to the best decision for each road, and thus the shortest possible route."
If you have a few minutes, you can check out the video of the talk Optimal Tours given at the National Museum of Mathematics, where the method is described in detail. Or, keeping with the Korean theme, please have a look at video of the talk Amazon Deliveries, Pub Walks, and Astro Tours, given at KAIST in March 2024.
P vs NP
A great discussion of the P and NP complexity classes, including connections to the TSP, can be found in Lance Fortnow's article Fifty Years of P vs. NP and the Possibility of the Impossible.

The Big Picture
We use large examples of the traveling salesman problem as a means for developing and testing general-purpose optimization methods. The world has limited resources and the aim of the applied mathematics fields of mathematical optimization and operations research is to create tools to help us to use these resources as efficiently as possible.
For general information on mathematical modeling and its impact on industry, commerce, medicine, and the environment, we point you to a number of societies that support mathematics research and education: American Mathematical Society, Mathematical Association of America, Mathematical Optimization Society, INFORMS (operations research), and SIAM (applied mathematics).
Research Team
William Cook, Combinatorics and Optimization, University of Waterloo, Canada
Daniel Espinoza, Alicanto Labs, Chile
Marcos Goycoolea, School of Business, Universidad Adolfo Ibanez, Chile
Keld Helsgaun, Computer Science, Roskilde University, Denmark
Acknowledgements
The huge number of linear-programming models that arose in the computation were solved with the IBM CPLEX Optimizer. Many thanks to IBM for making their great software freely available for academic research.
The map drawings of the tour were created with the Leaflet open-source JavaScript library for mobile-friendly interactive maps and make use of map tiles built by OpenStreetMap, by Carto Basemaps and by Stadia Maps.
We thank Dr. Sang-il Oum, Chief Investigator of the Discrete Mathematics Group at the Institute for Basic Science (IBS) for obtaining the locations of the bars in Korea. The locations were downloaded from a database maintained by the Korean National Police Agency.
The table of point-to-point walking times was created with the Open Source Routing Machine (OSRM).
Other Road Trips