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

被引:0
|
作者
Panchenko, Oleksandr [1 ]
Treffer, Arian [1 ]
Plattner, Hasso [1 ]
Zeier, Alexander [1 ]
机构
[1] Hasso Plattner Inst Software Syst Engn, POB 900460, D-14440 Potsdam, Germany
关键词
Query processing; Tree processing; XML database; Data storage; Algorithms;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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 naive 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 naive approach.
引用
收藏
页码:280 / 285
页数:6
相关论文
共 50 条
  • [31] A necessary and sufficient condition for the existence of a spanning tree with specified vertices having large degrees
    Egawa, Yoshimi
    Ozeki, Kenta
    COMBINATORICA, 2014, 34 (01) : 47 - 60
  • [32] A necessary and sufficient condition for the existence of a spanning tree with specified vertices having large degrees
    Yoshimi Egawa
    Kenta Ozeki
    Combinatorica, 2014, 34 : 47 - 60
  • [33] Distributed Spanning Tree algorithms for large scale traversals
    Dahan, S
    11th International Conference on Parallel and Distributed Systems, Vol I, Proceedings, 2005, : 453 - 459
  • [34] An Experimental Analysis of Consensus Tree Algorithms for Large-Scale Tree Collections
    Sul, Seung-Jin
    Williams, Tiffani L.
    BIOINFORMATICS RESEARCH AND APPLICATIONS: 5TH INTERNATIONAL SYMPOSIUM, ISBRA 2009, 2009, 5542 : 100 - 111
  • [35] Parameterized algorithms for Steiner tree and (connected) dominating set on path graphs
    de Figueiredo, Celina M. H.
    Lopes, Raul
    de Melo, Alexsander A.
    Silva, Ana
    NETWORKS, 2024, 84 (02) : 132 - 147
  • [36] Exact algorithms and applications for Tree-like Weighted Set Cover
    Guo, Jiong
    Niedermeier, Rolf
    JOURNAL OF DISCRETE ALGORITHMS, 2006, 4 (04) : 608 - 622
  • [37] On the computational complexity of two frequent set generation algorithms
    Sprague, AP
    PROCEEDINGS OF THE 2004 INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND APPLICATIONS (ICMLA'04), 2004, : 344 - 350
  • [38] Vertex-centric Parallel Algorithms for Identifying Key Vertices in Large-scale Graphs
    Li, Bo
    Gao, Zhuangliang
    Niu, Jianwei
    Lv, YanFei
    Zhang, Hong
    2015 IEEE 17TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING AND COMMUNICATIONS, 2015 IEEE 7TH INTERNATIONAL SYMPOSIUM ON CYBERSPACE SAFETY AND SECURITY, AND 2015 IEEE 12TH INTERNATIONAL CONFERENCE ON EMBEDDED SOFTWARE AND SYSTEMS (ICESS), 2015, : 225 - 231
  • [39] Minimizing randomness in minimum spanning tree, parallel connectivity, and set maxima algorithms
    Pettie, S
    Ramachandran, V
    PROCEEDINGS OF THE THIRTEENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2002, : 713 - 722
  • [40] Test and confidence set for the difference of the x-coordinates of the vertices of two quadratic regression models
    Bachmaier, Martin
    STATISTICAL PAPERS, 2010, 51 (02) : 285 - 296