arXiv · 2611.04852
Faster Regular Expression Matching via Two-Dimensional Tabulation
Abstract
Regular expression matching asks whether a string of length $n$ belongs to the language described by a regular expression of length $m$. We give an algorithm that solves this problem in linear space and $O(nm \log \log n/\log^2 n + n + m)$ time. This improves the leading term of the previous best worst-case constant-alphabet time bound by a factor of $\sqrt{\log n}$. The key new technique is a two-dimensional tabulation specialized to the regular expression.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Philip Bille, Inge Li Gørtz. 2026-11-03. Faster Regular Expression Matching via Two-Dimensional Tabulation. https://arxiv.org/abs/2611.04852
Cite the original work for its findings. Save a collection to share your selection of sources.