Deterministic Regular Expressions With Back-References
Abstract
Most modern libraries for regular expression matching allow back-references (i.e., repetition operators) that substantially increase expressive power, but also lead to intractability. In order to find a better balance between expressiveness and tractability, we combine these with the notion of determinism for regular expressions used in XML DTDs and XML Schema. This includes the definition of a suitable automaton model, and a generalization of the Glushkov construction. We demonstrate that, compared to their non-deterministic superclass, these deterministic regular expressions with back-references have desirable algorithmic properties (i.e., efficiently solvable membership problem and some decidable problems in static analysis), while, at the same time, their expressive power exceeds that of deterministic regular expressions without back-references.
- Publication:
-
arXiv e-prints
- Pub Date:
- February 2018
- DOI:
- 10.48550/arXiv.1802.01508
- arXiv:
- arXiv:1802.01508
- Bibcode:
- 2018arXiv180201508F
- Keywords:
-
- Computer Science - Formal Languages and Automata Theory;
- Computer Science - Databases;
- 68Q45;
- 68Q19;
- 68Q17