An O(n^3)-Time Algorithm for Tree Edit Distance

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

10 pages, 5 figures, 5 .tex files where TED.tex is the main one

Scientific paper

10.1145/1644015.1644017

The {\em edit distance} between two ordered trees with vertex labels is the minimum cost of transforming one tree into the other by a sequence of elementary operations consisting of deleting and relabeling existing nodes, as well as inserting new nodes. In this paper, we present a worst-case $O(n^3)$-time algorithm for this problem, improving the previous best $O(n^3\log n)$-time algorithm~\cite{Klein}. Our result requires a novel adaptive strategy for deciding how a dynamic program divides into subproblems (which is interesting in its own right), together with a deeper understanding of the previous algorithms for the problem. We also prove the optimality of our algorithm among the family of \emph{decomposition strategy} algorithms--which also includes the previous fastest algorithms--by tightening the known lower bound of $\Omega(n^2\log^2 n)$~\cite{Touzet} to $\Omega(n^3)$, matching our algorithm's running time. Furthermore, we obtain matching upper and lower bounds of $\Theta(n m^2 (1 + \log \frac{n}{m}))$ when the two trees have different sizes $m$ and~$n$, where $m < n$.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

An O(n^3)-Time Algorithm for Tree Edit Distance does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with An O(n^3)-Time Algorithm for Tree Edit Distance, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and An O(n^3)-Time Algorithm for Tree Edit Distance will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-701552

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.