Deterministic regular expressions with back-references

被引:12
作者
Freydenberger, Dominik D. [1 ]
Schmid, Markus L. [2 ]
机构
[1] Loughborough Univ, Loughborough, Leics, England
[2] Univ Trier, Trier, Germany
关键词
Deterministic regular expression; Regex; Glushkov automaton; COMPLEXITY;
D O I
10.1016/j.jcss.2019.04.001
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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. (C) 2019 Elsevier Inc. All rights reserved.
引用
收藏
页码:1 / 39
页数:39
相关论文
共 54 条
[1]  
Abigail Re, 1997, RERANDOM NUMBER PERL
[2]  
Aho A.V., 1990, Handbook of Theoretical Computer Science, Volume A: Algorithms and Complexity, P255, DOI DOI 10.1016/B978-0-444-88071-0.50010-2
[3]   FINDING PATTERNS COMMON TO A SET OF STRINGS [J].
ANGLUIN, D .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1980, 21 (01) :46-62
[4]  
[Anonymous], 2005, XML SCHEMA
[5]  
[Anonymous], 2008, TECHNICAL REPORT
[6]  
[Anonymous], 1979, Computers and Intractablity: A Guide to the Theory of NP-Completeness
[7]  
Barcelo Pablo, 2010, P PODS 2010
[8]   Learning Deterministic Regular Expressions for the Inference of Schemas from XML Data [J].
Bex, Geert Jan ;
Gelade, Wouter ;
Neven, Frank ;
Vansummeren, Stijn .
ACM TRANSACTIONS ON THE WEB, 2010, 4 (04)
[9]  
Bouyer P., 2001, CONCUR 2001 - Concurrency Theory. 12th International Conference. Proceedings (Lecture Notes in Computer Science Vol.2154), P248
[10]  
Braun Martin, 2016, MOAR DETERMINISTIC R