Abstract
Let S be a set of n points in a fixed axis-parallel rectangle \(R\subseteq \Re^{2}\), i.e. in the two-dimensional space (2D). Assuming that those points are stored in an R-tree, this paper presents several algorithms for finding the empty rectangle in R with the largest area, sides parallel to the axes of the space, and containing only a query point q. This point can not be part of S, that is, it is not stored in the R-tree. All algorithms follow the basic idea of discarding part of the points of S, in such a way that the problem can be solved only considering the remaining points. As a consequence, the algorithms only have to access a very small portion of the nodes (disk blocks) of the R-tree, saving main memory resources and computation time. We provide formal proofs of the correctness of our algorithms and, in order to evaluate the performance of the algorithms, we run an extensive set of experiments using synthetic and real data. The results have demonstrated the efficiency and scalability of our algorithms for different dataset configurations.
Similar content being viewed by others
Notes
computeER only computes LQMER, instead of computing all QMERs.
1 K = 1,000 points
References
Aggarwal A, Suri S (1987) Fast algorithms for computing the largest empty rectangle. In: Proceedings of SCG ’87. ACM, pp 278–290
Augustine J, Das S, Maheshwari A, Nandy SC, Roy S, Sarvattomananda S (2010) Recognizing the largest empty circle and axis-parallel rectangle in a desired location. CoRR abs/1004.0558
Augustine J, Das S, Maheshwari A, Nandy SC, Roy S, Sarvattomananda S (2010) Querying for the largest empty geometric object in a desired location. CoRR abs/1004.0558v2
Augustine J, Putnam B, Roy S (2010) Largest empty circle centered on a query line. J Discrete Algorithms 8(2):143–153
Augustine J, Das S, Maheshwari A, Nandy SC, Roy S, Sarvattomananda S (2013) Localized geometric query problems. Comput Geom 46(3):340–357
Beckmann N, Kriegel H, Schneider R, Seeger B (1990) The R*-tree: An efficient and robust access method for points and rectangles, In: Garcia-Molina H, Jagadish HV (eds) Proceedings of SIGMOD ’09. ACM Press, pp 322–331
Böhm C, Kriegel H.-P (2001) Determining the convex hull in large multidimensional databases. In: Proceedings of DaWaK ’01. Springer, pp 294–306
Börzsönyi S, Kossmann D, Stocker K (2001) The skyline operator. In: Proccedings of ICDE ’01. pp 421–430
Chazelle B, Drysdalet RL, Lee DT (1986) Computing the largest empty rectangle. SIAM J Comput 15:300–315
Chew LP, Drysdale RLS (1986) Finding largest empty circles with location constraints. Tech. Rep. PCS-TR86-130, Dartmouth College, Computer Science, Hanover, NH
Corral A, Manolopoulos Y, Theodoridis Y, Vassilakopoulos M (2004) Algorithms for processing k-closest-pair queries in spatial databases. Data Knowl Eng 49(1):67–104
De M, Nandy SC (2011) Inplace algorithm for priority search tree and its use in computing largest empty axis-parallel rectangle. CoRR abs/1104.3076
Dellis E, Seeger B (2007) Efficient computation of reverse skyline queries. In: Proceedings of VLDB ’07. ACM, pp 291–302
Edmonds J, Gryz J, Liang D, Miller RJ (2003) Mining for empty spaces in large data sets. Theor Comput Sci 296:435–452
Gaede V, Günther O (1998) Multidimensional access methods. ACM Comput Surv 30(2):170–231
Gutiérrez G, Paramá J (2012) Finding the largest empty rectangle containing only a query point in large multidimensional databases. In: Proceedings of SSDBM 2012. Springer
Guttman A (1984) R-trees: A dynamic index structure for spatial searching. In: Proceedings of SIGMOD ’84, ACM, pp 47–57
Hjaltason GR, Samet H (1998) Incremental distance join algorithms for spatial databases. In: Proceedings of SIGMOD ’98, ACM, pp 237–248
Kaplan H, Mozes S, Nussbaum Y, Sharir M (2012) Submatrix maximum queries in monge matrices and monge partial matrices, and their applications. In: Proceedings of SODA 2012, SIAM, pp 338–355
Kaplan H, Sharir M (2012) Finding the maximal empty disk containing a query point. In: Proceedings of SCG 2012, SoCG ’12. ACM, New York, NY, USA, pp 287–292
Manolopoulos Y, Nanopoulos A, Papadopoulos AN, Theodoridis Y (2005) R-Trees: Theory and Applications (Advanced information and knowledge processing). Springer-Verlag New York, Inc., Secaucus, NJ, USA
Minati D, Nandy S (2011) Space-efficient algorithms for empty space recognition among a point set in 2d and 3d. In: Proceedings of the 23rd annual Canadian conference on computational geometry, pp 347–353
Naamad A, Lee DT, Hsu W-L (1984) On the maximum empty rectangle problem. Discrete Appl Math 8:267–277
Nandy S, Bhattacharya B (1998) Maximal empty cuboids among points and blocks. Comput Math Appl 36(3):11–20
Oracle spatial user’s guide and reference (2012) http://docs.oracle.com/html/A88805_01/sdo_intr.htm
Orlowski M (1990) A new algorithm for the largest empty rectangle problem. Algorithmica 5:65–73
Papadias D, Tao Y, Fu G, Seeger B (2005) Progressive skyline computation in database systems. ACM T Database Syst 30(1):41–82
Postgis 1.5.3 manual (2012) http://postgis.refractions.net/documentation/manual-1.5/
Roussopoulos N, Kelley S, Vincent F (1995) Nearest neighbor queries. SIGMOD Rec 24(2):71–79
Shekhar S, Chawla S (2003) Spatial databases - a tour. Prentice Hall
Toussaint GT (1983) Computing largest empty circles with location constraints. In J Comput Inf Sci 12(5):347–358
Acknowledgements
This work was supported, for the first author, by the project MECESUP UBB0704 (Chile). For the second and third authors by Ministerio de Educación y Ciencia [TIN2009-14560-C03-02] and [TIN2010-21246-C02-01], and Xunta de Galicia [grant 2010/17]. Finally, for the last author, his work has been supported by the Ministerio de Educación y Ciencia [TIN2008-003063], and the Junta de Andalucía research project [TIC-06114]. We would like to thank Yannis Manolopoulos and Juan Ramón López Rodríguez for their valuable comments and suggestions to improve the quality of the paper.
Author information
Authors and Affiliations
Corresponding author
Additional information
A preliminary partial version of this work appeared in [16].
Rights and permissions
About this article
Cite this article
Gutiérrez, G., Paramá, J.R., Brisaboa, N. et al. The largest empty rectangle containing only a query object in Spatial Databases. Geoinformatica 18, 193–228 (2014). https://doi.org/10.1007/s10707-013-0178-y
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10707-013-0178-y