A system, method, and associated computer product improve the search of
multidimensional databases. The present system determines a near-optimal
grid index that is used to locate a geometric shape in a spatial
database. More particularly, the present system improves the technique of
sampling data for defining the grid cell size in a grid for a given data
set, minimizing the number times the data set needs to be sampled,
thereby reducing the time to compute the cost of alternative grid index
parameters.