arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1212.6857cs.DBcs.DM
收藏

图的正则简单路图的三分法

A Trichotomy for Regular Simple Path Queries on Graphs

Guillaume Bagan, Angela Bonifati, Benoit Groz

摘要:

常规路径查询(RPQ)选择图中由某个路径连接的节点。这样一条路径的边标签必须形成一个匹配给定正则表达式的单词。我们调查的评估RPQ的额外的约束,防止多次遍历相同的节点。这些规则的简单路径查询(RSPQ)在实践中有几个应用,但它们很快就变得难以处理,即使是对于基本语言,如(aa)* 或a*ba*。本文根据正则简单路径查询问题的复杂性对正则语言进行了一个综合分类。更确切地说,我们确定的片段是最大的在以下意义上:定期简单路径查询可以在多项式时间内评估属于这个片段的每一个正则语言L和评估是NP-完全的语言以外的这个片段。因此,我们充分刻画了RSPQs的易处理性和难处理性之间的边界,我们改进了我们的结果,以显示以下剖分:RSPQs的评估在数据复杂度上是AC 0,NL-完全或NP-完全的,这取决于正则语言L。确定的片段也承认在正则表达式方面的简单表征。最后,我们还讨论了以下决策问题的复杂性:决定,给定一个语言L,是否找到一个正规的简单路径L是听话的。我们考虑了L的几种不同的表示:DFA,NFA或正则表达式,并证明了这个问题是NL-完全的第一个表示和PSPACE-完全的其他两个。作为结论,我们将我们的结果从边标号图推广到点标号图和点边标号图。

英文摘要:

Regular path queries (RPQs) select nodes connected by some path in a graph. The edge labels of such a path have to form a word that matches a given regular expression. We investigate the evaluation of RPQs with an additional constraint that prevents multiple traversals of the same nodes. Those regular simple path queries (RSPQs) find several applications in practice, yet they quickly become intractable, even for basic languages such as (aa)* or a*ba*. In this paper, we establish a comprehensive classification of regular languages with respect to the complexity of the corresponding regular simple path query problem. More precisely, we identify the fragment that is maximal in the following sense: regular simple path queries can be evaluated in polynomial time for every regular language L that belongs to this fragment and evaluation is NP-complete for languages outside this fragment. We thus fully characterize the frontier between tractability and intractability for RSPQs, and we refine our results to show the following trichotomy: Evaluations of RSPQs is either AC0, NL-complete or NP-complete in data complexity, depending on the regular language L. The fragment identified also admits a simple characterization in terms of regular expressions. Finally, we also discuss the complexity of the following decision problem: decide, given a language L, whether finding a regular simple path for L is tractable. We consider several alternative representations of L: DFAs, NFAs or regular expressions, and prove that this problem is NL-complete for the first representation and PSPACE-complete for the other two. As a conclusion we extend our results from edge-labeled graphs to vertex-labeled graphs and vertex-edge labeled graphs.

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

↑