A linear tree edit distance algorithm for similar ordered trees

  • Authors:
  • Hélène Touzet

  • Affiliations:
  • LIFL – UMR CNRS 8022, Université Lille 1, Villeneuve d'Ascq cedex, France

  • Venue:
  • CPM'05 Proceedings of the 16th annual conference on Combinatorial Pattern Matching
  • Year:
  • 2005

Quantified Score

Hi-index 0.01

Visualization

Abstract

We describe a linear algorithm for comparing two similar ordered rooted trees with node labels. The method for comparing trees is the usual tree edit distance. We show that an optimal mapping which uses at most k insertions or deletions can then be constructed in O(nk3) where n is the size of the trees. The approach is inspired by the Zhang-Shasha algorithm for tree edit distance in combination with an adequate pruning of the search space.