
Why Pigeons at Rest Are at the Center of Complexity Theory
The original version of this story appeared in Quanta Magazine .
They say a bird in the hand is worth two in the bush, but for computer scientists, two birds in a hole are better still. That's because those cohabiting birds are the protagonists of a deceptively simple mathematical theorem called the pigeonhole principle. It's easy to sum up in one short sentence: If six pigeons nestle into five pigeonholes, at least two of them must share a hole. That's it—that's the whole thing.
'The pigeonhole principle is a theorem that elicits a smile,' said Christos Papadimitriou, a theoretical computer scientist at Columbia University. 'It's a fantastic conversation piece.'
But the pigeonhole principle isn't just for the birds. Even though it sounds painfully straightforward, it's become a powerful tool for researchers engaged in the central project of theoretical computer science: mapping the hidden connections between different problems.
The pigeonhole principle applies to any situation where items are assigned to categories, and the items outnumber the categories. For example, it implies that in a packed football stadium with 30,000 seats, some attendees must have the same four-digit password, or PIN, for their bank cards. Here the pigeons are football fans, and the holes are the 10,000 distinct possible PINs, 0000 through 9999. That's fewer possibilities than the total number of people, so some people must have the same digits.
This proof is notable not just for its simplicity, but also for what it leaves out. Many mathematical methods for proving that something exists are 'constructive,' meaning they also show you how to find it. 'Nonconstructive' proofs, like ones based on the pigeonhole principle, don't have this property. In the football stadium example, knowing that some people must have the same PINs won't tell you what they are. You can always go through the stands asking each person in turn. But is there a simpler way?
Questions like this one, about the most efficient way to solve problems, are at the heart of the branch of computer science known as computational complexity theory. Complexity theorists study such questions by lumping problems into classes based on certain shared properties. Sometimes the first step toward a breakthrough is simply defining a new class to unite problems that researchers hadn't previously studied together.
That's what happened in the 1990s, when Papadimitriou and other complexity theorists began to study new classes of problems, in which the goal is to find something that must exist because of the pigeonhole principle or another nonconstructive proof. That line of work has led to important progress in disparate fields of computer science, from cryptography to algorithmic game theory.
Christos Papadimitriou (inset) and Oliver Korten showed that the empty-pigeonhole principle connects to important problems in math and computer science. Photograph: Columbia Engineering. Inset courtesy of Christos Papadimitriou
By January 2020, Papadimitriou had been thinking about the pigeonhole principle for 30 years. So he was surprised when a playful conversation with a frequent collaborator led them to a simple twist on the principle that they'd never considered: What if there are fewer pigeons than holes? In that case, any arrangement of pigeons must leave some empty holes. Again, it seems obvious. But does inverting the pigeonhole principle have any interesting mathematical consequences?
It may sound as though this 'empty-pigeonhole' principle is just the original one by another name. But it's not, and its subtly different character has made it a new and fruitful tool for classifying computational problems.
To understand the empty-pigeonhole principle, let's go back to the bank-card example, transposed from a football stadium to a concert hall with 3,000 seats—a smaller number than the total possible four-digit PINs. The empty-pigeonhole principle dictates that some possible PINs aren't represented at all. If you want to find one of these missing PINs, though, there doesn't seem to be any better way than simply asking each person their PIN. So far, the empty-pigeonhole principle is just like its more famous counterpart.
The difference lies in the difficulty of checking solutions. Imagine that someone says they've found two specific people in the football stadium who have the same PIN. In this case, corresponding to the original pigeonhole scenario, there's a simple way to verify that claim: Just check with the two people in question. But in the concert hall case, imagine that someone asserts that no person has a PIN of 5926. Here, it's impossible to verify without asking everyone in the audience what their PIN is. That makes the empty-pigeonhole principle much more vexing for complexity theorists.
Two months after Papadimitriou began thinking about the empty-pigeonhole principle, he brought it up in a conversation with a prospective graduate student. He remembers it vividly, because it turned out to be his last in-person conversation with anyone before the Covid-19 lockdowns. Cooped up at home over the following months, he wrestled with the problem's implications for complexity theory. Eventually he and his colleagues published a paper about search problems that are guaranteed to have solutions because of the empty-pigeonhole principle. They were especially interested in problems where pigeonholes are abundant—that is, where they far outnumber pigeons. In keeping with a tradition of unwieldy acronyms in complexity theory, they dubbed this class of problems APEPP, for 'abundant polynomial empty-pigeonhole principle.'
One of the problems in this class was inspired by a famous 70-year-old proof by the pioneering computer scientist Claude Shannon. Shannon proved that most computational problems must be inherently hard to solve, using an argument that relied on the empty-pigeonhole principle (though he didn't call it that). Yet for decades, computer scientists have tried and failed to prove that specific problems are truly hard. Like missing bank-card PINs, hard problems must be out there, even if we can't identify them.
Historically, researchers haven't thought about the process of looking for hard problems as a search problem that could itself be analyzed mathematically. Papadimitriou's approach, which grouped that process with other search problems connected to the empty-pigeonhole principle, had a self-referential flavor characteristic of much recent work in complexity theory—it offered a new way to reason about the difficulty of proving computational difficulty.
'You're analyzing the task of complexity theory using complexity theory,' said Oliver Korten, a researcher at Columbia.
Korten was the prospective student with whom Papadimitriou had discussed the empty-pigeonhole principle right before the pandemic. He came to Columbia to work with Papadimitriou, and in his first year of grad school he proved that the search for hard computational problems was intimately linked to all other problems in APEPP. In a specific mathematical sense, any progress on this one problem will automatically translate into progress on a host of others that computer scientists and mathematicians have long studied, such as the search for networks that lack simple substructure.
Korten's paper immediately attracted attention from other researchers. 'I was quite surprised when I saw it,' said Rahul Santhanam, a complexity theorist at the University of Oxford. 'It's incredibly exciting.' He and others have since built on Korten's breakthrough to prove a flurry of new results about connections between computational difficulty and randomness.
'There is amazing richness to this,' Papadimitriou said. 'It goes to the bone of important problems in complexity.'
Original story reprinted with permission from Quanta Magazine, an editorially independent publication of the Simons Foundation whose mission is to enhance public understanding of science by covering research developments and trends in mathematics and the physical and life sciences.
Hashtags

Try Our AI Features
Explore what Daily8 AI can do for you:
Comments
No comments yet...
Related Articles


New York Post
a day ago
- New York Post
How to see the six planets hanging out in the morning skies this month
Six planets are hanging out in the sky this month in what's known as a planetary parade. Catch the spectacle while you can because it's the last one of the year. These linkups happen when several planets appear to line up in the night sky at once. Such parades are fairly common, happening around every year depending on the number of planets. 4 In the pre-dawn sky, you can currently see Venus and Jupiter aligned in Oxfordshire, UK, on August 11, 2025. Geoffrey Swaine/Shutterstock At least one bright planet can be spotted on most nights, weather permitting, according to NASA. Six planets were visible in January skies, and every planet of our solar system was visible in February, but not all could be spotted with the naked eye. Venus, Jupiter, Saturn, and a faint Mercury are visible this month without any special equipment, and the best chances to spot them are over the next week. Uranus and Neptune can only be glimpsed through binoculars and telescopes. Jupiter and Venus made a close brush earlier this week and are still near each other in the eastern sky, 'close together like cat's eyes,' said Carolyn Sumners at the Houston Museum of Natural Science. Mercury will be at its farthest point from the sun on Tuesday morning, making it easier to spot before it disappears into the sun's glare. 4 Saturn will be visible this month without any special equipment, and the best chances to spot it are over the next week. NASA, ESA, J. Clarke and Z. Levay 4 Mercury will be at its farthest point from the sun on Tuesday morning, making it easier to spot before it disappears into the sun's glare. marcel – To catch the planets, go out in the morning shortly before sunrise and look east. Try to find Jupiter and Venus clustered together first. Saturn is off to the side, and Mercury will be close to the horizon, trying to rise before the sun. 4 Uranus and Neptune can only be seen with binoculars and telescopes. AP 'You're looking for little tiny pinpoints of light, but they are the brightest ones,' said Justin Bartel with the Science Museum of Virginia. 'They don't really twinkle like the stars do.' Before heading out, make sure it is a clear, cloudless morning and try to get away from tall buildings that could block the view. Mercury will hide behind the sun again toward the end of the month, but a crescent moon will then join the parade. The next big planetary hangout is in February.


Scientific American
08-08-2025
- Scientific American
Science Quiz: Cosmic Inflation and Lunar Nights
Allison Parshall is an associate editor at Scientific American covering mind and brain and she writes the weekly online Science Quizzes. As a multimedia journalist, she contributes to Scientific American 's podcast Science Quickly. Parshall's work has also appeared in Quanta Magazine and Inverse. She graduated from New York University's Arthur L. Carter Journalism Institute with a master's degree in science, health and environmental reporting. She has a bachelor's degree in psychology from Georgetown University.


Medscape
07-08-2025
- Medscape
Common Painkiller Tied to Heart Failure Risk in Older Adults
The antiseizure medication pregabalin, which is commonly prescribed for chronic pain, has been linked to an increased risk for heart failure (HF), particularly in those with a history of cardiovascular disease (CVD), new data suggested. In a cohort of more than 240,000 Medicare beneficiaries with noncancer chronic pain, initiation of pregabalin was associated with a 48% higher risk for new-onset HF overall and an 85% higher risk in those with a history of CVD than initiation of gabapentin. The study was published online on August 1 in JAMA Network Open . Widely Prescribed Medications Chronic pain affects up to 30% of adults aged 65 years or older. Nonopioid medications, such as the gabapentinoids pregabalin and gabapentin, are widely prescribed for chronic pain, the investigators, led by Elizabeth Park, MD, Columbia University Irving Medical Center in New York City, noted. Pregabalin has greater potency than gabapentin in binding to the α2δ subunit of the L-type calcium channel and therefore may be associated with an increased risk for HF through actions to cause sodium/water retention. To investigate further, investigators evaluated 246,237 Medicare beneficiaries between 2014 and 2018, including 18,622 (8%) new pregabalin users and 227,615 (92%) new gabapentin users. All patients were aged 65-89 years, had chronic noncancer pain, and had no history of HF. The researchers used inverse probability of treatment weighting to adjust for an extensive list of 231 covariates to reduce confounding and attempted to closely emulate a hypothetical target trial in which Medicare patients filled new prescriptions for pregabalin or gabapentin for noncancer pain. During 114,113 person-years of follow-up, 1470 patients had a hospital admission or emergency department visit for HF. The rate of HF per 1000 person-years was 18.2 for pregabalin and 12.5 — translating to roughly six additional HF events annually for every 1000 patients treated with pregabalin — with an adjusted hazard ratio (HR) of 1.48. The difference was even more pronounced in patients with a history of CVD, with an adjusted HR of 1.85. An increased risk for outpatient HF diagnoses was also seen (adjusted HR, 1.27), but there was no difference in all-cause mortality between groups. The authors said the findings further support current recommendations from the European Medicines Agency to exercise caution when prescribing pregabalin to older adults with CVD. The American Heart Association currently lists pregabalin, but not gabapentin, as a medication that may cause or exacerbate HF. Immediate Clinical Implications The co-authors of an invited commentary noted that the study provides 'timely and clinically relevant insights' into the cardiovascular safety of these two widely used gabapentinoids. From a clinical standpoint, the findings have 'immediate clinical implications,' wrote Robert Zhang, MD, with Weill Cornell Medicine, New York City, and Edo Birati, MD, Tzafon (Poriya) Medical Center, Poriya, Israel. For older adults with chronic pain, particularly those with CVD, 'clinicians should weigh the potential cardiovascular risks associated with pregabalin against its analgesic benefits. This is particularly relevant given the growing use of gabapentinoids in older populations and ongoing polypharmacy issues in this age group,' Zhang and Birati advised. 'Furthermore, if pregabalin use is associated with new-onset HF, it raises the possibility that the drug may unmask underlying subclinical cardiovascular disease, which suggests a need for careful cardiac evaluation prior to prescribing this medication,' they added. 'The study serves as an important reminder that not all gabapentinoids are created equal and that in the pursuit of safer pain control, vigilance for unintended harms remains paramount,' the investigators concluded.