Abstract

We present fast algorithms for computing the largest common subtree (LCST) and for computing the optimal alignment when two similar unordered trees are given. For the LCST problem for rooted trees, we present an O(4Kn) time algorithm, where n is the maximum size of two input trees and the total number of non-common nodes is bounded by K. We extend this algorithm for unrooted trees and obtain an O(K4Kn) time algorithm. Both of these are subquadratic for two similar trees within K = o( log 4 n) differences. We also show that the alignment problem for rooted and unordered trees of bounded degree can be solved in O(γKn) time for a constant γ. Particularly γ is at most 4.45 for unlabeled binary trees.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call