Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
436659 | Theoretical Computer Science | 2007 | 11 Pages |
Abstract
We explore the regular-expression matching problem with respect to prefix-freeness of the pattern. We prove that a prefix-free regular expression gives only a linear number of matching substrings in the size of a given text. Based on this observation, we propose an efficient algorithm for the prefix-free regular-expression matching problem. Furthermore, we suggest an algorithm to determine whether or not a given regular language is prefix-free.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics