DocumentCode
2082084
Title
TASM: Top-k Approximate Subtree Matching
Author
Augsten, Nikolaus ; Barbosa, Denilson ; Böhlen, Michael ; Palpanas, Themis
Author_Institution
Fac. of Comput. Sci., Free Univ. of Bozen-Bolzano, Bolzano, Italy
fYear
2010
fDate
1-6 March 2010
Firstpage
353
Lastpage
364
Abstract
We consider the Top-k Approximate Subtree Matching (TASM) problem: finding the k best matches of a small query tree, e.g., a DBLP article with 15 nodes, in a large document tree, e.g., DBLP with 26M nodes, 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.
Keywords
XML; computational complexity; tree searching; XML trees; cubic runtime; prefix ring buffer; quadratic space complexity; query tree; top-k approximate subtree matching; tree edit distance; Cleaning; Computer science; Extraterrestrial measurements; Performance evaluation; Runtime; Upper bound; XML;
fLanguage
English
Publisher
ieee
Conference_Titel
Data Engineering (ICDE), 2010 IEEE 26th International Conference on
Conference_Location
Long Beach, CA
Print_ISBN
978-1-4244-5445-7
Electronic_ISBN
978-1-4244-5444-0
Type
conf
DOI
10.1109/ICDE.2010.5447905
Filename
5447905
Link To Document