Back to Search Start Over

Approximate Tree Matching in the Presence of Variable Length Don't Cares

Authors :
Zhang, K.Z.
Shasha, D.
Wang, J.T.L.
Source :
Journal of Algorithms; January 1994, Vol. 16 Issue: 1 p33-66, 34p
Publication Year :
1994

Abstract

Ordered labeled trees are trees in which the sibling order matters. This paper presents algorithms for three problems having to do with approximate matching for such trees with variable length don't cares (VLDCs). In strings, a VLDC symbol in the pattern may substitute for zero or more symbols in the data string. For example, if "com∗er" is the pattern, then the "∗" would substitute for the substring "put" when matching the data string "computer." Approximate VLDC matching in strings means that after the best possible substitution, the pattern still need not be the same as the data string for a match to be allowed. For example, "com∗er" matches "counter" within distance one (representing the cost of removing the "m" from "com∗er" and having the "∗" substitute for "unt"). We generalize approximate VLDC string matching to three algorithms for approximate VLDC matching on trees. The time complexity of our algorithms is O(|P| × |D| × min(depth(P), leaves(P)) × min(depth(D), leaves(D))) (where |P| and |D| are the number of nodes respectively of the pattern P and the data tree D), the same as for the best approximate tree matching algorithm without VLDCs previously reported.Copyright 1994, 1999 Academic Press

Details

Language :
English
ISSN :
01966774 and 10902678
Volume :
16
Issue :
1
Database :
Supplemental Index
Journal :
Journal of Algorithms
Publication Type :
Periodical
Accession number :
ejs794150
Full Text :
https://doi.org/10.1006/jagm.1994.1003