A GPU Accelerated Update Efficient Index for kNN Queries in Road Networks

The k nearest neighbor (kNN) query in road networks is a traditional query type in spatial databases. This query has found new applications in the fast-growing location-based services, e.g., finding the k nearest Uber cars of a user for ridesharing. KNN queries in these applications are non-trivial to process due to the frequent location updates of data objects (e.g., movements of the cars). This calls for novel spatial indexes with high efficiency in not only query processing but also update handling. To address this need, we propose an index structure that uses a "lazy update" strategy to reduce the costs of update handling without sacrificing query efficiency or answer accuracy. We cache the location updates of data objects and only update the corresponding entries in the index when they are queried. We further propose a kNN query algorithm based on this index. This algorithm takes advantage of the strengths of both the CPU and the GPU. It first identifies the queried region and updates the index over this region using the GPU. Then, it uses the GPU to query the index and produce a candidate result set, which is later refined by the CPU to obtain the final query answer. We conduct experiments on real data and compare the proposed algorithm with state-of-the-art kNN algorithms. The experimental results show that the proposed algorithm outperforms the baseline algorithms by orders of magnitude in query time.

[1]  Panos Kalnis,et al.  Collective Travel Planning in Spatial Networks , 2016, IEEE Transactions on Knowledge and Data Engineering.

[2]  Guoliang Li,et al.  V-Tree: Efficient kNN Search on Moving Objects with Road-Network Constraints , 2017, 2017 IEEE 33rd International Conference on Data Engineering (ICDE).

[3]  张锐,et al.  INSQ: An Influential Neighbor Set Based Moving kNN Query Processing System , 2016 .

[4]  Yufei Tao,et al.  Query Processing in Spatial Network Databases , 2003, VLDB.

[5]  Wang Yi,et al.  Processing Moving kNN Queries Using Influential Neighbor Sets , 2014, Proc. VLDB Endow..

[6]  Vipin Kumar,et al.  A Fast and High Quality Multilevel Scheme for Partitioning Irregular Graphs , 1998, SIAM J. Sci. Comput..

[7]  Simonas Saltenis,et al.  Trees or grids?: indexing moving objects in main memory , 2009, GIS.

[8]  Kai Zheng,et al.  PNN query processing on compressed trajectories , 2011, GeoInformatica.

[9]  Christian S. Jensen,et al.  Parallel main-memory indexing for moving-object query and update workloads , 2012, SIGMOD Conference.

[10]  Shunzhi Zhu,et al.  Discovery of probabilistic nearest neighbors in traffic-aware spatial networks , 2017, World Wide Web.

[11]  Ken C. K. Lee,et al.  Fast object search on road networks , 2009, EDBT '09.

[12]  Guoyang Chen,et al.  Sweet KNN: An Efficient KNN on GPU through Reconciliation between Redundancy Removal and Regularity , 2017, 2017 IEEE 33rd International Conference on Data Engineering (ICDE).

[13]  Ge Yu,et al.  Continuous visible k nearest neighbor query on moving objects , 2014, Inf. Syst..

[14]  Mauricio Marín,et al.  kNN Query Processing in Metric Spaces Using GPUs , 2011, Euro-Par.

[15]  Hanan Samet,et al.  Indexing methods for moving object databases: games and other applications , 2013, SIGMOD '13.

[16]  Christian S. Jensen,et al.  The Islands Approach to Nearest Neighbor Querying in Spatial Networks , 2005, SSTD.

[17]  Cyrus Shahabi,et al.  Voronoi-Based K Nearest Neighbor Search for Spatial Network Databases , 2004, VLDB.

[18]  Zhen He,et al.  Real-time continuous intersection joins over large sets of moving objects using graphic processing units , 2014, The VLDB Journal.

[19]  Kian-Lee Tan,et al.  G-Tree: An Efficient and Scalable Index for Spatial Search on Road Networks , 2015, IEEE Transactions on Knowledge and Data Engineering.

[20]  Shuo Shang,et al.  Best point detour query in road networks , 2010, GIS '10.

[21]  Jens Dittrich,et al.  Indexing Moving Objects Using Short-Lived Throwaway Indexes , 2009, SSTD.

[22]  Panos Kalnis,et al.  Trajectory Similarity Join in Spatial Networks , 2017, Proc. VLDB Endow..

[23]  Frank Nielsen,et al.  K-nearest neighbor search: Fast GPU-based implementations and application to high-dimensional feature matching , 2010, 2010 IEEE International Conference on Image Processing.