【24h】

Complexity of Higher-Order Queries

机译:高阶查询的复杂性

获取原文
获取原文并翻译 | 示例

摘要

While relational algebra and calculus are a well-established foundation for classical database query languages, it is less clear what the analog is for higher-order functions, such as query transformations. Here we study a natural way to add higher-order functionality to query languages, by adding database query operators to the λ-calculus as constants. This framework, which we refer to as λ-embedded query languages, was introduced in [BPV10]. That work had a restricted focus: the containment and equivalence problems for query-to-query functions, in the case where only positive relational operators are allowed as constants. In this work we take an in-depth look at the most basic issue for such languages: the evaluation problem. We give a full picture of the complexity of evaluation for A-embedded query languages, looking at a number of variations: with negation and without; with only relational algebra operators, and also with a recursion mechanism in the form of a query iteration operator; in a strongly-typed calculus as well as a weakly-typed one. We give tight bounds on both the combined complexity and the query complexity of evaluation in all these settings, in the process explaining connections with Datalog and prior work on λ-calculus evaluation.
机译:尽管关系代数和微积分是经典数据库查询语言的公认基础,但对于类似高阶函数(例如查询转换)的模拟是什么尚不清楚。在这里,我们研究了一种自然的方法,即通过将数据库查询运算符作为常量添加到λ微积分,从而向查询语言添加高阶功能。在[BPV10]中引入了我们称为λ嵌入式查询语言的框架。这项工作的重点是有限的:在只允许使用正关系运算符作为常量的情况下,查询到查询功能的包含性和等效性问题。在这项工作中,我们深入研究了此类语言的最基本问题:评估问题。我们看一下A嵌入查询语言的评估复杂性的全貌,其中有许多变体:带否定和不带否定;仅具有关系代数运算符,并且具有查询迭代运算符形式的递归机制;在一个强类型的演算以及一个弱类型的演算中。在解释与Datalog的联系以及λ演算评估的先前工作的过程中,我们对所有这些设置中评估的组合复杂度和查询复杂度都给出了严格的界限。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号