Abstract
We define the range 1 query (R1Q) problem as follows. Given a d-dimensional (dāā„ā1) input bit matrix A, preprocess A so that for any given region \(\mathcal{R}\) of A, one can efficiently answer queries asking if \(\mathcal{R}\) contains a 1 or not. We consider both orthogonal and non-orthogonal shapes for \(\mathcal{R}\) including rectangles, axis-parallel right-triangles, certain types of polygons, and spheres. We provide space-efficient deterministic and randomized algorithms with constant query times (in constant dimensions) for solving the problem in the word RAM model. The space usage in bits is sublinear, linear, or near linear in the size of A, depending on the algorithm.
Rezaul Chowdhury & Pramod Ganapathi are supported in part by NSF grant CCF-1162196. Michael A. Bender & Samuel McCauley are supported in part by NSF grants IIS-1247726, CCF-1217708, CCF-1114809, and CCF-0937822.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Agarwal, P.K., Erickson, J.: Geometric range searching and its relatives. Contemporary MathematicsĀ 223, 1ā56 (1999)
Amir, A., Fischer, J., Lewenstein, M.: Two-dimensional range minimum queries. In: Ma, B., Zhang, K. (eds.) CPM 2007. LNCS, vol.Ā 4580, pp. 286ā294. Springer, Heidelberg (2007)
Bender, M.A., Farach-Colton, M.: The lca problem revisited. In: Gonnet, G.H., Viola, A. (eds.) LATIN 2000. LNCS, vol.Ā 1776, pp. 88ā94. Springer, Heidelberg (2000)
Bender, M.A., Farach-Colton, M., Pemmasani, G., Skiena, S., Sumazin, P.: Lowest common ancestors in trees and directed acyclic graphs. Journal of AlgorithmsĀ 57(2), 75ā94 (2005)
Berkman, O., Vishkin, U.: Recursive star-tree parallel data structure. SIAM Journal on ComputingĀ 22(2), 221ā242 (1993)
Brodal, G.S., Davoodi, P., Rao, S.S.: On space efficient two dimensional range minimum data structures. AlgorithmicaĀ 63(4), 815ā830 (2012)
Chazelle, B., Rosenberg, B.: Computing partial sums in multidimensional arrays. In: SoCG, pp. 131ā139. ACM (1989)
Cormode, G., Muthukrishnan, S.: An improved data stream summary: The count-min sketch and its applications. Journal of AlgorithmsĀ 55(1), 58ā75 (2005)
De Berg, M., Cheong, O., van Kreveld, M., Overmars, M.: Computational geometry. Springer (2008)
Fischer, J.: Optimal succinctness for range minimum queries. In: LĆ³pez-Ortiz, A. (ed.) LATIN 2010. LNCS, vol.Ā 6034, pp. 158ā169. Springer, Heidelberg (2010)
Fischer, J., Heun, V.: A new succinct representation of rmq-information and improvements in the enhanced suffix array. In: Chen, B., Paterson, M., Zhang, G. (eds.) ESCAPE 2007. LNCS, vol.Ā 4614, pp. 459ā470. Springer, Heidelberg (2007)
Fischer, J., Heun, V., Stiihler, H.: Practical entropy-bounded schemes for o(1)-range minimum queries. In: Data Compression Conference, pp. 272ā281. IEEE (2008)
Golynski, A.: Optimal lower bounds for rank and select indexes. TCSĀ 387(3), 348ā359 (2007)
GonzĆ”lez, R., Grabowski, S., MƤkinen, V., Navarro, G.: Practical implementation of rank and select queries. In: Poster Proc. WEA, pp. 27ā38 (2005)
Navarro, G., Nekrich, Y., Russo, L.: Space-efficient data-analysis queries on grids. TCS (2012)
Overmars, M.H.: Efficient data structures for range searching on a grid. Journal of AlgorithmsĀ 9(2), 254ā275 (1988)
Sadakane, K.: Compressed suffix trees with full functionality. Theory of Computing SystemsĀ 41(4), 589ā607 (2007)
Sadakane, K.: Succinct data structures for flexible text retrieval systems. JDAĀ 5(1), 12ā22 (2007)
Sharir, M., Shaul, H.: Semialgebraic range reporting and emptiness searching with applications. SIAM Journal on ComputingĀ 40(4), 1045ā1074 (2011)
Tang, Y., Chowdhury, R., Kuszmaul, B.C., Luk, C.K., Leiserson, C.E.: The Pochoir stencil compiler. In: SPAA, pp. 117ā128. ACM (2011)
Yao, A.C.: Space-time tradeoff for answering range queries. In: STOC, pp. 128ā136. ACM (1982)
Yuan, H., Atallah, M.J.: Data structures for range minimum queries in multidimensional arrays. In: SODA, pp. 150ā160 (2010)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
Ā© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Bender, M.A., Chowdhury, R.A., Ganapathi, P., McCauley, S., Tang, Y. (2014). The Range 1 Query (R1Q) Problem. In: Cai, Z., Zelikovsky, A., Bourgeois, A. (eds) Computing and Combinatorics. COCOON 2014. Lecture Notes in Computer Science, vol 8591. Springer, Cham. https://doi.org/10.1007/978-3-319-08783-2_11
Download citation
DOI: https://doi.org/10.1007/978-3-319-08783-2_11
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-08782-5
Online ISBN: 978-3-319-08783-2
eBook Packages: Computer ScienceComputer Science (R0)