正则路径查询的三分法
A Trichotomy for Regular Trail Queries
AI总结:
本文研究了固定表达式下轨迹语义的正则路径查询评估问题,证明了复杂性存在三分法,并分析了易处理类的特征、表达力及枚举问题扩展。
摘要:
正则路径查询(RPQs)是图查询语言的重要组成部分。此类查询考虑一个正则表达式r和一个有向边标记图G,并搜索G中标签序列属于r的语言的路径。为了避免考虑无限多条路径,一些数据库引擎将此类路径限制为轨迹,即它们仅考虑没有重复边的路径。在本文中,我们考虑在表达式固定的情况下,轨迹语义下RPQs的评估问题。我们证明,在这种设置下,存在一个三分法。更准确地说,RPQ评估的复杂性将正则语言分为有限语言、类Ttract(对于该类问题易于处理)以及其余部分。有趣的是,该三分法中的易处理类比Bagan、Bonifati和Groz [JCSS 2020]发现的简单路径三分法中的易处理类更大。除了这一三分法结果外,我们还研究了易处理类的特征化、其表达力、识别问题、闭包性质,并展示了如何将决策问题扩展到在实践中相关的枚举问题。
英文摘要:
Regular path queries (RPQs) are an essential component of graph query languages. Such queries consider a regular expression r and a directed edge-labeled graph G and search for paths in G for which the sequence of labels is in the language of r. In order to avoid having to consider infinitely many paths, some database engines restrict such paths to be trails, that is, they only consider paths without repeated edges. In this paper we consider the evaluation problem for RPQs under trail semantics, in the case where the expression is fixed. We show that, in this setting, there exists a trichotomy. More precisely, the complexity of RPQ evaluation divides the regular languages into the finite languages, the class Ttract (for which the problem is tractable), and the rest. Interestingly, the tractable class in the trichotomy is larger than for the trichotomy for simple paths, discovered by Bagan, Bonifati, and Groz [JCSS 2020]. In addition to this trichotomy result, we also study characterizations of the tractable class, its expressivity, the recognition problem, closure properties, and show how the decision problem can be extended to the enumeration problem, which is relevant to practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。