Computing ε-free NFA from regular expressions in .O(nlog2(n)) time

被引:30
|
作者
Hagenah, C [1 ]
Muscholl, A [1 ]
机构
[1] Univ Stuttgart, Inst Informat, D-70565 Stuttgart, Germany
关键词
epsilon-free-nondeterministic automata; regular expressions; common follow sets construction;
D O I
10.1051/ita:2000116
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The standard procedure to transform a regular expression of size n to an epsilon -free nondeterministic finite automaton yields automata with O(n) states and O(n(2)) transitions. For a long time this was supposed to be also the lower bound, but a result by Hromkovic et al. showed how to build an epsilon -free NFA with only O(n log(2)(n)) transitions. The current lower bound on the number of transitions is Omega (n log(n)). A rough running time estimation for the common follow sets (CFS) construction proposed by Hromkovic et al. yields a cubic algorithm. In this paper we present a sequential algorithm for the CFS construction which works in time O(n log(n)+ size of the output). On a CREW PRAM the CFS construction can be performed in time O(log(n)) using O(n + (size of the output)/ log(n)) processors. We also present a simpler proof of the lower bound on the number of transitions.
引用
收藏
页码:257 / 277
页数:21
相关论文
共 50 条