arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1412.4463cs.DB
收藏

在图上定义关系:在节点划分的情况下有多难?

Defining relations on graphs: how hard is it in the presence of node partitions?

M. Praveen, B. Srivathsan

摘要:

为图结构数据设计查询语言是一个活跃的研究领域。对图上的查询求值会在其节点集上产生关系。换句话说,查询是用于在图上定义关系的机制。某些关系可能无法由给定语言中的任何查询定义。这就引出了下面的问题:给定一个图,一个查询语言和图上的一个关系,是否存在定义关系的语言中的查询?这就是所谓的可定义性问题。当给定的查询语言是标准正则表达式时,可定义性问题是PSPACE完全的。图的模型可以通过用来自无限域的值标记节点来扩展。这些标签在节点集合上引起划分:如果两个节点被相同的值标记,则它们是等价的。也可以扩展查询语言以利用这种等价性。两个这样的扩展是具有内存的正则表达式(REM)和具有等式的正则表达式(REE)。在本文中,我们研究的复杂性,可定义性问题,在这个扩展的模型时,查询语言是REM或REE。当查询语言为REM时,可定义性问题是EXPSPACE完全的;当查询语言为REE时,可定义性问题是PSPACE完全的。此外,当查询语言是基于REM或REE的合取查询的并集时,我们证明了coNP完全性。

英文摘要:

Designing query languages for graph structured data is an active field of research. Evaluating a query on a graph results in a relation on the set of its nodes. In other words, a query is a mechanism for defining relations on a graph. Some relations may not be definable by any query in a given language. This leads to the following question: given a graph, a query language and a relation on the graph, does there exist a query in the language that defines the relation? This is called the definability problem. When the given query language is standard regular expressions, the definability problem is known to be PSPACE-complete. The model of graphs can be extended by labeling nodes with values from an infinite domain. These labels induce a partition on the set of nodes: two nodes are equivalent if they are labeled by the same value. Query languages can also be extended to make use of this equivalence. Two such extensions are Regular Expressions with Memory (REM) and Regular Expressions with Equality (REE). In this paper, we study the complexity of the definability problem in this extended model when the query language is either REM or REE. We show that the definability problem is EXPSPACE-complete when the query language is REM, and it is PSPACE-complete when the query language is REE. In addition, when the query language is a union of conjunctive queries based on REM or REE, we show coNP-completeness.

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

↑