基于图归约的、共享归约传递闭包的正则路径查询求值
Regular Path Query Evaluation Sharing a Reduced Transitive Closure Based on Graph Reduction
AI总结:
针对多 RPQ 中 Kleene 闭包重复求值的高代价问题,提出基于 RPQ 的图归约与可共享的轻量级 RTC,并通过 RTCSharing 算法优化关系代数求值,最高提速 73.86 倍。
摘要:
正则路径查询(RPQ)在带边标签的有向多重图上查找其路径满足给定正则表达式的顶点对。在求值 RPQ 时,对 Kleene 闭包(即 Kleene 加或 Kleene 星)的求值代价非常高。此外,当多个 RPQ 将同一个 Kleene 闭包作为公共子查询包含时,对该公共子查询的重复求值会导致严重的性能下降。本文提出一种新颖的基于 RPQ 的图归约概念,通过边级和顶点级归约显著简化原始图。有趣的是,基于 RPQ 的图归约能够将在大型原始图上对 Kleene 闭包的求值,替换为在小型归约图上对传递闭包的求值。随后,我们提出归约传递闭包(RTC),将其作为一种轻量级结构,用于高效共享 Kleene 闭包的结果。我们还给出了一个 RPQ 求值算法 RTCSharing,该算法将给定 RPQ 的析取范式中的每个子句视为一个批处理单元。如果这些批处理单元包含作为公共子查询的 Kleene 闭包,我们共享轻量级的 RTC,而不是共享重量级的 Kleene 闭包结果。基于 RPQ 的图归约还使我们能够将包含 Kleene 闭包的 RPQ 结果形式化表示为包含 RTC 的关系代数表达式。通过该形式化表达式,我们消除了先前方法中无用且冗余的操作,从而优化批处理单元的求值。实验表明,在查询响应时间方面,与现有方法相比,RTCSharing 将性能显著提升,最高可达 73.86 倍。
英文摘要:
Regular path queries (RPQs) find pairs of vertices of paths satisfying given regular expressions on an edge-labeled, directed multigraph. When evaluating an RPQ, the evaluation of a Kleene closure (i.e., Kleene plus or Kleene star) is very expensive. Furthermore, when multiple RPQs include a Kleene closure as a common sub-query, repeated evaluations of the common sub-query cause serious performance degradation. In this paper, we present a novel concept of RPQ-based graph reduction, which significantly simplifies the original graph through edge-level and vertex-level reductions. Interestingly, RPQ-based graph reduction can replace the evaluation of the Kleene closure on the large original graph to that of the transitive closure to the small reduced graph. We then propose a reduced transitive closure (RTC) as a lightweight structure for efficiently sharing the result of a Kleene closure. We also present an RPQ evaluation algorithm, RTCSharing, which treats each clause in the disjunctive normal form of the given RPQ as a batch unit. If the batch units include a Kleene closure as a common sub-query, we share the lightweight RTC instead of the heavyweight result of the Kleene closure. RPQ-based graph reduction further enables us to formally represent the result of an RPQ including a Kleene closure as a relational algebra expression including the RTC. Through the formal expression, we optimize the evaluation of the batch unit by eliminating useless and redundant operations of the previous method. Experiments show that RTCSharing improves the performance significantly by up to 73.86 times compared with existing methods in terms of query response time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。