Abstract
The nearest neighbors (NN) algorithm is a traditional algorithm utilized in many research areas like computer graphics, classification and/or machine learning. This paper aims at the fixed-radius nearest neighbors algorithm in 2D space. The neighbors are searched within a circular neighborhood which is positioned in the bounded space. The radius of the circle is known in advance. The uniform grids can be efficiently utilized for a nearest points query acceleration. This paper presents a study comparing the square and the hexagonal uniform grids and their suitability for a circular neighborhood querying. The two algorithms checking the mutual position/intersection of a circle and a square or a hexagon are described. The tests show the supremacy of the hexagonal grid.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Samet, H.: The quadtree and related hierarchical data structures. ACM Comput. Surv. 16(2), 187–260 (1984)
Bédorf, J., Gaburov, E., Zwart, S.P.: A sparse octree gravitational N-body code that runs entirely on the GPU processor. J. Comput. Phys. 231(7), 2825–2839 (2012)
Yin, M., Li, S.: Fast BVH construction and refit for ray tracing of dynamic scenes. Multimedia Tools Appl. 72(2), 1823–1839 (2014)
Franklin, W.R.: Nearest Point Query on 184,088,599 Points in E3 with a Uniform Grid (2006). http://wrfranklin.org/Research/nearpt3/
Uher, V., Gajdoš, P., Ježowicz, T.: Solving nearest neighbors problem on GPU to speed up the Fruchterman-Reingold graph layout algorithm. In: 2015 IEEE 2nd International Conference on Cybernetics (CYBCONF), pp. 305–310. IEEE Press (2015)
Green, S.: Particle simulation using cuda. NVIDIA Whitepaper 6, 121–128 (2010)
Hoetzlein, R.: Fast fixed-radius nearest neighbors: interactive million-particle fluids. In: GPU Technology Conference (GTC) 2014 (2014)
Kalojanov, J., Slusallek, P.: A parallel algorithm for construction of uniform grids. In: 2009 Proceedings of the Conference on High Performance Graphics, HPG 2009, pp. 23–28. ACM, New York (2009)
Uher, V., Gajdoš, P., Ježowicz, T., Snášel, V.: Application of hexagonal coordinate systems for searching the K-NN in 2D space. In: Snášel, V., Abraham, A., Krömer, P., Pant, M., Muda, A.K. (eds.) Innovations in Bio-Inspired Computing and Applications. AISC, vol. 424, pp. 209–220. Springer, Heidelberg (2016)
Lester, L.N., Sandor, J.: Computer graphics on a hexagonal grid. Comput. Graph. 8(4), 401–409 (1984)
Haverkort, H.J.: Recursive tilings and space-filling curves with little fragmentation. CoRR abs/1002.1843 (2010)
Ben, J., Tong, X., Chen, R.: A spatial indexing method for the hexagon discrete global grid system. In: 2010 18th International Conference on Geoinformatics, pp. 1–5, June 2010
Ratschek, H., Rokne, J.: Test for intersection between circle and rectangle. Appl. Math. Lett. 6(4), 21–23 (1993)
Acknowledgment
This work was supported by The Ministry of Education, Youth and Sports from the National Programme of Sustainability (NPU II) project “IT4Innovations excellence in science - LQ1602”. This work was supported by SGS project, VSB-Technical University of Ostrava, under the grants no. SP2016/97 and no. SP2016/68.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Uher, V., Gajdoš, P., Snášel, V. (2017). Searching of Circular Neighborhoods in the Square and Hexagonal Regular Grids. In: Pan, JS., Snášel, V., Sung, TW., Wang, X. (eds) Intelligent Data Analysis and Applications. ECC 2016. Advances in Intelligent Systems and Computing, vol 535. Springer, Cham. https://doi.org/10.1007/978-3-319-48499-0_15
Download citation
DOI: https://doi.org/10.1007/978-3-319-48499-0_15
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-48498-3
Online ISBN: 978-3-319-48499-0
eBook Packages: EngineeringEngineering (R0)