TWO ALGORITHMS FOR LOCATING ANCESTORS OF A LARGE SET OF VERTICES IN A TREE

Oleksandr Panchenko, Arian Treffer, Hasso Plattner, Alexander Zeier

2011

Abstract

A lot of tree-shaped data exists: XML documents, abstract syntax trees, hierarchies, etc. To accelerate query processing on trees stored in a relational database a pre-post-ordering can be used. It works well for locating ancestors of a single or few vertices because pre-post-ordering avoids recursive table access. However, it is slow if it comes to locating ancestors of hundreds or thousands of vertices because ancestors of each of the input vertices are located sequentially. In this paper, two novel algorithms (sort-tilt-scan and single-pass-scan) for solving this problem are proposed and compared with a näıve approach. While the sort-tilt-scan improves the performance by a constant factor, the single-pass-scan achieves a better complexity class. The performance gain is achieved because of a single table scan which can locate all result vertices by a single run. Using generated data, this paper demonstrates that the single-pass-scan is orders of magnitude faster than the näıve approach.

References

  1. Chen, Y., Davidson, S. B., and Zheng, Y. (2004). BLAS: an efficient XPath processing system. In Proceedings of the SIGMOD international conference on Management of data, pages 47-58, New York, NY, USA. ACM.
  2. Cockshott, W. P., McGregor, D., Kotsis, N., and Wilson, J. (1998). Data Compression in Database Systems. In Proceedings of the International Workshop on Database and Expert Systems Applications, page 981. IEEE Computer Society.
  3. Gou, G. and Chirkova, R. (2007). Efficient Algorithms for Evaluating XPath over Streams. In Proceedings of the SIGMOD international conference on Management of data, pages 269-280, New York, NY, USA. ACM.
  4. Grust, T., Keulen, M., and Teubner, J. (2004). Accelerating XPath evaluation in any RDBMS. ACM Transactions on Database Systems, 1.
  5. Li, F., Agrawal, P., Eberhardt, G., Manavoglu, E., Ugurel, S., and Kandemir, M. (2004). Improving Memory Performance of Embedded Java Applications by Dynamic Layout Modifications. In Proceedings of the International Parallel and Distributed Processing Symposium, page 159. IEEE Computer Society.
  6. Li, X. and Agrawal, G. (2005). Efficient Evaluation of XQuery over Streaming Data. In Proceedings of the 31st international conference on Very large data bases, pages 265-276. VLDB Endowment.
  7. Panchenko, O., Treffer, A., and Zeier, A. (2010). Towards Query Formulation and Visualization of Structural Search Results. In Proceedings of the ICSE Workshop on Search-driven Development: Users, Infrastructure, Tools and Evaluation, pages 33-36, New York, NY, USA. ACM.
  8. Peng, F. and Chawathe, S. S. (2005). XSQ: A Streaming XPath Engine. ACM Transactions on Database Systems, 30(2):577-623.
Download


Paper Citation


in Harvard Style

Panchenko O., Treffer A., Plattner H. and Zeier A. (2011). TWO ALGORITHMS FOR LOCATING ANCESTORS OF A LARGE SET OF VERTICES IN A TREE . In Proceedings of the 6th International Conference on Software and Database Technologies - Volume 1: ICSOFT, ISBN 978-989-8425-76-8, pages 280-285. DOI: 10.5220/0003599202800285


in Bibtex Style

@conference{icsoft11,
author={Oleksandr Panchenko and Arian Treffer and Hasso Plattner and Alexander Zeier},
title={TWO ALGORITHMS FOR LOCATING ANCESTORS OF A LARGE SET OF VERTICES IN A TREE},
booktitle={Proceedings of the 6th International Conference on Software and Database Technologies - Volume 1: ICSOFT,},
year={2011},
pages={280-285},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0003599202800285},
isbn={978-989-8425-76-8},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 6th International Conference on Software and Database Technologies - Volume 1: ICSOFT,
TI - TWO ALGORITHMS FOR LOCATING ANCESTORS OF A LARGE SET OF VERTICES IN A TREE
SN - 978-989-8425-76-8
AU - Panchenko O.
AU - Treffer A.
AU - Plattner H.
AU - Zeier A.
PY - 2011
SP - 280
EP - 285
DO - 10.5220/0003599202800285