Skip to main content

Application of Hexagonal Coordinate Systems for Searching the K-NN in 2D Space

  • Conference paper
  • First Online:
Innovations in Bio-Inspired Computing and Applications

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 424))

Abstract

Efficient searching of the k-nearest neighbors (k-NN) is a widely discussed problem. Most of the known 2D methods is based on division of a space to some quads or rectangular clusters. It is convenient for simple orthogonal querying of the space. However, a radius of neighbourhood is circular, thus the non complying quads have to be eliminated. This paper describes a novel approach of searching k-NN using hexagonal clustering of the 2D unordered point clouds. The hexagonal grid fully fills the 2D space as well. The shape of a hexagon is closer to the circular one and hexagonal coordinate systems are efficiently used to simply address the surrounding hexagons intersected by neighbourhood of a point. The paper contains performance tests of the proposed algorithm.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Tsaparas, P.: Nearest neighbor search in multidimensional spaces, Technical Report (1999)

    Google Scholar 

  2. Berg, M.D., Cheong, O., Kreveld, M.V., Overmars, M.: Computational Geometry: Algorithms and Applications, 3rd ed. Santa Clara, CA, USA: Springer TELOS (2008)

    Google Scholar 

  3. Kim, Y.J., Patel, J.: Performance comparison of the \(r^*\)-tree and the quadtree for knn and distance join queries. IEEE Trans. Knowl. Data Eng. 22(7), 1014–1027 (2010)

    Article  Google Scholar 

  4. Yin, M., Li, S.: Fast bvh construction and refit for ray tracing of dynamic scenes. Multimed. Tools Appl. 72(2), 1823–1839 (2014)

    Article  Google Scholar 

  5. Havran, V., Kopal, T., Bittner, J., Žára, J.: Fast robust bsp tree traversal algorithm for ray tracing. J. Graph. Tools 2(4), 15–23 (1998)

    Article  MATH  Google Scholar 

  6. Sample, N., Haines, M., Arnold, M., Purcell, T., Purcell, T.: Optimizing search strategies in k-d trees (2001)

    Google Scholar 

  7. Kybic, J., Vnučko, I.: Approximate all nearest neighbor search for high dimensional entropy estimation for image registration. Signal Process. 92(5), 1302–1316 (2012)

    Article  Google Scholar 

  8. Lawder, J.: The application of space-filling curves to the storage and retrieval of multi-dimensional data (2000)

    Google Scholar 

  9. Gajdos, P., Jezowicz, T., Uher, V., Dohnalek, P.: A parallel fruchtermanreingold algorithm optimized for fast visualization of large graphs and swarms of data. Swarm Evolutionary Comput. (2015)

    Google Scholar 

  10. Skopal, T., Krátký, M., Pokorný, J., Snášel, V.: A new range query algorithm for universal b-trees. Inf. Syst. 31(6), 489–511 (2006)

    Article  Google Scholar 

  11. Connor, M., Kumar, P.: Fast construction of k-nearest neighbor graphs for point clouds. IEEE Trans. Vis. Comput. Graph. 16(4), 599–608 (2010)

    Article  Google Scholar 

  12. Uher, V., Gajdos, P., Jezowicz, 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, June 2015

    Google Scholar 

  13. Patel, A.J.: Red blob games—hexagonal grids. http://www.redblobgames.com/grids/hexagons/. Accessed Sep 2015

  14. Patel, A.J.: Amit’s thoughts on grids. http://www-cs-students.stanford.edu/amitp/game-programming/grids/. Accessed Sep 2015

  15. Grünbaum, B., Shephard, G.: Tilings and Patterns. ser. Dover Books on Mathematics Series. Dover Publications, New York (2013)

    MATH  Google Scholar 

  16. Rahmati, Z., King, V., Whitesides, S.: Kinetic data structures for all nearest neighbors and closest pair in the plane. In: Proceedings of the Twenty-ninth Annual Symposium on Computational Geometry, ser. SoCG ’13, pp. 137–144. ACM, New York, NY, USA (2013)

    Google Scholar 

  17. Wang, D., Xu, L., Peng, J., Robila, S.: Subdividing hexagon-clustered wireless sensor networks for power-efficiency. In: Proceedings of the 2009 WRI International Conference on Communications and Mobile Computing, ser. CMC ’09, vol. 02, pp. 454–458. IEEE Computer Society, Washington, DC, USA (2009)

    Google Scholar 

  18. Salzmann, J., Behnke, R., Timmermann, D.: Hex-mascle x2013; hexagon based clustering with self healing abilities. In: Wireless Communications and Networking Conference (WCNC), 2011 IEEE, pp. 528–533, March 2011

    Google Scholar 

  19. Carr, D.B., Littlefield, R.J., Nichloson, W.L.: Scatterplot matrix techniques for large n. In: Proceedings of the Seventeenth Symposium on the Interface of Computer Sciences and Statistics on Computer Science and Statistics, pp. 297–306. Elsevier North-Holland Inc, New York, NY, USA (1986)

    Google Scholar 

  20. Chen, H.-L., Chang, Y.-I.: Neighbor-finding based on space-filling curves. Inf. Syst. 30(3), 205–226 (2005)

    Article  Google Scholar 

Download references

Acknowledgments

This work was supported by the IT4Innovations Centre of Excellence project (CZ.1.05/1.1.00/02.0070), funded by the European Regional Development Fund and the national budget of the Czech Republic via the Research and Development for Innovations Operational Programme and by Project SP2015/146 “Parallel processing of Big data 2” of the Student Grand System, VŠB—Technical University of Ostrava.

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Vojtěch Uher or Petr Gajdoš .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Uher, V., Gajdoš, P., Ježowicz, T., Snášel, V. (2016). 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. (eds) Innovations in Bio-Inspired Computing and Applications. Advances in Intelligent Systems and Computing, vol 424. Springer, Cham. https://doi.org/10.1007/978-3-319-28031-8_18

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-28031-8_18

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-28030-1

  • Online ISBN: 978-3-319-28031-8

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics