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

使用二维可达性索引快速回答模式约束的可达性查询

Fast Answering Pattern-Constrained Reachability Queries with Two-Dimensional Reachability Index

Huazhong University of Science and Technology(华中科技大学)

Huihui Yang, Pingpeng Yuan

AI总结:

针对复杂边标记有向图提出模式约束的可达性查询(PCR),并构建二维可达性(TDR)索引以高效修剪搜索空间,在16个数据集上优于现有技术。

摘要:

可达性查询询问在图上是否存在从源顶点到目标顶点的路径。最近,针对新兴的复杂边标记有向图,已经提出了几种强大的可达性查询,例如标签约束可达性(LCR)查询和正则路径查询(RPQ)。然而,它们不允许用户通过组合查询模式来描述复杂的查询需求。在此,我们引入了复合模式,这是一种模式的逻辑表达式,能够表达对标签集合的复杂约束。基于模式,我们提出了模式约束的可达性查询(PCR查询)。然而,回答PCR查询是NP难的。因此,为了提高回答PCR查询的性能,我们构建了一个二维可达性(简称TDR)索引,它由一个多路索引(水平维度)和一个路径索引(垂直维度)组成。由于标签和顶点的组合数量是指数级的,构建包含所有可达性信息的完整索引代价非常高。因此,顶点的可达顶点被分解为块,每个块分别被哈希到水平维度索引和垂直维度索引中。水平维度和垂直维度中的索引分别作为全局过滤器和局部过滤器,以修剪搜索空间。实验结果表明,在16个真实数据集上,我们的索引大小和索引时间优于最先进的标签约束可达性索引技术。TDR能够高效回答模式约束的可达性查询,包括标签约束可达性查询。

英文摘要:

Reachability queries ask whether there exists a path from the source vertex to the target vertex on a graph. Recently, several powerful reachability queries, such as Label-Constrained Reachability (LCR) queries and Regular Path Queries (RPQ), have been proposed for emerging complex edge-labeled digraphs. However, they cannot allow users to describe complex query requirements by composing query patterns. Here, we introduce composite patterns, a logical expression of patterns that can express complex constraints on the set of labels. Based on pattern, we propose pattern-constrained reachability queries (PCR queries). However, answering PCR queries is NP-hard. Thus, to improve the performance to answer PCR queries, we build a two-dimensional reachability (TDR for short) index which consists of a multi-way index (horizontal dimension) and a path index (vertical dimension). Because the number of combinations of both labels and vertices is exponential, it is very expensive to build full indices that contain all the reachability information. Thus, the reachable vertices of a vertex are decomposed into blocks, each of which is hashed into the horizontal dimension index and the vertical dimension index, respectively. The indices in the horizontal dimension and the vertical dimension serve as a global filter and a local filter, respectively, to prune the search space. Experimental results demonstrate that our index size and indexing time outperform the state-of-the-art label-constrained reachability indexing technique on 16 real datasets. TDR can efficiently answer pattern-constrained reachability queries, including label-constrained reachability queries.

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

↑