arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1603.00658cs.LOcs.DBcs.FL
收藏

图数据库中算子的嵌套深度:表达性与计算复杂性

Nesting Depth of Operators in Graph Database Queries: Expressiveness Vs. Evaluation Complexity

M. Praveen, B. Srivathsan

摘要:

为图结构化数据设计查询语言是一个活跃的研究领域,其中用于查询评估的表达性和高效算法是相互冲突的目标。为了更好地处理动态变化的数据,最近的工作是设计查询语言,它可以比较存储在图数据库中的值,而不需要对查询中的值进行硬编码。其主要思想是允许查询中包含变量,并在计算查询时将变量绑定到值。对于只绑定变量一次的查询语言,查询计算通常是NP完全的。有些查询语言允许在Kleene星型运算符的作用域内进行绑定,而这些运算符本身也可以在绑定的作用域内,等等。我们定义了一种方法来语法控制嵌套深度的迭代绑定,并研究如何影响表现力和效率的查询评估。结果是一个无限的、按语法定义的表达式层次结构。我们证明了相应的语言层次是严格的。给定层次结构中的表达式,我们证明检查较低级别是否存在语言等效表达式是不可判定的。我们证明,评估查询的基础上,在级别i的表达式可以在$Σ_i$在多项式时间层次结构。量化布尔公式的可满足性可以归结为查询评价,我们研究了布尔量词的交替和迭代绑定的嵌套深度之间的关系。

英文摘要:

Designing query languages for graph structured data is an active field of research, where expressiveness and efficient algorithms for query evaluation are conflicting goals. To better handle dynamically changing data, recent work has been done on designing query languages that can compare values stored in the graph database, without hard coding the values in the query. The main idea is to allow variables in the query and bind the variables to values when evaluating the query. For query languages that bind variables only once, query evaluation is usually NP-complete. There are query languages that allow binding inside the scope of Kleene star operators, which can themselves be in the scope of bindings and so on. Uncontrolled nesting of binding and iteration within one another results in query evaluation being PSPACE-complete. We define a way to syntactically control the nesting depth of iterated bindings, and study how this affects expressiveness and efficiency of query evaluation. The result is an infinite, syntactically defined hierarchy of expressions. We prove that the corresponding language hierarchy is strict. Given an expression in the hierarchy, we prove that it is undecidable to check if there is a language equivalent expression at lower levels. We prove that evaluating a query based on an expression at level i can be done in $Σ_i$ in the polynomial time hierarchy. Satisfiability of quantified Boolean formulas can be reduced to query evaluation; we study the relationship between alternations in Boolean quantifiers and the depth of nesting of iterated bindings.

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

↑