Counting twig matches in a tree
Authors:
- H.V. JagadishHJH.V. Jagadish
- Flip KornFKFlip Korn
- N. KoudasNKN. Koudas
- S. MuthukrishnanSMS. Muthukrishnan
- R. NgRNR. Ng
- D. SrivastavaDSD. Srivastava
- 13 November 2002
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10636382,p. 595-604
Abstract
Describes efficient algorithms for accurately estimating the number of matches of a small node-labeled tree, i.e. a twig, in a large node-labeled tree, using a summary data structure. This problem is of interest for queries on XML and other hierarchical data, to provide query feedback and for cost-based query optimization. Our summary data structure scalably represents approximate frequency information about twiglets (i.e. small twigs) in the data tree. Given a twig query, the number of matches is estimated by creating a set of query twiglets, and combining two complementary approaches: set hashing, used to estimate the number of matches of each query twiglet, and maximal overlap, used to combine the query twiglet estimates into an estimate for the twig query. We propose several estimation algorithms that apply these approaches on query twiglets formed using variations on different twiglet decomposition techniques. We present an extensive experimental evaluation using several real XML data sets, with a variety of twig queries. Our results demonstrate that accurate and robust estimates can be achieved, even with limited space.Keywords
This publication has 7 references indexed in Scilit:
- On the resemblance and containment of documents2002
- Selectivity estimation in the presence of alphanumeric correlations2002
- Finding interesting associations without support pruning2002
- Querying network directories1999
- Substring selectivity estimation1999
- Size-Estimation Framework with Applications to Transitive Closure and ReachabilityJournal of Computer and System Sciences, 1997
- Estimating alphanumeric selectivity in the presence of wildcardsACM SIGMOD Record, 1996