Skip to main content
Log in

Tai Mapping Hierarchy for Rooted Labeled Trees Through Common Subforest

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

A Tai mapping between two rooted labeled trees (trees, for short) is a one-to-one node correspondence preserving ancestors and siblings (if trees are ordered). The variations of the Tai mapping are known to provide a hierarchy, called a Tai mapping hierarchy. In this paper, we characterize the Tai mapping hierarchy as a common subforest by focusing on the connections of nodes and the arrangements of subtrees in a common subforest. Then, we fill a gap in the Tai mapping hierarchy by introducing several new variations. Furthermore, we summarize and investigate the time complexity of computing the variations of the edit distance as the minimum cost of the variations of the Tai mapping.

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.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16

Similar content being viewed by others

Notes

  1. The largest common subtree in the standard definition [1, 5, 9, 16, 21] is corresponding to the minimum cost of the LCA-preserving segmental mapping (LcaSg, defined below) which consists of pairs of nodes with the same label.

  2. In contrast to the standard definition of deletion and insertion [9, 14], this paper allows the deletion of a root, in order to characterize the bottom-up distance explicitly. Then, this paper also allows that the resulting tree applying to the deletion becomes a forest.

  3. Whereas Valiente [15] has introduced a bottom-up mapping that requires an isolated-subtree mapping, his algorithm computes a bottom-up distance that is not an isolated-subtree distance. Hence, we adopt the revised definition here not to be an isolated-subtree mapping. See [9, 18].

  4. In the definition of an alignable mapping [9], F is not a forest but a tree, because we can assume that the alignable mapping always contains the pair of the roots of two trees, corresponding to the alignment tree [6]. On the other hand, since the intersection of the alignable mapping to other mappings does not always contain the pair of the roots of two trees, we use a forest F in the definition of an alignable mapping.

References

  1. Akutsu, T., Fukagawa, D., Halldórsson, M.M., Takasu, A., Tanaka, K.: Approximation and parameterized algorithms for common subtrees and edit distance between unordered trees. Theoret. Comput. Sci. 470, 10–22 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  2. Bille, P.: A survey on tree edit distance and related problems. Theoret. Comput. Sci. 337, 217–239 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  3. Chawathe, S.S.: Comparing hierarchical data in external memory. Proc. VLDB’99, 90–101 (1999)

  4. Demaine, E.D., Mozes, S., Rossman, B., Weiman, O.: An optimal decomposition algorithm for tree edit distance. ACM Trans. Algo., 6 (2009)

  5. Hirata, K., Yamamoto, Y., Kuboyama, T.: Improved MAX SNP-hard results for finding an edit distance between unordered trees. Proc. CPM 2011. LNCS 6661, 402–415 (2011)

    MATH  Google Scholar 

  6. Jiang, T., Wang, L., Zhang, K.: Alignment of trees – an alternative to tree edit. Theoret. Comput. Sci. 143, 137–148 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  7. Kan, T., Higuchi, S., Hirata, K.: Segmental mapping and distance for rooted ordered labeled trees. Fundamenta Informaticae 132, 1–23 (2014)

    MathSciNet  MATH  Google Scholar 

  8. Kann, V.: Maximum bounded 3-dimensional matching is MAX SNP-complete. Inform. Process. Lett. 37, 27–35 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  9. Kuboyama, T.: Matching and Learning in Trees. Ph.D thesis, University of Tokyo (2007)

  10. Lu, C.L., Su, Z.-Y., Yang, C.Y.: A new measure of edit distance between labeled trees, Proc. COCOON’01. LNCS 2108, 338–348 (2001)

    Google Scholar 

  11. Lu, S.-Y.: A tree-to-tree distance and its application to cluster analysis. IEEE Trans. Pattern Anal. Mach. Intell. 1, 219–224 (1979)

    Article  MATH  Google Scholar 

  12. Papadimitoriou, C.H., Yannakakis, M.: Optimization, approximation and complexity. J. Comput. System Sci. 43, 425–440 (1991)

    Article  MathSciNet  Google Scholar 

  13. Selkow, S.M.: The tree-to-tree editing problem. Inform. Process. Lett. 6, 184–186 (1977)

    Article  MathSciNet  MATH  Google Scholar 

  14. Tai, K.-C.: The tree-to-tree correction problem. J. ACM 26, 422–433 (1979)

    Article  MathSciNet  MATH  Google Scholar 

  15. Valiente, G.: An efficient bottom-up distance between trees. Proc. SPIRE’01, 212–219 (2001)

  16. Valiente, G.: Algorithms on Trees and Graphs. Springer (2002)

  17. Wang, J.T.L., Zhang, K.: Finding similar consensus between trees: an algorithm and a distance hierarchy. Pattern Recog. 34, 127–137 (2001)

    Article  MATH  Google Scholar 

  18. Yamamoto, Y., Hirara, K., Kuboyama, T.: Tractable and intractable variations of unordered tree edit distance. Internat. J. Found. Comput. Sci. 25, 307–330 (2014)

    Article  MathSciNet  MATH  Google Scholar 

  19. Zhang, K.: Algorithms for the constrained editing distance between ordered labeled trees and related problems. Pattern Recog. 28, 463–474 (1995)

    Article  Google Scholar 

  20. Zhang, K.: A constrained edit distance between unordered labeled trees. Algorithmica 15, 205–222 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  21. Zhang, K., Jiang, T.: Some MAX SNP-hard results concerning unordered labeled trees. Inform. Process. Lett. 49, 249–254 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  22. Zhang, K., Wang, J., Shasha, D.: On the editing distance between undirected acyclic graphs. Internat. J. Found. Comput. Sci. 7, 43–58 (1996)

    Article  MATH  Google Scholar 

Download references

Acknowledgments

The authors would like to thank Prof. Tetsuji Kuboyama at Gakushuin University, Prof. Kilho Shin at University of Hyogo and Prof. Tetsuhiro Miyahara at Hiroshima City University for fruitful discussion about tree edit distance and its variations. Also they would like to thank anonymous referees of Theory of Computing Systems for valuable comments to revise the submitted version of this paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kouichi Hirata.

Additional information

This work is partially supported by Grant-in-Aid for Scientific Research 16H02870, 16H01743, 15K12102, 26280085 and 24300060 from the Ministry of Education, Culture, Sports, Science and Technology, Japan.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Yoshino, T., Hirata, K. Tai Mapping Hierarchy for Rooted Labeled Trees Through Common Subforest. Theory Comput Syst 60, 759–783 (2017). https://doi.org/10.1007/s00224-016-9705-1

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-016-9705-1

Keywords

Navigation