Translating Regular Expressions into Small ε-Free Nondeterministic Finite Automata

作者:

Highlights:

摘要

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.

论文关键词:regular expressions,finite automata

论文评审过程:Received 5 April 1999, Revised 14 December 2000, Available online 25 May 2002.

论文官网地址:https://doi.org/10.1006/jcss.2001.1748