Skip to main content
Log in

A constrained edit distance between unordered labeled trees

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

This paper considers the problem of computing a constrained edit distance between unordered labeled trees. The problem of approximate unordered tree matching is also considered. We present dynamic programming algorithms solving these problems in sequential timeO(|T 1|×|T 2|×(deg(T 1)+deg(T 2))× log2(deg(T 1)+deg(T 2))). Our previous result shows that computing the edit distance between unordered labeled trees is NP-complete.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. A. Arora, C. Lund, R. Motwani, M. Sudan, and M. Szegedy, Proof verification and hardness of approximation problems,Proc. 33rd IEEE Symp. on the Foundation of Computer Science, 1992, pp. 14–23.

  2. G. M. Landau and U. Vishkin, Fast parallel and serial approximate string matching,J. Algorithms,10 (1989), 157–169.

    Google Scholar 

  3. P. Kilpelainen and H. Mannila, The tree inclusion problem,Proc. Internat. Joint Conf. on the Theory and Practice of Software Development (CAAP '91), 1991, Vol. 1, pp. 202–214.

    Google Scholar 

  4. S. Masuyama, Y. Takahashi, T. Okuyama, and S. Sasaki, On the largest common subgraph problem,Algorithms and Computing Theory, RIMS, Kokyuroku (Kyoto University), 1990, pp. 195–201.

  5. P. H. Sellers, The theory and computation of evolutionary distances,J. Algorithms,1 (1980), 359–373.

    Google Scholar 

  6. B. Shapiro and K. Zhang, Comparing multiple RNA secondary structures using tree comparisons,Comput. Appl. Biosci.,6(4) (1990), 309–318.

    Google Scholar 

  7. F. Y. Shih, Object representation and recognition using mathematical morphology model,J. System Integration,1 (1991), 235–256.

    Google Scholar 

  8. F. Y. Shih and O. R. Mitchell, Threshold decomposition of grayscale morphology into binary morphology,IEEE Trans. Pattern Anal. Mach. Intell.,11 (1989), 31–42.

    Google Scholar 

  9. K. C. Tai, The tree-to-tree correction problem,J. Assoc. Comput. Mach.,26 (1979), 422–433.

    Google Scholar 

  10. Y. Takahashi, Y. Satoh, H. Suzuki, and S. Sasaki, Recognition of largest common structural fragment among a variety of chemical structures,Anal. Sci.,3 (1987), 23–28.

    Google Scholar 

  11. E. Tanaka and K. Tanaka, The tree-to-tree editing problem,Internat. J. Pattern Recog. Artificial Intell.,2(2) (1988), 221–240.

    Google Scholar 

  12. R. E. Tarjan,Data Structures and Network Algorithms, CBMS-NSF Regional Conference Series in Applied Mathematics, CBMS, Washington, DC, 1983.

    Google Scholar 

  13. E. Ukkonen, Finding approximate patterns in strings,J. Algorithms,6 (1985), 132–137.

    Google Scholar 

  14. J. T. L. Wang, Kaizhong Zhang, Karpjoo Jeong, and D. Shasha, ATBE: a system for approximate tree matching,IEEE Trans. Knowledge Data Engrg,6(4) (1994), 559–571.

    Google Scholar 

  15. Kaizhong Zhang, Algorithms for the Constrained Editing Distance Between Ordered Labeled Trees and Related Problems, Technical Report No. 361, Department of Computer Science, University of Western Ontario, 1993.

  16. Kaizhong Zhang and Tao Jiang, Some MAX SNP-hard results concerning unordered labeled trees,Inform. Process. Lett.,49 (1994), 249–254.

    Google Scholar 

  17. Kaizhong Zhang and D. Shasha, Simple fast algorithms for the editing distance between trees and related problems,SIAM J. Comput.,18(6) (1989), 1245–1262.

    Google Scholar 

  18. Kaizhong Zhang, D. Shasha, and J. Wang, Approximate tree matching in the presence of variable length don't cares,J. Algorithms,16 (1994), 33–66.

    Google Scholar 

  19. Kaizhong Zhang, R. Statman and D. Shasha, On the editing distance between unordered labeled trees,Inform. Process. Lett.,42 (1992), 133–139.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

Communicated by H. N. Gabow.

This research was supported by the Natural Sciences and Engineering Research Council of Canada under Grant No. OGP0046373.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Zhang, K. A constrained edit distance between unordered labeled trees. Algorithmica 15, 205–222 (1996). https://doi.org/10.1007/BF01975866

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01975866

Key words

Navigation