Regular Article
Translating Regular Expressions into Small ε-Free Nondeterministic Finite Automata

https://doi.org/10.1006/jcss.2001.1748Get rights and content
Under an Elsevier user license
open archive

Abstract

We prove that every regular expression of size n can be converted into an equivalent nondeterministic ε-free finite automaton (NFA) with O(n(log n)2) transitions in time O(n2 log n). The best previously known conversions result in NFAs of worst-case size Θ(n2). We complement our result by proving an almost matching lower bound. We exhibit a sequence of regular expressions of size O(n) and show the number of transitions required in equivalent NFAs is Ω(n log n). This also proves there does not exist a linear-size conversion from regular expressions to NFAs.

Keywords

regular expressions
finite automata

Cited by (0)

1

Supported by the Deutsche Forschungsgemeinschaft under Project HR 14/3-2.

f1

E-mail: [email protected], [email protected]

f2

E-mail: [email protected]