New Issue: Orbital Catastrophe Ahead? Read Now

New Proof Dramatically Compresses Space Needed for Computation

Surprising new work bucks 50 years of assumptions about the trade-offs between computation space and time

illustration of running computer chip

Thomas Fuchs

Once upon a time computers filled entire rooms, reading numbers from spinning tapes and churning them through wires to do chains of basic arithmetic. Today they slip into our pockets, performing in a tiny fraction of a second what used to take hours. But after decades of shrinking chips to pack as much computation as possible onto a machine, theorists are flipping the question: How little space is enough to get the job done?

This inquiry lies at the heart of computational complexity, a measure of the limits of what problems can be solved and at what cost in time and space. For nearly 50 years theorists could prove only that if solving a problem takes t steps, it should be possible using roughly t bits of memory—the 0s and 1s that a machine uses to record information. (Technically, that equation also incorporates log(t), but for the numbers involved this has little effect.) If a task requires 100 times the steps of another one, say, you’d expect to need about 100 times the bits, enough to diligently note each step. Using fewer bits was thought to require more steps—like alphabetizing books by swapping them one by one on the shelf instead of pulling them all out and reshelving them. But in a finding described at the ACM Symposium on Theory of Computing in Prague, Massachusetts Institute of Technology computer scientist Ryan Williams found a way to demonstrate that any problem solvable in time t needs only about √t bits of memory: a computation requiring 100 times the steps could be compressed and solved with something on the order of 10 times more bits. “This result shows the prior intuition is completely false,” Williams says. “I thought something must be wrong [with the proof] because this is extremely unexpected.”

The breakthrough relies on a “reduction,” a means of transforming one problem into another that may seem unrelated but is mathematically equivalent. With reductions, packing a suitcase maps onto determining a monthly budget: the size of your suitcase represents your total budget, pieces of clothing correspond to potential expenses, and carefully deciding which clothes can fit is like allocating your budget. Solving one problem would then directly solve the other. This idea is at the core of Williams’s result: any problem can be transformed into one you can solve by cleverly reusing space, deftly cramming the necessary information into just a square-root number of bits. Thus, the original problem must be solvable with this compact container.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


“This progress is unbelievable,” says Mahdi Cheraghchi, a computer scientist at the University of Michigan. “Before this result, there were problems you could solve in a certain amount of time, but many thought you couldn’t do so with such little space.” Williams’s finding, he adds, is “a step in the right direction that we didn’t know how to take.”

While computers have continued to shrink, our theoretical understanding of their efficiency has exploded, suggesting that the real constraint is not how much memory we have but how wisely we use it.

Max Springer is a Ph.D. candidate in applied mathematics at the University of Maryland and was a 2024 AAAS Mass Media Fellow at Scientific American.

More by Max Springer
Scientific American Magazine Vol 333 Issue 2This article was published with the title “Space Saver” in Scientific American Magazine Vol. 333 No. 2 (), p. 15
doi:10.1038/scientificamerican092025-7pN4AP4otfTVNW8aQdo7ss

Subscribe to Support Independent Journalism

Great science journalism requires human expertise, time, effort and creativity. And it costs money. That’s why I and the journalists here at Scientific American hope you’ll join our community.

When you subscribe, you are supporting staff and freelance journalists who are passionate about telling science stories that are true, important and compelling. Our editors and reporters are often experts in their fields, which means they understand the nuances of big discoveries and can untangle the breakthroughs from the hype. With a subscription, you are also supporting rigorous fact-checking to ensure the words we publish are precise and accurate. And you’re supporting original illustrations, graphics and photos that bring you closer to an advanced laboratory, an ice sheet in Antarctica or a space mission in orbit. You’re helping us craft other types of high-quality journalism as well: Our newsletters are carefully written, edited and curated by staffers you have or will come to know and love. Our Science Quickly podcast is based on original reporting, collaboration with editors and scientists and exacting production.

Subscriptions keep this engine running so we can continue to deliver thoughtful, rigorous and independent science journalism to you. In an era of viral misinformation, this work is crucial. If you value what we do, I hope you’ll consider joining us as a subscriber

Thank you,

Jeanna Bryner, Editor in Chief, Scientific American

Subscribe