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.



















Similar content being viewed by others
Notes
PanoGenerator, iOS (https://itunes.apple.com/us/app/panogenerator/id855946588).
The minimum and the maximum values are the same for a circulant dimension.
⊃ c , ⊇ c , and ∋ c are similarly defined.
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.
To replace two neighboring odd R-trees, we need a structure using 2(2h−1)N/B space which is too expensive.
You can download the SD spatio-directional object dataset at http://islab.kaist.ac.kr/mjlee/SDset
References
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
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
Bentley JL (1975) Multidimensional binary search trees used for associative searching. Commun ACM 18(9):509–517
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
Berchtold S, Keim DA, Kriegel H-P (1996) The x-tree : an index structure for high-dimensional data. In: VLDB, pp 28–39
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
de Almeida VT, Güting RH (2005) Indexing the trajectories of moving objects in networks. GeoInformatica 9(1):33–60
Finkel RA, Bentley JL (1974) Quad trees: a data structure for retrieval on composite keys. Acta Inf 4:1–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
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
Hjaltason GR, Samet H (1999) Distance browsing in spatial databases. ACM Trans Database Syst 24(2):265–318
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
Ibrahim K, Faloutsos C (1994) r-tree: Hilbert an improved r-tree using fractals. In: VLDB, pp 500–509
Katayama N, Satoh S (1997) The sr-tree: an index structure for high-dimensional nearest neighbor queries. In: SIGMOD Conference, pp 369–380
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
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
Li G, Feng J, Xu J (2012) Desks: Direction-aware spatial keyword search. In: ICDE, pp 474–485
Nascimento MA, Silva JRO (1998) Towards historical r-trees. In: Proceedings of the 1998 ACM symposium on applied computing, pp 235–240. ACM
Patroumpas K, Sellis TK (2009) Monitoring orientation of moving objects around focal points. In: SSTD, pp 228–246
Pfoser D, Jensen CS, Theodoridis Y (2000) Novel approaches in query processing for moving object trajectories. In: VLDB, pp 395–406
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
Szeliski R (2006) Image alignment and stitching: a tutorial. Found Trends Comput Graph Vis 2(1):1–104
Tao Y, Papadias D (2001) Mv3r-tree: A spatio-temporal access method for timestamp and interval queries. In: VLDB, pp 431–440
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
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
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
Zhou P, Zhang D, Salzberg B, Cooperman G, Kollios G (2005) Close pair queries in moving object databases. In: GIS, pp 2–11
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
Corresponding author
Rights and permissions
About this article
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
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10707-016-0245-2