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

Frozen Wonder: Ceres May Have Cooked Up the Right Recipe for Life Billions of Years Ago

If this dwarf planet supported life, it means there were many Earths in our solar system.

Are Cyborg Jellyfish the Next Step of Deep Ocean Exploration?

We still know very little about our oceans. Can jellyfish change that?

Can AI help us reduce hiring bias? It's possible, but it needs healthy human values around it

AI may promise fairer hiring, but new research shows it only reduces bias when paired with the right human judgment and diversity safeguards.

Hidden for over a century, a preserved Tasmanian Tiger head "found in a bucket" may bring the lost species back from extinction

Researchers recover vital RNA from Tasmanian tiger, pushing de-extinction closer to reality.

Island Nation Tuvalu Set to Become the First Country Lost to Climate Change. More Than 80% of the Population Apply to Relocate to Australia Under World's First 'Climate Visa'

Tuvalu will likely become the first nation to vanish because of climate change.

Archaeologists Discover 6,000 Year Old "Victory Pits" That Featured Mass Graves, Severed Limbs, and Torture

Ancient times weren't peaceful by any means.

Space Solar Panels Could Cut Europe’s Reliance on Land-Based Renewables by 80 Percent

A new study shows space solar panels could slash Europe’s energy costs by 2050.

A 5,000-Year-Old Cow Tooth Just Changed What We Know About Stonehenge

An ancient tooth reshapes what we know about the monument’s beginnings.

Astronomers See Inside The Core of a Dying Star For the First Time, Confirm How Heavy Atoms Are Made

An ‘extremely stripped supernova’ confirms the existence of a key feature of physicists’ models of how stars produce the elements that make up the Universe.

Rejoice! Walmart's Radioactive Shrimp Are Only a Little Radioactive

You could have a little radioactive shrimp as a treat. (Don't eat any more!)