Abstract
An ordered tree is a tree in which each node’s incident edges are cyclically ordered; think of the tree as being embedded in the plane. Let A and B be two ordered trees. The edit distance between A and B is the minimum cost of a sequence of operations (contract an edge, uncontract an edge, modify the label of an edge) needed to transform A into B. We give an O(n 3 log n) algorithm to compute the edit distance between two ordered trees.
research supported by NSF Grant CCR-9700146
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
J. L. Gross and T. W. Tucker, Topological Graph Theory, Wiley, 1987.
M. Maes, “On a cyclic string-to-string correction problem,” Information Processing Letters 35 (1990), pp. 73–78.
B. A. Shapiro, “An algorithm for comparing multiple RNA secondary structures,” Computer Applications in the Biosciences (1988), pp. 387–393.
D. D. Sleator and R. E. Tarjan, “A data structure for dynamic trees,” Journal of Computer and System Sciences 26 (1983), pp. 362–391.
K.-C. Tai, “The tree-to-tree correction problem”, Journal of the Association for Computing Machinery 26 (1979), pp. 422–433.
Srikanta Tirthapura, personal communication, 1998.
R. A. Wagner and M. J. Fischer, “The string-to-string correction problem,” Journal of the Association for Computing Machinery 21, (1974), pp. 168–173.
J. T.-L. Wang, K. Zhang, K. Jeong, and D. Shasha, “A system for approximate tree matching,” IEEE Transactions on Knowledge and Data Engineering 6 (1994), pp. 559–571. 5
K. Zhang, “A constrained edit distance between unordered labeled trees,” Algorithmica 15 (1996), pp. 205–222.
K. Zhang and D. Shasha, “Simple fast algorithms for the editing distance between trees and related problems, SIAM Journal on Computing 18 (1989), pp. 1245–1262.
K. Zhang and D. Shasha, “Approximate tree pattern matching,” Chapter 14 of Pattern Matching Algorithms, Oxford University Press (1997)
K. Zhang, R. Statman and D. Shasha, “On the editing distance between unordered labeled trees,” Information Processing Letters 42 (1992), pp. 133–139
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1998 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Klein, P.N. (1998). Computing the Edit-Distance Between Unrooted Ordered Trees. In: Bilardi, G., Italiano, G.F., Pietracaprina, A., Pucci, G. (eds) Algorithms — ESA’ 98. ESA 1998. Lecture Notes in Computer Science, vol 1461. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-68530-8_8
Download citation
DOI: https://doi.org/10.1007/3-540-68530-8_8
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-64848-2
Online ISBN: 978-3-540-68530-2
eBook Packages: Springer Book Archive