Skip to main content
Log in

The direction-constrained k nearest neighbor query

Dealing with spatio-directional objects

  • Published:
GeoInformatica Aims and scope Submit manuscript

Abstract

Finding k nearest neighbor objects in spatial databases is a fundamental problem in many geospatial systems and the direction is one of the key features of a spatial object. Moreover, the recent tremendous growth of sensor technologies in mobile devices produces an enormous amount of spatio-directional (i.e., spatially and directionally encoded) objects such as photos. Therefore, an efficient and proper utilization of the direction feature is a new challenge. Inspired by this issue and the traditional k nearest neighbor search problem, we devise a new type of query, called the direction-constrained k nearest neighbor (DCkNN) query. The DCkNN query finds k nearest neighbors from the location of the query such that the direction of each neighbor is in a certain range from the direction of the query. We develop a new index structure called MULTI, to efficiently answer the DCkNN query with two novel index access algorithms based on the cost analysis. Furthermore, our problem and solution can be generalized to deal with spatio-circulant dimensional (such as a direction and circulant periods of time such as an hour, a day, and a week) objects. Experimental results show that our proposed index structure and access algorithms outperform two adapted algorithms from existing kNN algorithms.

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

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19

Similar content being viewed by others

Notes

  1. PanoGenerator, iOS (https://itunes.apple.com/us/app/panogenerator/id855946588).

  2. The minimum and the maximum values are the same for a circulant dimension.

  3. c , ⊇ c , and ∋ c are similarly defined.

  4. Arithmetically, (θ 1± c θ 2) is identical to ((θ 1±θ 2)∓360⋅x), where x is a non-negative integer for the resulting direction value to be between 0 and 360.

  5. To replace two neighboring odd R-trees, we need a structure using 2(2h−1)N/B space which is too expensive.

  6. Under the uniform direction assumption. The justification for the assumption can be found at the end of Section 5.1.1 and Fig. 10.

  7. You can download the SD spatio-directional object dataset at http://islab.kaist.ac.kr/mjlee/SDset

  8. http://foursquare.com

  9. http://geonames.usgs.gov/

References

  1. Avrithis Y, Kalantidis Y, Tolias G, Spyrou E (2010) Retrieving landmark and non-landmark images from community photo collections. In: proceedings of ACM multimedia (full paper) (MM 2010), Firenze, Italy

  2. Beckmann N, Kriegel H-P, Schneider R, Seeger B (1990) The r*-tree: an efficient and robust access method for points and rectangles. In: Proceedings of the 1990 ACM SIGMOD international conference on Management of data, SIGMOD ’90, pp 322–331. ACM, New York

    Google Scholar 

  3. Bentley JL (1975) Multidimensional binary search trees used for associative searching. Commun ACM 18(9):509–517

    Article  Google Scholar 

  4. Berchtold S, Böhm C, Keim DA, Kriegel H-P (1997) A cost model for nearest neighbor search in high-dimensional data space. In: Proceedings of ACM symposium on principles of database systems (PODS), pp 78–86

  5. Berchtold S, Keim DA, Kriegel H-P (1996) The x-tree : an index structure for high-dimensional data. In: VLDB, pp 28–39

  6. Böhm C, Berchtold S, Keim DA (2001) Searching in high-dimensional spaces Index structures for improving the performance of multimedia databases. ACM Comput Surv 33(3):322–373

    Article  Google Scholar 

  7. de Almeida VT, Güting RH (2005) Indexing the trajectories of moving objects in networks. GeoInformatica 9(1):33–60

    Article  Google Scholar 

  8. Finkel RA, Bentley JL (1974) Quad trees: a data structure for retrieval on composite keys. Acta Inf 4:1–9

    Article  Google Scholar 

  9. Friedman JH, Bentley JL, Finkel RA (1977) An algorithm for finding best matches in logarithmic expected time. ACM Trans Math Softw 3(3):209–226

    Article  Google Scholar 

  10. Guttman A (1984) R-trees: A dynamic index structure for spatial searching. In: Proceedings of the 1984 ACM SIGMOD international conference on Management of data, SIGMOD ’84, pp 47–57. ACM, New York

    Google Scholar 

  11. Hjaltason GR, Samet H (1999) Distance browsing in spatial databases. ACM Trans Database Syst 24(2):265–318

    Article  Google Scholar 

  12. Hu Q, Lim A (2014) An iterative three-component heuristic for the team orienteering problem with time windows. Eur J Oper Res 232(2):276–286

    Article  Google Scholar 

  13. Ibrahim K, Faloutsos C (1994) r-tree: Hilbert an improved r-tree using fractals. In: VLDB, pp 500–509

  14. Katayama N, Satoh S (1997) The sr-tree: an index structure for high-dimensional nearest neighbor queries. In: SIGMOD Conference, pp 369–380

  15. Le TTT, Nickerson BG (2008) Efficient search of moving objects on a planar graph. In: Proceedings of the 16th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, GIS ’08, pp 41:1–41:4. ACM, New York

  16. Lee K-W, Choi D-W, Chung C-W (2013) Dart: An efficient method for direction-aware bichromatic reverse k nearest neighbor queries. In: SSTD, pp 295–311

  17. Li G, Feng J, Xu J (2012) Desks: Direction-aware spatial keyword search. In: ICDE, pp 474–485

  18. Nascimento MA, Silva JRO (1998) Towards historical r-trees. In: Proceedings of the 1998 ACM symposium on applied computing, pp 235–240. ACM

  19. Patroumpas K, Sellis TK (2009) Monitoring orientation of moving objects around focal points. In: SSTD, pp 228–246

  20. Pfoser D, Jensen CS, Theodoridis Y (2000) Novel approaches in query processing for moving object trajectories. In: VLDB, pp 395–406

  21. Roussopoulos N, Kelley S, Vincent F (1995) Nearest neighbor queries. In: Proceedings of the 1995 ACM SIGMOD international conference on management of data, SIGMOD ’95, pp 71–79

  22. Szeliski R (2006) Image alignment and stitching: a tutorial. Found Trends Comput Graph Vis 2(1):1–104

    Article  Google Scholar 

  23. Tao Y, Papadias D (2001) Mv3r-tree: A spatio-temporal access method for timestamp and interval queries. In: VLDB, pp 431–440

  24. Tao Y, Zhang J, Papadias D, Mamoulis N (2004) An efficient cost model for optimization of nearest neighbor search in low and medium dimensional spaces. IEEE Trans Knowl Data Eng 16(10):1169– 1184

    Article  Google Scholar 

  25. Theoderidis Y, Vazirgiannis M, Sellis T (1996) Spatio-temporal indexing for large multimedia applications. In: Proceedings of the Third IEEE International Conference on Multimedia Computing and Systems, 1996, pp 441–448

  26. Vansteenwegen P, Souffriau W, Berghe GV, Oudheusden DV (2011) The city trip planner: an expert system for tourists. Expert Syst Appl 38(6):6540–6546

    Article  Google Scholar 

  27. Zhou P, Zhang D, Salzberg B, Cooperman G, Kollios G (2005) Close pair queries in moving object databases. In: GIS, pp 2–11

Download references

Acknowledgments

This work was supported by Defense Acquisition Program Administration and Agency for Defense Development under the contract UD140022PD, Korea.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chin-Wan Chung.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Lee, MJ., Choi, DW., Kim, S. et al. The direction-constrained k nearest neighbor query. Geoinformatica 20, 471–502 (2016). https://doi.org/10.1007/s10707-016-0245-2

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10707-016-0245-2

Keywords