Efficient algorithms for processing XPath queries

G Gottlob, C Koch, R Pichler - ACM Transactions on Database Systems …, 2005 - dl.acm.org
ACM Transactions on Database Systems (TODS), 2005dl.acm.org
Our experimental analysis of several popular XPath processors reveals a striking fact: Query
evaluation in each of the systems requires time exponential in the size of queries in the
worst case. We show that XPath can be processed much more efficiently, and propose main-
memory algorithms for this problem with polynomial-time combined query evaluation
complexity. Moreover, we show how the main ideas of our algorithm can be profitably
integrated into existing XPath processors. Finally, we present two fragments of XPath for …
Our experimental analysis of several popular XPath processors reveals a striking fact: Query evaluation in each of the systems requires time exponential in the size of queries in the worst case. We show that XPath can be processed much more efficiently, and propose main-memory algorithms for this problem with polynomial-time combined query evaluation complexity. Moreover, we show how the main ideas of our algorithm can be profitably integrated into existing XPath processors. Finally, we present two fragments of XPath for which linear-time query processing algorithms exist and another fragment with linear-space/quadratic-time query processing.
ACM Digital Library