Identifying approximately common substructures in trees based on a restricted edit distance

Document Type

Article

Publication Date

12-2-1999

Abstract

In this paper we present a dynamic programming algorithm for identifying the largest approximately common substructures (LACSs) of two ordered labeled trees. We consider a substructure of a tree T to be a connected subgraph of T. Given two trees T1, T2 and an integer d, the LACS problem is to find a substructure U1 of T1 and a substructure U2 of T2 such that U1 is within distance d of U2 and where there does not exist any other substructure V1 of T1 and V2 of T2 such that V1 and V2 satisfy the distance restriction and the sum of the sizes of V1 and V2 is greater than the sum of the sizes of U1 and U2. The distance measure considered in the paper is a restricted edit distance originated from Selkow. The LACS problem is motivated by the studies of program and document comparison. The proposed algorithm solves the problem in time O(d2×|T1|×|T2|), which is as fast as the best known algorithm for calculating Selkow's distance of two trees when the distance allowed in the common substructures is a constant independent of the input trees.

Identifier

0033361356 (Scopus)

Publication Title

Information Sciences

External Full Text Location

https://doi.org/10.1016/S0020-0255(99)00100-0

ISSN

00200255

First Page

367

Last Page

386

Issue

3

Volume

121

This document is currently not available here.

Share

COinS