skip to main content
10.1145/3437120.3437343acmotherconferencesArticle/Chapter ViewAbstractPublication PagespciConference Proceedingsconference-collections
short-paper

An Improved GPU-based Algorithmfor Processing the k Nearest Neighbor Query

Published: 04 March 2021 Publication History

Abstract

The k Nearest Neighbor (k-NN) query is a common spatial query that appears in several big data applications. We propose and implement a new GPU-based algorithm for the k-NN query, which improves our previous Symmetric Progression Partitioning method (SPP) by adding a heap buffer. We experimentally prove that the addition of heap speeds up the k-NN query, especially in larger values of k. Using random, synthetic and real datasets, we present an extensive experimental performance comparison against two of our algorithms. This comparison shows that the new algorithm excels in all the conducted experiments.

References

[1]
G. Barlas. 2014. Multicore and GPU Programming: An Integrated Approach (1 ed.). Morgan Kaufmann.
[2]
R.J. Barrientos, J.I. Gómez, C. Tenllado, M. Prieto-Matías, and M. Marín. 2011. kNN Query Processing in Metric Spaces Using GPUs. In Euro-Par Conference. 380–392.
[3]
R.J. Barrientos, F. Millaguir, J.L. Sánchez, and E. Arias. 2017. GPU-based exhaustive algorithms processing kNN queries. The Journal of Supercomputing 73, 10 (2017), 4611–4634.
[4]
A. Eldawy and M. F. Mokbel. 2015. SpatialHadoop: A MapReduce framework for spatial data. In ICDE Conference. 1352–1363.
[5]
V. Garcia, E. Debreuve, F. Nielsen, and M. Barlaud. 2010. K-nearest neighbor search: Fast GPU-based implementations and application to high-dimensional feature matching. In ICIP Conference. 3757–3760.
[6]
V. Garcia, É. Debreuve, and M. Barlaud. 2018. Fast k nearest neighbor search using GPU. http://vincentfpgarcia.github.io/kNN-CUDA/
[7]
S.B. Imandoust and Mohammad Bolandraftar. 2013. Application of K-nearest neighbor (KNN) approach for predicting economic events theoretical background. Int J Eng Res Appl 3 (01 2013), 605–610.
[8]
K. Kato and T. Hosino. 2012. Multi-GPU algorithm for k-nearest neighbor problem. Concurrency and Computation: Practice and Experience 24, 1(2012), 45–53.
[9]
I. Komarov, A. Dashti, and R.M. D’Souza. 2014. Fast k-NNG Construction with GPU-Based Quick Multi-Select. PloS ONE 9, 5 (2014), 1–9.
[10]
Q. Kuang and L. Zhao. 2009. A Practical GPU Based KNN Algorithm. In SCSCT Conference. 151–155.
[11]
S. Liang, C. Wang, Y. Liu, and L. Jian. 2009. CUKNN: A parallel implementation of K-nearest neighbor on CUDA-enabled GPU. In YC-ICT Conference. 415–418.
[12]
NVIDIA. 2020. NVIDIA CUDA Runtime API. https://docs.nvidia.com/cuda/cuda-runtime-api/index.html
[13]
G. Roumelis, A. Corral, M. Vassilakopoulos, and Y. Manolopoulos. 2016. New plane-sweep algorithms for distance-based join queries in spatial databases. GeoInformatica 20, 4 (2016), 571–628.
[14]
G. Roumelis, P. Velentzas, M. Vassilakopoulos, A. Corral, Athanasios Fevgas, and Y. Manolopoulos. 2019. Parallel processing of spatial batch-queries using xBR+-trees in solid-state drives. Cluster Computing (2019).
[15]
P. Velentzas, M. Vassilakopoulos, and A. Corral. 2020. In-memory k Nearest Neighbor GPU-based Query Processing. In GISTAM - Proc. of the 6st Int. Conf. on Geographical Information Systems Theory, Applications and Management, Prague, Czech Republic, 7-9 May, 2020. SciTePress, 310–317.
[16]
P. Velentzas, M. Vassilakopoulos, and A. Corral. 2020. A Partitioning GPU-based Algorithm for Processing the k Nearest-Neighbor Query. To appear. In MEDES ’20: Proc. of the 12th Int. Conf. on Management of Digital EcoSystem.

Cited By

View all
  • (2023)GERWkNN: GPU-accelerated Exact Random Walk-based kNN Query in Large GraphsProceedings of the 2023 5th International Conference on Big Data Engineering10.1145/3640872.3640880(47-54)Online publication date: 17-Nov-2023
  • (2023)GPU-Based Algorithms for Processing the k Nearest-Neighbor Query on Spatial Data Using Partitioning and Concurrent Kernel ExecutionInternational Journal of Parallel Programming10.1007/s10766-023-00755-8Online publication date: 21-Jul-2023

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
PCI '20: Proceedings of the 24th Pan-Hellenic Conference on Informatics
November 2020
433 pages
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 04 March 2021

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. GPU algorithms
  2. Nearest Neighbors
  3. Parallel computing
  4. Partitioning algorithms
  5. Spatial query

Qualifiers

  • Short-paper
  • Research
  • Refereed limited

Conference

PCI 2020
PCI 2020: 24th Pan-Hellenic Conference on Informatics
November 20 - 22, 2020
Athens, Greece

Acceptance Rates

Overall Acceptance Rate 190 of 390 submissions, 49%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)8
  • Downloads (Last 6 weeks)1
Reflects downloads up to 15 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2023)GERWkNN: GPU-accelerated Exact Random Walk-based kNN Query in Large GraphsProceedings of the 2023 5th International Conference on Big Data Engineering10.1145/3640872.3640880(47-54)Online publication date: 17-Nov-2023
  • (2023)GPU-Based Algorithms for Processing the k Nearest-Neighbor Query on Spatial Data Using Partitioning and Concurrent Kernel ExecutionInternational Journal of Parallel Programming10.1007/s10766-023-00755-8Online publication date: 21-Jul-2023

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media