Abstract
Given two rooted, labeled, unordered trees, the common subtree problem is to find a bijective matching between subsets of vertices of the trees of maximum cardinality which preserves labels and ancestry relationship. The tree editing distance problem is to determine the least cost sequence of additions, deletions and changes that converts a tree into another given tree. Both problems are known to be hard to approximate within some constant factor in general.
We present polynomial algorithms for several special classes of trees as well as a tighter approximation hardness proof, which together comes close to characterizing the complexity of both problems on all interesting special classes of trees. We also present the first approximation algorithm with non-trivial approximation ratios. In particular, we achieve a ratio of log2 n, where n is the number of vertices in the trees.
Work done in large part while the first author visited JAIST, first as PFU Visiting Chair, and later supported by JAIST Foundation. Also work done in part while the second author visited NTT Telecommunication Networks Laboratories under the supervision of Toshihiko Yamakami.
Preview
Unable to display preview. Download preview PDF.
References
Crescenzi, P., and Kann, V. A compendium of NP optimization problems. Dynamic on-line survey available at ftp.nada.kth.se, Oct. 1995.
Yamaguchi, A. Approximation algorithm for the maximum common hereditary subtree problem. Manuscript. (In Japanese), Nov. 1994.
Zhang, K., and Jiang, T. Some MAX SNP-hard results concerning unordered labeled trees. Inf. Process. Lett. 42 (1994), 133–139.
Zhang, K., Statman, R., and Shasha, D. On the editing distance between unordered labeled trees. Inf. Process. Lett. 42 (1992), 133–139.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1996 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Halldórsson, M.M., Tanaka, K. (1996). Approximation and special cases of common subtrees and editing distance. In: Asano, T., Igarashi, Y., Nagamochi, H., Miyano, S., Suri, S. (eds) Algorithms and Computation. ISAAC 1996. Lecture Notes in Computer Science, vol 1178. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0009483
Download citation
DOI: https://doi.org/10.1007/BFb0009483
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-62048-8
Online ISBN: 978-3-540-49633-5
eBook Packages: Springer Book Archive