TY - JOUR
T1 - From regular expressions to smaller NFAs
AU - García, Pedro
AU - López, Damián
AU - Ruiz, José
AU - Álvarez, Gloria I.
N1 - Funding Information:
This work was partially supported by the Spanish Ministerio de Educación y Ciencia under project TIN2007-60769. Corresponding author. Tel.: +34 96 3877007; fax: +34 963877359. E-mail addresses: [email protected] (P. García), [email protected] (D. López), [email protected] (J. Ruiz), [email protected] (G.I. Álvarez).
PY - 2011/9/23
Y1 - 2011/9/23
N2 - Several methods have been developed to construct λ-free automata that represent a regular expression. Among the most widely known are the position automaton (Glushkov), the partial derivatives automaton (Antimirov) and the follow automaton (Ilie and Yu). All these automata can be obtained with quadratic time complexity, thus, the comparison criterion is usually the size of the resulting automaton. The methods that obtain the smallest automata (although, for general expressions, they are not comparable), are the follow and the partial derivatives methods. In this paper, we propose another method to obtain a λ-free automaton from a regular expression. The number of states of the automata we obtain is bounded above by the size of both the partial derivatives automaton and of the follow automaton. Our algorithm also runs with the same time complexity of these methods.
AB - Several methods have been developed to construct λ-free automata that represent a regular expression. Among the most widely known are the position automaton (Glushkov), the partial derivatives automaton (Antimirov) and the follow automaton (Ilie and Yu). All these automata can be obtained with quadratic time complexity, thus, the comparison criterion is usually the size of the resulting automaton. The methods that obtain the smallest automata (although, for general expressions, they are not comparable), are the follow and the partial derivatives methods. In this paper, we propose another method to obtain a λ-free automaton from a regular expression. The number of states of the automata we obtain is bounded above by the size of both the partial derivatives automaton and of the follow automaton. Our algorithm also runs with the same time complexity of these methods.
KW - Finite automata
KW - Position automata quotients
KW - Regular expression
UR - http://www.scopus.com/inward/record.url?scp=80052266260&partnerID=8YFLogxK
U2 - 10.1016/j.tcs.2011.05.058
DO - 10.1016/j.tcs.2011.05.058
M3 - Article
AN - SCOPUS:80052266260
SN - 0304-3975
VL - 412
SP - 5802
EP - 5807
JO - Theoretical Computer Science
JF - Theoretical Computer Science
IS - 41
ER -