Figure 2: Example of MinDist and MinMaxDist
Roussopoulos et al.'s knn search used the squares of Euclidean distances as a measurement between objects. They derive MINDIST and MINMAXDIST to measure the optimistic and pessimistic distances between a query point and an MBR. Figure 2 shows the MINDIST and MINMAXDIST in a 2D case.
The MINDIST is the minimum possible distance between a query point and an MBR, such that there is no child rectangle or data point inside the MBR that can have a smaller distance value than this. The mathematical calculation for MINDIST between a query point, P, and an MBR, R is:
where n is the number of dimensions of P and R,
is the coordinate of point P in ith dimension, and
where
and
are the minimum and maximum values of the ith dimension of
rectangle R.
If P is located inside the rectangle R or on the perimeter of R, then the
MINDIST = 0.
The MINMAXDIST is the minimum distance that guarantees a data object can be found within the distance. The MINMAXDIST is more computationally intensive than the MINDIST shown by the calculations in [10]. For the definition of MINMAXDIST, we let the readers refer to the Roussopoulos et al. paper, as our paper concentrates on using MINDIST for knn search.
Roussopoulos et al. proposed using a branchlist to browse a node to see whether it has any children within the maximum distance of the knn. The branchlist holds the MINDIST and MINMAXDIST of each MBR to the query object. The branchlist is sorted in ascending order based on the MINDIST value. Three pruning strategies were suggested for branchlists and the knn distance list. They are used to reduce the search path for knn