[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.5555/2133036.2133099acmconferencesArticle/Chapter ViewAbstractPublication PagessodaConference Proceedingsconference-collections
research-article

Range selection and median: tight cell probe lower bounds and adaptive data structures

Published: 23 January 2011 Publication History

Abstract

Range selection is the problem of preprocessing an input array A of n unique integers, such that given a query (i, j, k), one can report the k'th smallest integer in the subarray A[i], A[i + 1],..., A[j]. In this paper we consider static data structures in the word-RAM for range selection and several natural special cases thereof.
The first special case is known as range median, which arises when k is fixed to ⌊(j -- i + 1)/2⌋. The second case, denoted prefix selection, arises when i is fixed to 0. Finally, we also consider the bounded rank prefix selection problem and the fixed rank range selection problem. In the former, data structures must support prefix selection queries under the assumption that k ≤ κ for some value κ ≤ n given at construction time, while in the latter, data structures must support range selection queries where k is fixed beforehand for all queries. We prove cell probe lower bounds for range selection, prefix selection and range median, stating that any data structure that uses S words of space needs Ω(log n/log(Sw/n)) time to answer a query. In particular, any data structure that uses nlogO(1) n space needs Ω(log n/log log n) time to answer a query, and any data structure that supports queries in constant time, needs n1+Ω(1) space. For data structures that uses n logO(1) n space this matches the best known upper bound.
Additionally, we present a linear space data structure that supports range selection queries in O(log k/log log n + log log n) time. Finally, we prove that any data structure that uses S space, needs Ω(log κ/log(Sw/n)) time to answer a bounded rank prefix selection query and Ω(log k/log(Sw/n)) time to answer a fixed rank range selection query. This shows that our data structure is optimal except for small values of k.

References

[1]
P. Afshani, L. Arge, and K. D. Larsen. Orthogonal range reporting in three and higher dimensions. In Proceedings of the 50th Annual IEEE Symposium on Foundations of Computer Science, pages 149--158, 2009.
[2]
M. J. Atallah and H. Yuan. Data structures for range minimum queries in multidimensional arrays. In Proceedings of the 20th Annual ACM-SIAM Symposium on Discrete Algorithms, pages 150--160, 2010.
[3]
M. J. Atallah and H. Yuan. Optimal succinctness for range minimum queries. In Proceedings of the 9th Latin American Theoretical Informatics Symposium, pages 150--160, 2010.
[4]
P. Bose, E. Kranakis, P. Morin, and Y. Tang. Approximate range mode and range median queries. In Proceedings of the 22nd Symposium on Theoretical Aspects of Computer Science, pages 377--388, 2005.
[5]
G. S. Brodal and A. G. Jørgensen. Data structures for range median queries. In Proceedings of the 20th International Symposium on Algorithms and Computation, pages 822--831, 2009.
[6]
T. M. Chan. Persistent predecessor search and orthogonal point location in the word RAM. In Proceedings of the 22nd ACM/SIAM Symposium on Discrete Algorithms (SODA), 2011. to appear.
[7]
T. M. Chan and M. Petraşcu. Counting inversions, offline orthogonal range counting, and related problems. In Proceedings of the 21st ACM/SIAM Symposium on Discrete Algorithms (SODA), pages 161--173, 2010.
[8]
B. Chazelle. A functional approach to data structures and its use in multidimensional searching. SIAM Journal of Computing, 17:427--462, 1988.
[9]
B. Chazelle. Lower bounds for orthogonal range searching: I. the reporting case. Journal of the ACM, 37(2):200--212, 1990.
[10]
B. Chazelle. Lower bounds for off-line range searching. Discrete & Computational Geometry, 17(1):53--65, 1997.
[11]
D. Comer. Ubiquitous B-tree. ACM Computing Survey, 11(2):121--137, 1979.
[12]
E. D. Demaine, G. M. Landau, and O. Weimann. On cartesian trees and range minimum queries. In Proceedings of the 36th International Colloquium on Automata, Languages and Programming, pages 341--353, 2009.
[13]
R. W. Floyd and R. L. Rivest. Expected time bounds for selection. Communications of the ACM, 18(3):165--172, 1975.
[14]
G. N. Frederickson and D. B. Johnson. The complexity of selection and ranking in X+Y and matrices with sorted columns. Journal of Computer and System Sciences, 24(2):197--208, 1982.
[15]
T. Gagie, S. J. Puglisi, and A. Turpin. Range quantile queries: Another virtue of wavelet trees. In Proceedings of the 16th String Processing and Information Retrieval Symposium, pages 1--6, 2009.
[16]
B. Gfeller and P. Sanders. Towards optimal range medians. In Proceedings of the 36th International Colloquium on Automata, Languages and Programming, pages 475--486, 2009.
[17]
M. Greve, A. G. Jørgensen, K. D. Larsen, and J. Truelsen. Cell probe lower bounds and approximations for range mode. In Proceedings of the 37th International Colloquium on Automata, Languages and Programming, pages 605--616, 2010.
[18]
S. Har-Peled and S. Muthukrishnan. Range medians. In Proceedings of the 16th Annual European Symposium on Algorithms, pages 503--514, 2008.
[19]
D. Harel and R. E. Tarjan. Fast algorithms for finding nearest common ancestors. SIAM Journal of Computing, 13(2):338--355, 1984.
[20]
J. JáJá, C. W. Mortensen, and Q. Shi. Space-efficient and fast algorithms for multidimensional dominance reporting and counting. In Proceedings of the 15th International Symposium on Algorithms and Computation, pages 558--568, 2004.
[21]
D. Krizanc, P. Morin, and M. H. M. Smid. Range mode and range median queries on lists and trees. Nordic Journal of Computing, 12(1):1--17, 2005.
[22]
J. Matoušek. Reporting points in halfspaces. Computational Geometry: Theory and Applications, 2(3):169--186, 1992.
[23]
P. B. Miltersen, N. Nisan, S. Safra, and A. Wigderson. On data structures and asymmetric communication complexity. Journal of Computer and System Sciences, 57(1):37--49, 1998.
[24]
M. Petraşcu. Lower bounds for 2-dimensional range counting. In Proceedings of the 39th ACM Symposium on Theory of Computing, pages 40--46, 2007.
[25]
M. Petraşcu. (Data) STRUCTURES. In Proceedings of the 49th Annual IEEE Symposium on Foundations of Computer Science, pages 434--443, 2008.
[26]
M. Petraşcu and M. Thorup. Higher lower bounds for near-neighbor and further rich problems. In Proceedings of the 47th Annual IEEE Symposium on Foundations of Computer Science, pages 646--654, 2006.
[27]
H. Petersen. Improved bounds for range mode and range median queries. In Proceedings of the 34th Conference on Current Trends in Theory and Practice of Computer Science, pages 418--423, 2008.
[28]
H. Petersen and S. Grabowski. Range mode and range median queries in constant time and sub-quadratic space. Information Processing Letters, 109(4):225--228, 2008.
[29]
C. Sommer, E. Verbin, and W. Yu. Distance oracles for sparse graphs. In Proceedings of the 50th Annual IEEE Symposium on Foundations of Computer Science, pages 703--712, 2009.
[30]
D. E. Willard. Log-logarithmic worst-case range queries are possible in space Theta(n). Information Processing Letters, 17(2):81--84, 1983.

Cited By

View all
  • (2018)Crossing the logarithmic barrier for dynamic Boolean data structure lower boundsProceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing10.1145/3188745.3188790(978-989)Online publication date: 20-Jun-2018
  • (2017)Faster online matrix-vector multiplicationProceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3039686.3039828(2182-2189)Online publication date: 16-Jan-2017
  • (2017)Asymptotically Optimal Encodings of Range Data Structures for Selection and Top-k QueriesACM Transactions on Algorithms10.1145/301293913:2(1-31)Online publication date: 6-Mar-2017
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
SODA '11: Proceedings of the twenty-second annual ACM-SIAM symposium on Discrete algorithms
January 2011
1785 pages

Sponsors

Publisher

Society for Industrial and Applied Mathematics

United States

Publication History

Published: 23 January 2011

Check for updates

Qualifiers

  • Research-article

Conference

SODA '11
Sponsor:
SODA '11: 22nd ACM-SIAM Symposium on Discrete Algorithms
January 23 - 25, 2011
California, San Francisco

Acceptance Rates

Overall Acceptance Rate 411 of 1,322 submissions, 31%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 02 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2018)Crossing the logarithmic barrier for dynamic Boolean data structure lower boundsProceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing10.1145/3188745.3188790(978-989)Online publication date: 20-Jun-2018
  • (2017)Faster online matrix-vector multiplicationProceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3039686.3039828(2182-2189)Online publication date: 16-Jan-2017
  • (2017)Asymptotically Optimal Encodings of Range Data Structures for Selection and Top-k QueriesACM Transactions on Algorithms10.1145/301293913:2(1-31)Online publication date: 6-Mar-2017
  • (2016)Data Structures for Path QueriesACM Transactions on Algorithms10.1145/290536812:4(1-32)Online publication date: 16-Aug-2016
  • (2016)Adaptive and Approximate Orthogonal Range CountingACM Transactions on Algorithms10.1145/283056712:4(1-15)Online publication date: 2-Sep-2016
  • (2015)Wavelet trees meet suffix treesProceedings of the twenty-sixth annual ACM-SIAM symposium on Discrete algorithms10.5555/2722129.2722168(572-591)Online publication date: 4-Jan-2015
  • (2014)Efficient range searching for categorical and plain dataACM Transactions on Database Systems10.1145/254392439:1(1-21)Online publication date: 6-Jan-2014
  • (2014)Spaces, Trees, and ColorsACM Computing Surveys10.1145/253593346:4(1-47)Online publication date: 1-Mar-2014
  • (2014)Indexing for summary queriesACM Transactions on Database Systems10.1145/250870239:1(1-39)Online publication date: 6-Jan-2014
  • (2013)Adaptive and approximate orthogonal range countingProceedings of the twenty-fourth annual ACM-SIAM symposium on Discrete algorithms10.5555/2627817.2627835(241-251)Online publication date: 6-Jan-2013
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media