...
首页> 外文期刊>ACM transactions on database systems >On the Complexity of Nonrecursive XQuery and Functional Query Languages on Complex Values
【24h】

On the Complexity of Nonrecursive XQuery and Functional Query Languages on Complex Values

机译:非递归XQuery和函数查询语言在复杂值上的复杂性

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

摘要

This article studies the complexity of evaluating functional query languages for complex values such as monad algebra and the recursion-free fragment of XQuery. We show that monad algebra, with equality restricted to atomic values, is complete for the class TA[2~(O(n)), O(n)] of problems solvable in linear exponential time with a linear number of alternations if the query is assumed to be part of the input. The monotone fragment of monad algebra with atomic value equality but without negation is NEXPTIME-complete. For monad algebra with deep value equality, that is, equality of complex values, we establish TA[2~(O(n)), O(n)] lower and exponential-space upper bounds. We also study a fragment of XQuery, Core XQuery, that seems to incorporate all the features of a query language on complex values that are traditionally deemed essential. A close connection between monad algebra on lists and Core XQuery (with "child" as the only axis) is exhibited. The two languages are shown expressively equivalent up to representation issues. We show that Core XQuery is just as hard as monad algebra with respect to query and combined complexity. As Core XQuery is NEXPTIME-hard, the best-known techniques for processing such problems require exponential amounts of working memory and doubly exponential time in the worst case. We present a property of queries—the lack of a certain form of composition—that virtually all real-world XQueries have and that allows for query evaluation in PSPACE and thus singly exponential time. Still, we are able to show for an important special case—Core XQuery with equality testing restricted to atomic values—that the composition-free language is just as expressive as the language with composition. Thus, under widely-held complexity-theoretic assumptions, the language with composition is an exponentially more succinct version of the composition-free language.
机译:本文研究了评估函数查询语言的复杂性(例如monad代数和XQuery的无递归片段)的复杂性。我们表明,等式受限于原子值的monad代数对于类别TA [2〜(O(n()),O(n)])在线性指数时间内具有线性交替次数的问题可求解的问题而言是完整的假定为输入的一部分。具有原子值相等但没有取反的莫纳德代数的单调片段是NEXPTIME完全的。对于具有深值相等(即复值相等)的莫纳德代数,我们建立TA [2〜(O(n)),O(n)]的下限和指数空间的上限。我们还研究了XQuery的一个片段,即Core XQuery,该片段似乎在传统上认为必不可少的复杂值上融合了查询语言的所有功能。列表中的monad代数与Core XQuery(以“子”为唯一轴)之间显示出紧密的联系。两种语言在表达上都等同于表示问题。我们证明,就查询和组合复杂性而言,Core XQuery与monad代数一样难。由于Core XQuery很难NEXPTIME,因此处理此类问题的最著名技术需要指数级的工作内存,而在最坏的情况下则需要两倍的指数时间。我们提出了查询的一种属性-缺少某种形式的组合-几乎所有现实世界中的XQueries都具有这种查询,并且允许在PSPACE中对查询进行评估,从而实现指数时间。尽管如此,我们仍可以证明一个重要的特殊情况-仅限原子值的相等性测试的Core XQuery-无组合语言与具有组合语言一样具有表现力。因此,在广泛接受的复杂性理论假设下,具有合成的语言是无合成语言的指数形式更简洁的版本。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号