logoalt Hacker News

zerof1lyesterday at 10:05 AM7 repliesview on HN

Here's the gist:

For nearly 50 years theorists believed that if solving a problem takes t steps, it should also need roughly t bits of memory: 100 steps - 100bits. To be exact t/log(t).

Ryan Williams found that any problem solvable in time t needs only about sqrt(t) bits of memory: a 100-step computation could be compressed and solved with something on the order of 10 bits.


Replies

svatyesterday at 4:35 PM

To be clear, this was/is a statement about the worst case, not every problem. So it may be clearer to rephrase your sentence as:

For nearly 50 years theorists believed that there exist problems taking t steps that also need roughly t/log(t) bits of memory.

(The Quanta magazine article https://www.quantamagazine.org/for-algorithms-a-little-memor... gives some context: for a long time, the best result was t/log(t) as proved in "On Time Versus Space" https://dl.acm.org/doi/10.1145/322003.322015 by Hopcroft, Paul and Valiant in 1975.)

show 1 reply
heavenlyblueyesterday at 12:25 PM

Why does it need the same bits of memory as steps?

show 2 replies
andsoitisyesterday at 3:13 PM

> Ryan Williams found that any problem solvable in time t needs only about sqrt(t) bits of memory: a 100-step computation could be compressed and solved with something on the order of 10 bits.

Does it require one to first have solved the problem in uncompressed space?

show 1 reply
cubefoxyesterday at 1:10 PM

> Ryan Williams found that any problem solvable in time t needs only about sqrt(t) bits of memory

At least or at most or on average?

show 2 replies
taneqyesterday at 12:30 PM

Huh? What did any of those theorists think about the phrase "time/space tradeoff"?

show 2 replies
m3kw9yesterday at 2:27 PM

Doesn’t make practical sense why they would even assign a number to problems which could have unknown dependencies. Unless you are talking about bounded math issues

zombotyesterday at 12:19 PM

> log(t)

log to what basis? 2 or e or 10 or...

Why do programmers have to be so sloppy?

show 5 replies