New Algorithms for Regular Expression Matching
Philip Bille

TL;DR
This paper presents new algorithms for regular expression matching that improve time complexity bounds using linear space, especially effective when the machine word size is at least logarithmic in the input size.
Contribution
The authors develop algorithms that achieve faster regular expression matching times with linear space, surpassing previous bounds, particularly for larger word sizes.
Findings
Improved time bounds for regular expression matching with linear space.
Algorithms are optimal for certain word size regimes.
Significant performance gains when machine word size exceeds logarithmic input size.
Abstract
In this paper we revisit the classical regular expression matching problem, namely, given a regular expression and a string , decide if matches one of the strings specified by . Let and be the length of and , respectively. On a standard unit-cost RAM with word length , we show that the problem can be solved in space with the following running times: \begin{equation*} \begin{cases} O(n\frac{m \log w}{w} + m \log w) & \text{if } \\ O(n\log m + m\log m) & \text{if } \\ O(\min(n+ m^2, n\log m + m\log m)) & \text{if .} \end{cases} \end{equation*} This improves the best known time bound among algorithms using space. Whenever it improves all known time bounds regardless of how much space is used.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Network Packet Processing and Optimization · Machine Learning and Algorithms
