Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don’t believe space > time is possible on a Turing machine?


You’re right, of course, but there was a minor miscommunication: the exponential space is exponentially proportional to the size of the regular expression, and the linear time is linearly proportional to the length of the string being searched through.


Thanks! Though I imagine in most cases the regular expression itself would be a fixed part of the codebase and not given as input.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: