CMU-CS-00-124
Computer Science Department
School of Computer Science, Carnegie Mellon University



CMU-CS-00-124

Spatial Join Selectivity Using Power Laws

Christof Faloutsos, Bernhard Seeger*, Agma Traina**, Caetano Traina, Jr.**

April 2000

CMU-CS-00-124.ps
CMU-CS-00-124.pdf


Keywords: Spatial join, spatial join selectivity, spatial data mining, data mining


We discovered a surprising law governing the spatial join selectivity across two sets of points. An example of such a spatial join is "find the libraries that are within 10 miles of schools". Our law dictates that the number of such qualifying pairs follows a power law, whose exponent we call "pair-count exponent" (PC). We show that this law also holds for self-spatial-joins ("find schools within 5 miles of other schools") in addition to the general case that the two point-sets are distinct. Our law holds for many real datasets, including diverse environments (geographic datasets, feature vectors from biology data, galaxy data from astronomy).

In addition, we introduce the concept of the Box-Occupancy-Product-Sum (BOPS) plot, and we show that it can compute the pair-count exponent in a timely manner, reducing the run time by orders of magnitude, from quadratic to linear. Due to the pair-count exponent and our analysis (Law 1), we can achieve accurate selectivity estimates in constant time (O(1)) without the need for sampling or other expensive operations. The relative error in selectivity is about 30% with our fast BOPS method, and even better (about 10%), if we use the slower, quadratic method.

19 pages

*Fachbereich Mathematik und Informatik, Universitaet Marburg, Germany
**Department of Computer Science, University of Sao Paulo at Sao Carlos, Brazil


Return to: SCS Technical Report Collection
School of Computer Science homepage

This page maintained by [email protected]