首页> 外文期刊>Journal of computer and system sciences >Worst-case optimal algorithm for XPath evaluation over XML streams
【24h】

Worst-case optimal algorithm for XPath evaluation over XML streams

机译:XML流上的XPath评估的最坏情况最优算法

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

摘要

We consider the XPath evaluation problem: Evaluate an XPath query Q on a streaming XML document D; i.e., determine the set Q(D) of document elements selected by Q. We mainly consider Conjunctive XPath queries that involve only the child and descendant axes. Previously known in-memory algorithms for this problem use O(|D|) space and O(|Q||D|) time. Several previously known algorithms for the streaming version use Q(d~n) space and Q(d~n|D|) time in the worst case; d denotes the depth of D, and n denotes the number of location steps in Q. Their exponential space requirement could well exceed the O(|D|) space used by the in-memory algorithms. We present an efficient algorithm that uses O(d|Q| + nc) space and O((|Q| +dn)|D|) time in the worst case; c denotes the maximum number of elements of D that can be candidates for output, at any one instant. For some worst case Q and D, the memory space used by our algorithm matches our lower bound proved in a different paper; so. our algorithm uses optimal memory space in the worst case.
机译:我们考虑XPath评估问题:在流XML文档D上评估XPath查询Q;即确定由Q选择的文档元素的集合Q(D)。我们主要考虑仅涉及子轴和后代轴的联合XPath查询。先前已知的内存中算法针对此问题使用O(| D |)空间和O(| Q || D |)时间。在最坏的情况下,流媒体版本的几种先前已知的算法使用Q(d〜n)空间和Q(d〜n | D |)时间。 d表示D的深度,n表示Q中的定位步数。它们的指数空间要求可能远远超过内存算法使用的O(| D |)空间。我们提出了一种在最坏的情况下使用O(d | Q | + nc)空间和O((| Q | + dn)| D |)时间的有效算法。 c表示在任一时刻可以作为输出候选的D元素的最大数量。对于最坏的情况Q和D,我们算法使用的内存空间与另一篇论文中证明的下限相匹配;所以。在最坏的情况下,我们的算法会使用最佳存储空间。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号