English

An Algorithm for Comparing Similarity Between Two Trees

Computational Geometry 2015-08-17 v1

Abstract

An important problem in geometric computing is defining and computing similarity between two geometric shapes, e.g. point sets, curves and surfaces, etc. Important geometric and topological information of many shapes can be captured by defining a tree structure on them (e.g. medial axis and contour trees). Hence, it is natural to study the problem of comparing similarity between trees. We study gapped edit distance between two ordered labeled trees, first proposed by Touzet \cite{Touzet2003}. Given two binary trees T1T_{1} and T2T_{2} with mm and nn nodes. We compute the general gap edit distance in O(m3n2+m2n3)O(m^{3}n^{2} + m^{2}n^{3}) time. The computation of this distance in the case of arbitrary trees has shown to be NP-hard \cite{Touzet2003}. We also give an algorithm for computing the complete subtree gap edit distance, which can be applied to comparing contour trees of terrains in R3\mathbb{R}^{3}.

Keywords

Cite

@article{arxiv.1508.03381,
  title  = {An Algorithm for Comparing Similarity Between Two Trees},
  author = {Hangjun Xu},
  journal= {arXiv preprint arXiv:1508.03381},
  year   = {2015}
}

Comments

M.S. degree Project, Department of Computer Science, Duke University, April, 2014

R2 v1 2026-06-22T10:33:26.661Z