arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2212.01679cs.LOcs.DBcs.FL
收藏

合取正则路径查询的语义树宽与路径宽

Semantic Tree-Width and Path-Width of Conjunctive Regular Path Queries

Diego Figueira, Rémi Morvan

AI总结:

本文证明判断 UC2RPQ 查询是否等价于任意树宽 k 的查询是可判定的,并给出构造最大下逼近的算法,同时将方法推广到路径宽及单向 UCRPQ 情形。

摘要:

我们证明,对于具有双向导航的合取正则路径查询的并集(UC2RPQs)这一类查询,判断一个查询是否等价于树宽为 $k$ 的查询的问题是可判定的。Barceló、Romero 和 Vardi 先前的成果 [SIAM Journal on Computing, 2016] 已经证明了 $k=1$ 情形的可判定性,而本文将这一结果扩展,证明可判定性实际上对任意 $k\geq 1$ 都成立。该算法位于 2ExpSpace 复杂度类中,但对于受限但具有实际意义的情形——即查询中所有正则表达式都具有 $a^*$ 或 $(a_1 + \dotsb + a_n)$ 的形式——我们证明该问题的复杂度降至 $Π^P_2$。我们还研究了相关的用较小树宽查询逼近 UC2RPQ 的问题。我们给出了一个算法,对于任意固定的数 $k$,构造一个 UC2RPQ 的树宽 $k$ 的最大下逼近。查询 $q$ 的树宽 $k$ 的最大下逼近是一个树宽为 $k$ 的查询 $q'$,它以最大且唯一的方式包含于 $q$ 中,即对于每个树宽为 $k$ 的查询 $q''$,如果 $q''$ 包含于 $q$,那么 $q''$ 也包含于 $q'$。我们的方法被证明是稳健的,其意义在于:它也允许测试与给定路径宽查询的等价性,它也覆盖了先前已知的 $k=1$ 的结果,并且它允许测试(单向)UCRPQ 是否等价于给定树宽(或路径宽)的 UCRPQ 的等价性问题。

英文摘要:

We show that the problem of whether a query is equivalent to a query of tree-width $k$ is decidable, for the class of Unions of Conjunctive Regular Path Queries with two-way navigation (UC2RPQs). A previous result by Barceló, Romero, and Vardi [SIAM Journal on Computing, 2016] has shown decidability for the case $k=1$, and here we extend this result showing that decidability in fact holds for any arbitrary $k\geq 1$. The algorithm is in 2ExpSpace, but for the restricted but practically relevant case where all regular expressions of the query are of the form $a^*$ or $(a_1 + \dotsb + a_n)$ we show that the complexity of the problem drops to $Π^P_2$. We also investigate the related problem of approximating a UC2RPQ by queries of small tree-width. We exhibit an algorithm which, for any fixed number $k$, builds the maximal under-approximation of tree-width $k$ of a UC2RPQ. The maximal under-approximation of tree-width $k$ of a query $q$ is a query $q'$ of tree-width $k$ which is contained in $q$ in a maximal and unique way, that is, such that for every query $q''$ of tree-width $k$, if $q''$ is contained in $q$ then $q''$ is also contained in $q'$. Our approach is shown to be robust, in the sense that it allows also to test equivalence with queries of a given path-width, it also covers the previously known result for $k=1$, and it allows to test for equivalence of whether a (one-way) UCRPQ is equivalent to a UCRPQ of a given tree-width (or path-width).

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

↑