![]() |
CiteULike | ![]() |
vidal31's CiteULike | ![]() |
![]() |
|
![]() |
Register | ![]() |
Log in | ![]() |
New Algorithms for Regular Expression Matchingby: Philip Bille
|
Reviews
[Write a review of this article]
Find related articles from these CiteULike users
Find related articles with these CiteULike tags
Posting History
AbstractIn this paper we revisit the classical regular expression matching problem, namely, given a regular expression $R$ and a string $Q$, decide if $Q$ matches one of the strings specified by $R$. Let $m$ and $n$ be the length of $R$ and $Q$, respectively. On a standard unit-cost RAM with word length $w ≥ \log n$, we show that the problem can be solved in $O(m)$ space with the following running times: \beginequation* \begincases <br />O(n\fracm \log ww + m \log w) & \textif $m > w$ \\ <br />O(n\log m + m\log m) & \textif $\sqrtw < m ≤ w$ \\ <br />O(\min(n+ m^2, n\log m + m\log m)) & \textif $m ≤ \sqrtw$. \endcases \endequation* This improves the best known time bound among algorithms using $O(m)$ space. Whenever $w ≥ \log^2 n$ it improves all known time bounds regardless of how much space is used.
BibTeX record
RIS record