Generalized substring selectivity estimation

dc.contributor.authorChen, Zhiyuan
dc.contributor.authorKorn, Flip
dc.contributor.authorKoudas, Nick
dc.contributor.authorMuthukrishnan, S.
dc.date.accessioned2025-06-05T14:02:30Z
dc.date.available2025-06-05T14:02:30Z
dc.date.issued2003-02-01
dc.description.abstractIn a variety of settings from relational databases to LDAP to Web applications, there is an increasing need to quickly and accurately estimate the count of tuples (LDAP entries, Web documents, etc.) matching Boolean substring queries. In providing such selectivity estimates, the correlation between different occurrences of substrings is crucial. Selectivity estimation for generalized Boolean queries has not been studied previously; our own prior work, which is discussed and extended herein, applies to the case of one-dimensional Boolean queries [CKKM00]. Existing methods for the case of multidimensional conjunctive queries approximate selectivities by explicitly storing cross-counts of frequently co-occurring combinations of substrings; estimates are obtained by parsing the query into multidimensional substrings corresponding to stored cross-counts and applying probabilistic formulae. The major problem with these methods is that the number of cross-counts stored by known methods increases exponentially with the number of dimensions (a “space dimensionality explosion”) due to the need to capture the correlation amongst the dimensions. Hence, given a limited amount of space, none of the existing methods can reliably give accurate estimates. Moreover, these methods do not generalize to Boolean queries gracefully. We present a novel approach to selectivity estimation for generalized Boolean substring queries with a focus on the two cases of (1) conjunctive multidimensional and (2) Boolean queries. Our approach does not explicitly store cross-counts, but rather generates them on-the-fly. We employ a Monte Carlo technique called set hashing to succinctly represent the set of tuples containing a given substring as a signature vector of hash values; any combination of set hash signatures gives a cross-count when intersected. Thus, using only linear storage, a large number of cross-counts can be generated including those for complex co-occurrences of substrings. The cross-counts generated by our methods are not exact, but they are adequate for selectivity estimation. We present results from an extensive experimental evaluation of our approach on real data sets. For the case of multidimensional conjunctive queries, our approach achieves better accuracy by an order of magnitude, and scales much more gracefully to higher dimensions, than existing methods. Surprisingly, even though our approach involves generating cross-counts on-the-fly, estimation is very fast, taking 200μs on a data set of size 6MB. For the case of Boolean queries, our experiments also demonstrate the superiority of this approach over a straightforward independence-based approach wherein correlations are not captured.
dc.description.urihttps://www.sciencedirect.com/science/article/pii/S0022000002000314
dc.format.extent35 pages
dc.genrejournal articles
dc.identifierdoi:10.13016/m2vb1t-obkn
dc.identifier.citationChen, Zhiyuan, Flip Korn, Nick Koudas, and S. Muthukrishnan. “Generalized Substring Selectivity Estimation.” Journal of Computer and System Sciences 66, no. 1 (February 1, 2003): 98–132. https://doi.org/10.1016/S0022-0000(02)00031-4.
dc.identifier.urihttps://doi.org/10.1016/S0022-0000(02)00031-4
dc.identifier.urihttp://hdl.handle.net/11603/38536
dc.language.isoen_US
dc.publisherElsevier
dc.relation.isAvailableAtThe University of Maryland, Baltimore County (UMBC)
dc.relation.ispartofUMBC College of Engineering and Information Technology Dean's Office
dc.relation.ispartofUMBC Information Systems Department
dc.rightsThis item is likely protected under Title 17 of the U.S. Copyright Law. Unless on a Creative Commons license, for uses protected by Copyright Law, contact the copyright holder or the author.
dc.subjectUMBC Cybersecurity Institute
dc.subjectUMBC Mobile, Pervasive and Sensor Computing Lab (MPSC Lab)
dc.subjectUMBC Mobile, Pervasive and Sensor Computing Lab (MPSC Lab)
dc.subjectUMBC Cybersecurity Institute
dc.titleGeneralized substring selectivity estimation
dc.typeText
dcterms.creatorhttps://orcid.org/0000-0002-6984-7248

Files