Back to Search
Start Over
Tree edit distance: Robust and memory-efficient.
- Source :
-
Information Systems . Mar2016, Vol. 56, p157-173. 17p. - Publication Year :
- 2016
-
Abstract
- Hierarchical data are often modelled as trees. An interesting query identifies pairs of similar trees. The standard approach to tree similarity is the tree edit distance, which has successfully been applied in a wide range of applications. In terms of runtime, the state-of-the-art algorithm for the tree edit distance is RTED, which is guaranteed to be fast independent of the tree shape. Unfortunately, this algorithm requires up to twice the memory of its competitors. The memory is quadratic in the tree size and is a bottleneck for the tree edit distance computation. In this paper we present a new, memory efficient algorithm for the tree edit distance, AP-TED (All Path Tree Edit Distance). Our algorithm runs at least as fast as RTED without trading in memory efficiency. This is achieved by releasing memory early during the first step of the algorithm, which computes a decomposition strategy for the actual distance computation. We show the correctness of our approach and prove an upper bound for the memory usage. The strategy computed by AP-TED is optimal in the class of all-path strategies, which subsumes the class of LRH strategies used in RTED. We further present the AP-TED + algorithm, which requires less computational effort for very small subtrees and improves the runtime of the distance computation. Our experimental evaluation confirms the low memory requirements and the runtime efficiency of our approach. [ABSTRACT FROM AUTHOR]
Details
- Language :
- English
- ISSN :
- 03064379
- Volume :
- 56
- Database :
- Academic Search Index
- Journal :
- Information Systems
- Publication Type :
- Academic Journal
- Accession number :
- 111441897
- Full Text :
- https://doi.org/10.1016/j.is.2015.08.004