Finite State Automata from Regular Expression Trees
Author(s) -
Robert R. Goldberg
Publication year - 1993
Publication title -
the computer journal
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.319
H-Index - 64
eISSN - 1460-2067
pISSN - 0010-4620
DOI - 10.1093/comjnl/36.7.623
Subject(s) - parallelizable manifold , finite state machine , regular expression , computer science , deterministic finite automaton , nondeterministic finite automaton , state (computer science) , expression (computer science) , operand , automaton , algorithm , theoretical computer science , mathematics , automata theory , programming language , operating system
Thompson [13] introduced an innovative method for obtaining non-deterministic finite state automata (nfa) from regular expression. His formulation of nfas makes use of s-transitions (null symbol input) and requires in the worst case 2σ+2 OPS states, where σ is the number of occurencies of alphabet symbols and OPS is the number of operands in the original regular expression. We modify this algorithm to obtain a nfa M without e-transitions that has in the worst case σ+1 states. Using multi-branch expression trees to store the regular expressions efficiently, the algorithm presented here is directly parallelizable. The algorithm necessitates that we maintain a finite state automata which had no e-transition and has a starting node of zero in-degree
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom