[论文解读] Approximation and Semantic Tree-Width of Conjunctive Regular Path Queries
该论文证明了对于任意 k ≥ 1,判断一个并集的合取路径查询(UC2RPQ)是否在语义上等价于树宽为 k 的查询是可判定的,提出了一个 2ExpSpace 算法。此外,该研究还引入了一种多项式时间算法,用于计算树宽为 k 的最大下近似,该近似是最优且唯一的。该方法可扩展至路径宽,并适用于单向与双向导航,为图数据库中的语义优化提供了稳健的框架。
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).
研究动机与目标
- 确定一个 UC2RPQ 是否在语义上等价于有界树宽 k 的查询,将先前针对 k=1 的可判定性结果推广至任意 k ≥ 1。
- 开发一种算法,用于为任意 UC2RPQ 计算树宽为 k 的最大下近似,确保其在原始查询中的最大包含性。
- 将该框架扩展至路径宽,并处理单向与双向 UC2RPQ,以保证鲁棒性与通用性。
- 分析语义树宽与路径宽问题的复杂度,建立紧致的复杂度上界,并刻画可 tractable 的情形。
- 通过基于结构宽度属性的高效查询重写,为图数据库中的语义优化提供基础。
提出的方法
- 利用带标签的树分解来表示查询结构,并支持语义分析。
- 通过局部无环性与短路径性质引入语义有限性的概念,以限制查询行为。
- 采用一个关键引理,证明最大下近似是语义有限的,从而支持可判定性。
- 将包含性问题约化为 NFA 包含性检查,利用非确定性空间复杂度界推导出复杂度上界。
- 通过查询结构的细化构造新型下近似,确保其最大性与唯一性。
- 使用路径分解与细化分析,证明路径宽在扩展下不封闭,从而得出稳健的可判定性结果。
实验结果
研究问题
- RQ1对于任意 k ≥ 1,判断一个 UC2RPQ 是否在语义上等价于树宽为 k 的查询是否可判定?
- RQ2能否为任意 UC2RPQ 高效计算树宽为 k 的最大下近似?
- RQ3该框架是否可扩展至路径宽?有界语义路径宽问题是否可判定?
- RQ4UC2RPQ 的语义树宽与路径宽问题的复杂度如何?
- RQ5该方法能否适用于单向 UC2RPQ,同时仍能保证与有界宽度查询的等价性?
主要发现
- 判断一个 UC2RPQ 是否在语义上等价于树宽为 k 的查询的问题,对任意 k ≥ 1 是可判定的,扩展了先前仅针对 k=1 的结果。
- 用于判断语义树宽为 k 的算法时间复杂度为 2ExpSpace,为该问题提供了紧致的上界。
- 对于形式为 a* 或 (a1+⋯+an) 的正则表达式查询,复杂度降至 Πp2,表明存在一个可 tractable 的片段。
- 树宽为 k 的最大下近似是唯一定义且可在多项式时间内计算,提供了一种实用的优化原 primitive。
- 该框架可推广至路径宽,且判断有界语义路径宽的问题同样可判定。
- 本文证明路径宽在细化操作下不封闭,这解释了为何必须使用语义宽度概念而非句法宽度概念。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。