pith. sign in

arxiv: 1311.5573 · v1 · pith:EA44KC3Bnew · submitted 2013-11-21 · 💻 cs.DB · cs.FL

XPath Node Selection over Grammar-Compressed Trees

classification 💻 cs.DB cs.FL
keywords nodesqueryselectedxpathexecutedgrammargrammar-compressedtrees
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.