Authors:
Manami Hagihara
;
Takuya Yoshino
and
Kouich Hirata
Affiliation:
Kyushu Institute of Technology, Kawazu 680-4, Iizuka 820-8502, Japan
Keyword(s):
Edit Distance, Rooted Labeled Caterpillar, Rooted Labeled Unordered Tree, Top-down Distance, Bottom-up Distance, LCA-preserving Distance.
Abstract:
In this paper, we pay our attention to top-down distance, LCA-preserving distance and bottom-up distance for rooted labeled caterpillars (caterpillars, for short), as the variations of the edit distance. Here, the top-down distance is the edit distance that the deletion and the insertion are allowed to just leaves, the LCA-preserving distance is one to just either leaves or vertices with one child and the bottom-up distance is one to just the root. Then, we show that the top-down and the bottom-up distances for caterpillars can be computed in O(n) time and the LCA-preserving distance for caterpillars in O(n2) time. Furthermore, we give experimental results of computing these variations for caterpillars in real data.