arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.01508cs.FLcs.DB
收藏

带反向引用的确定性正则表达式

Deterministic Regular Expressions With Back-References

Dominik D. Freydenberger, Markus L. Schmid

摘要:

大多数用于正则表达式匹配的现代库都允许反向引用(即,重复操作符),这大大提高了表达能力,但也导致棘手。为了在可表达性和易处理性之间找到更好的平衡,我们将它们与XML DTD和XML Schema中使用的正则表达式的确定性概念结合起来。这包括一个合适的自动机模型的定义,和一个推广的Glushkov建设。我们证明,与它们的非确定性超类相比,这些具有反向引用的确定性正则表达式具有理想的算法属性(即,在静态分析中,正则表达式是一个有效的可解的隶属度问题和一些可判定的问题),同时,它的表达能力超过了没有反向引用的确定性正则表达式。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑