Prefix-free regular languages and pattern matching

Autor: Derick Wood, Yajun Wang, Yo-Sub Han
Rok vydání: 2007
Předmět:
Zdroj: Theoretical Computer Science. 389(1-2):307-317
ISSN: 0304-3975
DOI: 10.1016/j.tcs.2007.10.017
Popis: 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.
Databáze: OpenAIRE