The k-nn query algorithm is an important class of queryalgorithm in spatial database, the traditional k-nn query algorithm used the measurement distance and pruning strategy to search in the adopted index tree, the r...
详细信息
ISBN:
(纸本)9781424480333
The k-nn query algorithm is an important class of queryalgorithm in spatial database, the traditional k-nn query algorithm used the measurement distance and pruning strategy to search in the adopted index tree, the regional division algorithm based on the grid obtained the nearest neighbor objects by calculating the distance between the queried object and the data objects within the eight grids around the queried object, and carried on expanding inquiry scope outward layer by layer, in view of the advantage of the grid index, a new k-nn query algorithm based on the dynamic movement of spatial objects is proposed in this paper, it only carries on grid division to a small part of region around the queried object, when all the data objects in the current grid are already searched, make the cells in the grid empty, dynamically move the external data objects into the grid area continue to query according to the relative position of these objects, because the algorithm uses a fixed grid area to query the data objects in the whole region, so it can reduce the target storage space and the complexity degree of the algorithm calculation, the experiments show that the new queryalgorithm is superior to the traditional algorithms in the querying performance when the amount of data is increased, and the query efficiency is greatly increased.
暂无评论