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

Join Our Community of Science Lovers!

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

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe