Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article

Space-Efficient Preprocessing Schemes for Range Minimum Queries on Static Arrays

Published: 01 April 2011 Publication History

Abstract

Given a static array of $n$ totally ordered objects, the range minimum query problem is to build a data structure that allows us to answer efficiently subsequent on-line queries of the form “what is the position of a minimum element in the subarray ranging from $i$ to $j$?”. We focus on two settings, where (1) the input array is available at query time, and (2) the input array is available only at construction time. In setting (1), we show new data structures (a) of size $\frac{2n}{c(n)}-\Theta\bigl(\frac{n\lg\lg n}{c(n)\lg n}\bigr)$ bits and query time $O(c(n))$ for any positive integer function $c(n)\in O\bigl(n^\varepsilon\bigr)$ for an arbitrary constant $0<\varepsilon<1$, or (b) with $O(nH_k)+o(n)$ bits and $O(1)$ query time, where $H_k$ denotes the empirical entropy of $k$th order of the input array. In setting (2), we give a data structure of size $2n+o(n)$ bits and query time $O(1)$. All data structures can be constructed in linear time and almost in-place.

References

[1]
S. Alstrup, C. Gavoille, H. Kaplan, and T. Rauhe, Nearest common ancestors: A survey and a new algorithm for a distributed environment, Theory Comput. Syst., 37 (2004), pp. 441-456.
[2]
A. Amir, G. M. Landau, and U. Vishkin, Efficient pattern matching with scaling, in Proceedings of the First Annual Symposium on Discrete Algorithms (SODA), 1990, pp. 344-357.
[3]
V. L. Arlazarov, E. A. Dinic, M. A. Kronrod, and I. A. Faradzev, On economic construction of the transitive closure of a directed graph, Dokl. Akad. Nauk. SSSR, 194 (1970), pp. 487-488 (in Russian); Soviet Math. Dokl., 11 (1975), pp. 1209-1210 (in English).
[4]
M. A. Bender, M. Farach-Colton, G. Pemmasani, S. Skiena, and P. Sumazin, Lowest common ancestors in trees and directed acyclic graphs, J. Algorithms, 57 (2005), pp. 75-94.
[5]
D. Benoit, E. D. Demaine, J. I. Munro, R. Raman, V. Raman, and S. S. Rao, Representing trees of higher degree, Algorithmica, 43 (2005), pp. 275-292.
[6]
O. Berkman and U. Vishkin, Recursive star-tree parallel data structure, SIAM J. Comput., 22 (1993), pp. 221-242.
[7]
I. Bialynicka-Birula and R. Grossi, Amortized rigidness in dynamic Cartesian trees, in Proceedings of the 23rd Annual Symposium on Theoretical Aspects of Computer Science (STACS), Lecture Notes in Comput. Sci. 3884, Springer, Berlin, 2006, pp. 80-91.
[8]
G. S. Brodal, P. Davoodi, and S. S. Rao, On space efficient two dimensional range minimum data structures, in Proceedings of the 18th Annual European Symposium on Algorithms (ESA), Lecture Notes in Comput. Sci. 6347, Springer, Berlin, 2010, pp. 171-182.
[9]
G. Chen, S. J. Puglisi, and W. F. Smyth, LZ factorization using less time and space, Math. Comput. Sci., 1 (2007), pp. 605-623.
[10]
K.-Y. Chen and K.-M. Chao, On the range maximum-sum segment query problem, in Proceedings of the 15th International Symposium of Algorithms and Computation (ISAAC), Lecture Notes in Comput. Sci. 3341, Springer, Berlin, 2004, pp. 294-305.
[11]
R. Cole and R. Hariharan, Dynamic LCA queries on trees, SIAM J. Comput., 34 (2005), pp. 894-923.
[12]
M. Crochemore, C. S. Iliopoulos, M. Kubica, M. S. Rahman, and T. Walen, Improved algorithms for the range next value problem and applications, in Proceedings of the 25th Annual Symposium on Theoretical Aspects of Computer Science (STACS), IBFI Schloss Dagstuhl, 2008, pp. 205-216.
[13]
P. Ferragina, F. Luccio, G. Manzini, and S. Muthukrishnan, Structuring labeled trees for optimal succinctness, and beyond, in Proceedings of the 46th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2005, pp. 184-196.
[14]
P. Ferragina and G. Manzini, Indexing compressed text, J. ACM, 52 (2005), pp. 552-581.
[15]
P. Ferragina, G. Manzini, V. Mäkinen, and G. Navarro, Compressed representations of sequences and full-text indexes, ACM Trans. Algorithms, 3 (2007), article 20.
[16]
P. Ferragina and R. Venturini, A simple storage scheme for strings achieving entropy bounds, Theoret. Comput. Sci., 372 (2007), pp. 115-121.
[17]
J. Fischer, Optimal succinctness for range minimum queries, in Proceedings of the 9th Latin American Theoretical Informatics Symposium (LATIN), Lecture Notes in Comput. Sci. 6034, Springer, Berlin, 2010, pp. 158-169.
[18]
J. Fischer, Wee LCP, Inform. Process. Lett., 110 (2010), pp. 317-320.
[19]
J. Fischer and V. Heun, Theoretical and practical improvements on the RMQ-problem, with applications to LCA and LCE, in Proceedings of the 17th Annual Symposium on Combinatorial Pattern Matching (CPM), Lecture Notes in Comput. Sci. 4009, Springer, Berlin, 2006, pp. 36-48.
[20]
J. Fischer and V. Heun, A new succinct representation of RMQ-information and improvements in the enhanced suffix array, in Proceedings of the First International Symposium on Combinatorics, Algorithms, Probabilistic and Experimental Methodologies (ESCAPE), Lecture Notes in Comput. Sci. 4614, Springer, Berlin, 2007, pp. 459-470.
[21]
J. Fischer, V. Heun, and S. Kramer, Optimal string mining under frequency constraints, in Proceedings of the 10th European Conference on Principles and Practice of Knowledge and Discovery in Databases (PKDD), Lecture Notes in Comput. Sci. 4213, Springer, Berlin, 2006, pp. 139-150.
[22]
J. Fischer, V. Heun, and H. M. Stühler, Practical entropy bounded schemes for $O(1)$-range minimum queries, in Proceedings of the 18th IEEE Data Compression Conference (DCC), 2008, pp. 272-281.
[23]
J. Fischer, V. Mäkinen, and G. Navarro, Faster entropy-bounded compressed suffix trees, Theoret. Comput. Sci., 410 (2009), pp. 5354-5364.
[24]
G. Franceschini, S. Muthukrishnan, and M. Pa&caron;traşcu, Radix sorting with no extra space, in Proceedings of the 15th Annual European Symposium on Algorithms (ESA), Lecture Notes in Comput. Sci. 4698, Springer, Berlin, 2007, pp. 194-205.
[25]
H. N. Gabow, J. L. Bentley, and R. E. Tarjan, Scaling and related techniques for geometry problems, in Proceedings of the 16th Annual ACM Symposium on Theory of Computing (STOC), 1984, pp. 135-143.
[26]
A. Gál and P. B. Miltersen, The cell probe complexity of succinct data structures, Theoret. Comput. Sci., 379 (2007), pp. 405-417.
[27]
R. F. Geary, N. Rahman, R. Raman, and V. Raman, A simple optimal representation for balanced parentheses, Theoret. Comput. Sci., 368 (2006), pp. 231-246.
[28]
L. Georgiadis and R. E. Tarjan, Finding dominators revisited: Extended abstract, in Proceedings of the 15th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2004, pp. 869-878.
[29]
A. Golynski, Optimal lower bounds for rank and select indexes, Theoret. Comput. Sci., 387 (2007), pp. 348-359.
[30]
R. González and G. Navarro, Statistical encoding of succinct data structures, in Proceedings of the 17th Annual Symposium on Combinatorial Pattern Matching (CPM), Lecture Notes in Comput. Sci. 4009, Springer, Berlin, 2006, pp. 294-305.
[31]
R. Grossi, A. Gupta, and J. S. Vitter, High-order entropy-compressed text indexes, in Proceedings of the 14th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2003, pp. 841-850.
[32]
R. Grossi and J. S. Vitter, Compressed suffix arrays and suffix trees with applications to text indexing and string matching, SIAM J. Comput., 35 (2005), pp. 378-407.
[33]
D. Harel and R. E. Tarjan, Fast algorithms for finding nearest common ancestors, SIAM J. Comput., 13 (1984), pp. 338-355.
[34]
W. K. Hon, R. Shah, and J. S. Vitter, Space-efficient framework for top-$k$ string retrieval problems, in Proceedings of the 50th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2009, pp. 713-722.
[35]
G. Jacobson, Space-efficient static trees and graphs, in Proceedings of the 30th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 1989, pp. 549-554.
[36]
J. Jansson, K. Sadakane, and W.-K. Sung, Ultra-succinct representation of ordered trees, in Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2007, pp. 575-584.
[37]
D. E. Knuth, The Art of Computer Programming. Vol. 4, Fasc. 4: Generating All Trees—History of Combinatorial Generation, Addison-Wesley, Upper Saddle River, NJ, 2006.
[38]
H.-F. Liu and K.-M. Chao, Algorithms for finding the weight-constrained $k$ longest paths in a tree and the length-constrained $k$ maximum-sum segments of a sequence, Theoret. Comput. Sci., 407 (2008), pp. 349-358.
[39]
U. Manber and G. Myers, Suffix arrays: A new method for on-line string searches, SIAM J. Comput., 22 (1993), pp. 935-948.
[40]
G. Manzini, An analysis of the Burrows-Wheeler transform, J. ACM, 48 (2001), pp. 407-430.
[41]
J. I. Munro and V. Raman, Succinct representation of balanced parentheses and static trees, SIAM J. Comput., 31 (2001), pp. 762-776.
[42]
S. Muthukrishnan, Efficient algorithms for document retrieval problems, in Proceedings of the 13th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2002, pp. 657-666.
[43]
G. Navarro and V. Mäkinen, Compressed full-text indexes, ACM Computing Surveys, 39 (2007), article 2.
[44]
E. Ohlebusch, J. Fischer, and S. Gog, CST++, in Proceedings of the 17th International Symposium on String Processing and Information Retrieval (SPIRE), Lecture Notes in Comput. Sci. 6393, Springer, Berlin, 2010, pp. 322-333.
[45]
D. Okanohara and K. Sadakane, An online algorithm for finding the longest previous factors, in Proceedings of the 16th Annual European Symposium on Algorithms (ESA), Lecture Notes in Comput. Sci. 5193, Springer, Berlin, 2008, pp. 696-707.
[46]
R. Pagh, Low redundancy in static dictionaries with constant query time, SIAM J. Comput., 31 (2001), pp. 353-363.
[47]
C. K. Poon and W. K. Yiu, Opportunistic data structures for range queries, J. Comb. Optim., 11 (2006), pp. 145-154.
[48]
M. Pa&caron;traşcu, Succincter, in Proceedings of the 49th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2008, pp. 305-313.
[49]
V. Ramachandran and U. Vishkin, Efficient parallel triconnectivity in logarithmic time, in Proceedings of the Third Aegean Workshop on Computing (AWOC), Lecture Notes in Comput. Sci. 319, Springer, Berlin, 1988, pp. 33-42.
[50]
R. Raman, V. Raman, and S. S. Rao, Succinct indexable dictionaries with applications to encoding $k$-ary trees and multisets, ACM Trans. Algorithms, 3 (2007), article 43.
[51]
K. Sadakane, New text indexing functionalities of the compressed suffix arrays, J. Algorithms, 48 (2003), pp. 294-313.
[52]
K. Sadakane, Compressed suffix trees with full functionality, Theory Comput. Syst., 41 (2007), pp. 589-607.
[53]
K. Sadakane, Succinct data structures for flexible text retrieval systems, J. Discrete Algorithms, 5 (2007), pp. 12-22.
[54]
K. Sadakane and R. Grossi, Squeezing succinct data structures into entropy bounds, in Proceedings of the 17th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2006, pp. 1230-1239.
[55]
K. Sadakane and G. Navarro, Fully-functional succinct trees, in Proceedings of the 21st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2010, pp. 134-149.
[56]
S. Saxena, Dominance made simple, Inform. Process. Lett., 109 (2009), pp. 409-421.
[57]
J. Schwartz, Ultracomputers, ACM Trans. Program. Lang. Syst., 2 (1980), pp. 484-521.
[58]
T. Shibuya and I. Kurochkin, Match chaining algorithms for cDNA mapping, in Proceedings of the Third International Workshop on Algorithms in Bioinformatics (WABI), Lecture Notes in Comput. Sci. 2812, Springer, Berlin, 2003, pp. 462-475.
[59]
N. Välimäki and V. Mäkinen, Space-efficient algorithms for document retrieval, in Proceedings of the 18th Annual Symposium on Combinatorial Pattern Matching (CPM), Lecture Notes in Comput. Sci. 4580, Springer, Berlin, 2007, pp. 205-215.
[60]
J. Vuillemin, A unifying look at data structures, Comm. ACM, 23 (1980), pp. 229-239.
[61]
H. Yuan and M. J. Atallah, Data structures for range minimum queries in multidimensional arrays, in Proceedings of the 21st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2010, pp. 150-160.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image SIAM Journal on Computing
SIAM Journal on Computing  Volume 40, Issue 2
March 2011
372 pages

Publisher

Society for Industrial and Applied Mathematics

United States

Publication History

Published: 01 April 2011

Author Tags

  1. arrays
  2. lowest common ancestors
  3. range queries
  4. trees

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 22 Sep 2024

Other Metrics

Citations

Cited By

View all

View Options

View options

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media