login

ATreeGrep: approximate searching in unordered trees

Published 25 June 2003
Dennis Shasha, J.T.L. Wang, Huiyuan Shan, Kaizhong Zhang
Citations49

TL;DR

This paper presents an approach to the nearest neighbor search problem for unordered labeled trees, a tree in which each node has a string label and the parent-child relationship is significant, but the order among siblings is unimportant.

Abstract

An unordered labeled tree is a tree in which each node has a string label and the parent-child relationship is significant, but the order among siblings is unimportant. This paper presents an approach to the nearest neighbor search problem for these trees. Given a database D of unordered labeled trees and a query tree Q, the goal is to find those trees in D that "approximately" contain Q. Our approach is based on storing the paths of the trees in a suffix array and then counting the number of mismatching paths between the query tree and a data tree. To speed up a search, we use a hash-based technique to filter out unqualified data trees at an early stage of the search. Experimental results obtained by running our techniques on phylogenetic trees and synthetic data demonstrate the good performance of the proposed approach. We also discuss the use of our work in XML and scientific database management.

Keywords

Computer ScienceBiochemistry, Genetics and Molecular Biology