homehome Home chatchat Notifications


The perfect pub crawl: mathematicians solve most efficient way to visit all 81,998 bars in South Korea

This is the longest pub crawl ever solved by scientists.

Tudor Tarita
May 1, 2025 @ 11:14 am

share Share

Mathematicians at Roskilde University and the University of Waterloo announced that, using the Open Source Routing Machine (OSRM), they have solved this staggering version of the traveling salesman problem (TSP)—a centuries-old mathematical challenge. They found an optimal path through all 81,998 bars across South Korea. And not just a good path, but the very best one: not a single second can be made to it.

“It is not possible to rearrange the order of stops to save even a single second of the OSRM-estimated walking time,” the researchers stated.

The total journey, they found, would take 15,386,177 seconds, or about 178 days, 1 hour, 56 minutes, and 17 seconds—provided you never stop for more than a sip of water.

How Seoul looks on the map in question
How Seoul looks on the map in question. Credit: University of Waterloo

How They Solved It

The Traveling Salesman Problem (TSP) is one of the most iconic and deceptively simple challenges in mathematics and computer science. At its core, the problem asks: what is the shortest possible route that visits a set of locations exactly once and returns to the starting point?

While easy to grasp, solving it efficiently becomes mind-bogglingly complex as the number of locations increases. It also has real life applications ranging from optimizing delivery routes, planning efficient manufacturing processes, scheduling satellite observations, mapping genome sequences, and designing microchips.

The main issue is that number of possible tours grows faster than you’d imagine. For this Korean pub crawl, the number of possible paths is about 2 followed by 367,308 zeroes—a number so large it makes the atoms in the universe look countable.

These problems are so large you can’t just brute force calculation. As the Washington Post once put it: “It would take a laptop computer 1,000 years to compute the most efficient route between 22 cities, for example.”

But brute-force guessing isn’t how modern mathematicians tackle the TSP.

The research team combined two sophisticated techniques: the LKH code for generating exceptionally good approximations, and the Concorde TSP Solver, which uses a strategy called the cutting-plane method.

An overview of the entire map in question
An overview of the entire map in question. Credit: University of Waterloo

Instead of locking in one road at a time, the cutting-plane method first allows fractional travel along multiple paths. Only gradually, with increasingly sharp constraints, does the algorithm home in on a final, indivisible route—the one true path.

Between December 2024 and March 2025, researchers used the OSRM to estimate walking times between every pair of bars, generating a colossal table of 3,361,795,003 travel times. They then applied their algorithms to sculpt these millions of possibilities into a single, perfect loop.

OK but… why?

At first glance, the project sounds like an academic stunt or a pub-crawler’s fever dream. But the traveling salesman problem isn’t just about maps and bar hops. It’s at the heart of how we optimize our increasingly complex world—from routing Amazon deliveries to scheduling telescope observations, even to designing computer chips. Each solution can help us finesse algorithms and pushes the frontier of what’s computationally possible.

“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,” the researchers note.

It’s also a great way to get people more interested into math. It’s often said that mathematics is unattractive… well what’s more attractive than a pub crawl? In 2021, a similar tour through 57,912 locations in the Netherlands set the previous world record. This new Korean pub crawl surpasses it, marking the largest road-map TSP ever solved to provable optimality.

An interactive map of the full tour has been made available online. You can zoom into city clusters or pan across sprawling countryside, where the tour delicately stitches towns together like beads on a necklace.

In doing so, the work serves as both a technical landmark and a gentle reminder: even in a world that sometimes feels chaotic and messy, patterns of astonishing order can be found—or created—with enough ingenuity and perseverance.

And if you ever find yourself with six months to spare and a sturdy pair of shoes in South Korea, the route awaits.

share Share

Your gut has a secret weapon against 'forever chemicals': microbes

Our bodies have some surprising allies sometimes.

High IQ People Are Strikingly Better at Forecasting the Future

New study shows intelligence shapes our ability to forecast life events accurately.

Cheese Before Bed Might Actually Be Giving You Nightmares

Eating dairy or sweets late at night may fuel disturbing dreams, new study finds.

Scientists Ranked the Most Hydrating Drinks and Water Didn't Win

Milk is more hydrating than water. Here's why.

Methane Leaks from Fossil Fuels Hit Record Highs. And We're Still Looking the Other Way

Powerful leaks, patchy action, and untapped fixes keep methane near record highs in 2024.

Astronomers Found a Star That Exploded Twice Before Dying

A rare double explosion in space may rewrite supernova science.

This Enzyme-Infused Concrete Could Turn Buildings into CO2 Sponges

A new study offers a greener path for concrete, the world’s dirtiest building material.

AI Helped Decode a 3,000-Year-Old Babylonian Hymn That Describes a City More Welcoming Than You’d Expect

Rediscovered text reveals daily life and ideals of ancient Babylon.

Peeling Tape Creates Microlightning Strong Enough To Power Chemistry

Microlightning from everyday tape may unlock cleaner ways to drive chemical reactions.

Menstrual Cups Passed a Brutal Space Test. They Could Finally Fix a Major Problem for Many Astronauts

Reusable menstrual cups pass first test in space-like flight conditions.