arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1311.5573cs.DBcs.FL
收藏

文法压缩树上的节点选择

XPath Node Selection over Grammar-Compressed Trees

Sebastian Maneth, Tom Sebastian

摘要:

XML文档标记是高度重复的,因此使用基于语法的压缩可以很好地压缩。向下,导航查询可以在PTIME中的语法压缩树上执行:查询被转换为自动机,在语法上执行一次。这个结果是众所周知的,以前也提到过。在这里,我们提出了这个问题的时间复杂度的精确界限,在大O符号。对于一个给定的语法和查询,我们考虑三个不同的任务:(1)计算查询所选择的节点的数量,(2)具体化所选择的节点的前序编号,以及(3)序列化所选择的节点上的子树。

英文摘要:

XML document markup is highly repetitive and therefore well compressible using grammar-based compression. Downward, navigational XPath can be executed over grammar-compressed trees in PTIME: the query is translated into an automaton which is executed in one pass over the grammar. This result is well-known and has been mentioned before. Here we present precise bounds on the time complexity of this problem, in terms of big-O notation. For a given grammar and XPath query, we consider three different tasks: (1) to count the number of nodes selected by the query, (2) to materialize the pre-order numbers of the selected nodes, and (3) to serialize the subtrees at the selected nodes.

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

↑