Checking determinism of regular expressions with counting

Haiming Chen,Ping Lu
DOI: https://doi.org/10.1016/j.ic.2014.12.001
2015-01-01
Abstract:In this paper, we first present characterizations of weak determinism for regular expressions with counting, based on which we develop an O ( | Σ E | | E | ) time algorithm to check whether an expression E with counting is weakly deterministic, where Σ E is the set of distinct symbols in the expression E. Moreover, our algorithm can locate nondeterminism in subexpressions, which is useful for diagnosing purpose. Then we present a characterization of strong determinism for regular expressions with counting, and study the relations between weak determinism and strong determinism. Based on these, we give an O ( | E | ) time algorithm to check strong determinism, improving the previous upper bound of O ( | E | 3 ) time. Finally, historically there has been another definition of strong determinism for standard regular expressions, which we call restricted strong determinism in this paper. We extend this definition to expressions with counting, establish the relation between the two definitions, and give an O ( | E | ) time algorithm to check restricted strong determinism for regular expressions with counting.
What problem does this paper attempt to address?