Faster Regular Expression Matching via Two-Dimensional Tabulation
Abstract
A regular expression specifies a set of strings formed by single characters combined with concatenation, union, and Kleene star operators. Given a regular expression and a string , the classic regular expression matching problem is to decide whether matches any string specified by . Let and be the lengths of and , respectively. Our main result is a new algorithm that, given a parameter , solves the problem in time and words of space. In particular, for any fixed , when , we solve the problem in time and space. Compared to the previous best result [Bille and Thorup, ICALP 2009], this improves the leading term by a factor . The key new technique is a two-dimensional tabulation specialized to the regular expression.
Create a lesson
Related papers
Faster Semi-Streaming and Dynamic Approximate Maximum Weight Matchings in General Graphs: A Unified Framework
Shared title terminologycs.DSJiale Chen
How to Round Spiky Balls into Submission -- And Faster Algorithms For The Closest Vector Problem
Shared title terminologycs.DSDivesh Aggarwal, Aditya Morolia
Solving (Vertex-Weighted) Directed Multiway Cut Faster Than 2^n
Shared title terminologycs.DSMingyu Xiao
Location-Aware Matching Statistics
Shared title terminologycs.DSLorraine A. K. Ayad, Grigorios Loukides, Solon P. Pissis
Constrained Online Selection with Predictions: Matroid Secretary, Knapsack, and Matching
Shared title terminologycs.DSHedyeh Beyhaghi, Tao Zixu He, Cameron Musco
Faster Directed SSSP on Digraphs with Random Sparse Supports or Few DFS Exceptions
Shared title terminologycs.DSValery, Grishin, Aryeh Lev Zabokritskiy