Abstract | ||
---|---|---|
We consider the Top-k Approximate Subtree Matching (tasm) problem: finding the k best matches of a small query tree within a large document tree using the canonical tree edit distance as a similarity measure between subtrees. Evaluating the tree edit distance for large XML trees is difficult: the best known algorithms have cubic runtime and quadratic space complexity, and, thus, do not scale. Our solution is tasm-postorder, a memory-efficient and scalable tasm algorithm. We prove an upper bound for the maximum subtree size for which the tree edit distance needs to be evaluated. The upper bound depends on the query and is independent of the document size and structure. A core problem is to efficiently prune subtrees that are above this size threshold. We develop an algorithm based on the prefix ring buffer that allows us to prune all subtrees above the threshold in a single postorder scan of the document. The size of the prefix ring buffer is linear in the threshold. As a result, the space complexity of tasm-postorder depends only on k and the query size, and the runtime of tasm-postorder is linear in the size of the document. Our experimental evaluation on large synthetic and real XML documents confirms our analytic results. |
Year | DOI | Venue |
---|---|---|
2011 | 10.1109/TKDE.2010.245 | IEEE Trans. Knowl. Data Eng. |
Keywords | Field | DocType |
prefix ring buffer,canonical tree,large xml tree,size threshold,maximum subtree size,real xml document,small query tree,large document tree,document size,small memory,query size,efficient top-k approximate subtree,matrix decomposition,heuristic algorithm,xml,similarity search,upper bound | Data mining,Tree (graph theory),Similarity measure,Computer science,Theoretical computer science,Tree structure,Artificial intelligence,Nearest neighbor search,Tree traversal,T-tree,Tree (data structure),Algorithm,Machine learning,Database,Search tree | Journal |
Volume | Issue | ISSN |
23 | 8 | 1041-4347 |
Citations | PageRank | References |
7 | 0.47 | 26 |
Authors | ||
4 |
Name | Order | Citations | PageRank |
---|---|---|---|
Nikolaus Augsten | 1 | 357 | 21.65 |
Denilson Barbosa | 2 | 610 | 43.52 |
Michael Bohlen | 3 | 37 | 2.10 |
Themis Palpanas | 4 | 1136 | 91.61 |