正则表达式补与交的简洁性
Succinctness of the Complement and Intersection of Regular Expressions
摘要:
我们研究了正则表达式的补和交的简洁性。特别是,我们表明,当构造一个正则表达式定义一个给定的正则表达式的补充,一个双指数的大小增加是不可避免的。类似地,当构造定义固定数量和任意数量的正则表达式的交集的正则表达式时,在最坏情况下无法避免分别指数和双指数大小增加。所有提到的下界都将现有的下界提高了一个指数,并且在目标表达式可以在相应的时间类中构造的意义上是紧的,即,指数或双指数时间。作为一个副产品,我们推广了一个定理,由Escherichfeucht和Zeiger指出,有一类DFA是指数更简洁的正则表达式,一个固定的四个字母的字母表。当给定的正则表达式是一个明确的,例如XML模式规范所要求的,可以在多项式时间内计算补码,而关于交集的界限继续保持。对于单次出现正则表达式的子类,我们证明了一个严格的指数下界的交集。
英文摘要:
We study the succinctness of the complement and intersection of regular expressions. In particular, we show that when constructing a regular expression defining the complement of a given regular expression, a double exponential size increase cannot be avoided. Similarly, when constructing a regular expression defining the intersection of a fixed and an arbitrary number of regular expressions, an exponential and double exponential size increase, respectively, can in worst-case not be avoided. All mentioned lower bounds improve the existing ones by one exponential and are tight in the sense that the target expression can be constructed in the corresponding time class, i.e., exponential or double exponential time. As a by-product, we generalize a theorem by Ehrenfeucht and Zeiger stating that there is a class of DFAs which are exponentially more succinct than regular expressions, to a fixed four-letter alphabet. When the given regular expressions are one-unambiguous, as for instance required by the XML Schema specification, the complement can be computed in polynomial time whereas the bounds concerning intersection continue to hold. For the subclass of single-occurrence regular expressions, we prove a tight exponential lower bound for intersection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。