arXivPreprintOpen accesscs.DS

Faster Regular Expression Matching via Two-Dimensional Tabulation

Philip Bille, Inge Li G{\o}rtz

Key points

From the paper's conclusion
  • The key new technique is a two-dimensional tabulation specialized to the regular expression.

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.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers