Re:Summoning Cthulhu by Parsing HTML with Regular Expression...
by pwdisswordfish9 on Saturday April 16, 2022 @05:41AM
(#31051028)
That requires you to have the entire string in memory, so it’s still Ω(n). Regular languages can be recognized using O(1) space and a single reading pointer into the string, without even storing it whole; you can process it in a streaming manner.
[ Parent
| on HN ]
There are no comments on this comment yet.