Follow automata

被引:87
作者
Ilie, L [1 ]
Yu, S [1 ]
机构
[1] Univ Western Ontario, Dept Comp Sci, London, ON N6A 5B7, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
regular expressions; nondeterministic finite automata; partial derivatives; quotients; right-invariant equivalences; epsilon-elimination;
D O I
10.1016/S0890-5401(03)00090-7
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We give two new algorithms for constructing small nondeterministic finite automata (NFA) from regular expressions. The first constructs NFAs with epsilon-transitions (epsilonNFA) which are smaller than all the other epsilonNFAs obtained by similar constructions. Their size is at most 3/2\alpha\ + 5/2, where alpha is the regular expression. This is very close to optimal since we prove also the lower bound 4/3\alpha\ + 5/2. The second constructs NFAs. It uses epsilon-elimination in the epsilonNFAs we just introduced and builds a quotient of the well-known position automaton w.r.t. the equivalence given by the follow relation; therefore giving the name of follow automaton. The new automaton uses optimally the information from the positions of a regular expression. We compare the follow automaton with the best constructions to date and show that it has important advantages over those. (C) 2003 Elsevier Science (USA). All rights reserved.
引用
收藏
页码:140 / 162
页数:23
相关论文
共 19 条
[1]  
Aho A., 1988, Compilers - Principles, Techniques and Tools
[2]   Partial derivatives of regular expressions and finite automaton constructions [J].
Antimirov, V .
THEORETICAL COMPUTER SCIENCE, 1996, 155 (02) :291-319
[3]   FROM REGULAR EXPRESSIONS TO DETERMINISTIC AUTOMATA [J].
BERRY, G ;
SETHI, R .
THEORETICAL COMPUTER SCIENCE, 1986, 48 (01) :117-126
[4]   REGULAR EXPRESSIONS INTO FINITE AUTOMATA [J].
BRUGGEMANNKLEIN, A .
THEORETICAL COMPUTER SCIENCE, 1993, 120 (02) :197-213
[5]   DERIVATIVES OF REGULAR EXPRESSIONS [J].
BRZOZOWSKI, JA .
JOURNAL OF THE ACM, 1964, 11 (04) :481-&
[6]  
Champarnaud J.-M., 2001, Combinatorial Pattern Matching. 12th Annual Symposium, CPM 2001. Proceedings (Lecture Notes in Computer Science Vol. 2089), P157
[7]  
Champarnaud JM, 2001, LECT NOTES COMPUT SC, V2088, P94
[8]   From regular expressions to DFA's using compressed NFA's [J].
Chang, CH ;
Paige, R .
THEORETICAL COMPUTER SCIENCE, 1997, 178 (1-2) :1-36
[9]  
FRIEDL J, 1998, MASTERING REGULAR EX
[10]  
Glushkov V M, 1961, Russian Mathematical Survey, V16, P1, DOI DOI 10.1070/RM1961V016N05ABEH004112