Compressed Structures for Partial Derivative Automata Constructions
Abstract
The partial derivative automaton () is an elegant simulation of a regular expression. Although it is, in general, smaller than the position automaton (), the algorithms that build in quadratic worst-case time first compute . Asymptotically, and on average for the uniform distribution, the size of is half the size of , being both linear on the size of the expression. We address the construction of efficiently, on average, avoiding the computation of . The expression and the set of its partial derivatives are represented by a directed acyclic graph with shared common subexpressions. We develop an algorithm for building s from expressions in strong star normal form of size that runs, on average, in time that asymptotically behaves as , and space as . Empirical results corroborate its good practical performance.
Research supported by NSERC (Canada) and by CMUP through FCT project UIDB/00144/2021.
Communicated by Sang-Ki Ko
Remember to check out the Most Cited Articles! |
---|
Check out these Handbooks in Computer Science |