Skip to main content

Data Structure Lower Bounds on Random Access to Grammar-Compressed Strings

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 7922))

Abstract

In this paper we investigate the problem of building a static data structure that represents a string s using space close to its compressed size, and allows fast access to individual characters of s. This type of data structures was investigated by the recent paper of Bille et al. [3]. Let n be the size of a context-free grammar that derives a unique string s of length L. (Note that L might be exponential in n.) Bille et al. showed a data structure that uses space O(n) and allows to query for the i-th character of s using running time O(logL). Their data structure works on a word RAM with a word size of logL bits.

Here we prove that for such data structures, if the space is poly(n), the query time must be at least \((\log L)^{1-\varepsilon }/\log \mathcal{S}\) where \(\mathcal{S}\) is the space used, for any constant ε > 0. As a function of n, our lower bound is Ω(n 1/2 − ε). Our proof holds in the cell-probe model with a word size of logL bits, so in particular it holds in the word RAM model. We show that no lower bound significantly better than n 1/2 − ε can be achieved in the cell-probe model, since there is a data structure in the cell-probe model that uses O(n) space and achieves \(O(\sqrt{n \log n})\) query time. The “bad” setting of parameters occurs roughly when \(L=2^{\sqrt{n}}\). We also prove a lower bound for the case of not-as-compressible strings, where, say, L = n 1 + ε. For this case, we prove that if the space is O(n ·polylog(n)), the query time must be at least Ω(logn / loglogn).

The proof works by reduction from communication complexity, namely to the LSD (Lopsided Set Disjointness) problem, recently employed by Pǎtraşcu and others. We prove lower bounds also for the case of LZ-compression. All of our lower bounds hold even when the strings are over an alphabet of size 2 and hold even for randomized data structures with 2-sided error.

The authors acknowledge support from the Danish National Research Foundation and The National Science Foundation of China (under the grant 61061130540) for the Sino-Danish Center for the Theory of Interactive Computation, within which part of this work was performed. Part of the work was done while the authors were working in IIIS, Tsinghua University in China.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Babai, L., Frankl, P., Simon, J.: Complexity classes in communication complexity theory. In: FOCS, pp. 337–347 (1985)

    Google Scholar 

  2. Bar-Yossef, Z., Jayram, T.S., Kumar, R., Sivakumar, D.: An information statistics approach to data stream and communication complexity. Journal of Computer and System Sciences 68(4), 702–732 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  3. Bille, P., Landau, G.M., Raman, R., Rao, S., Sadakane, K., Weimann, O.: Random access to grammar compressed strings. In: SODA (2011)

    Google Scholar 

  4. Charikar, M., Lehman, E., Liu, D., Panigrahy, R., Prabhakaran, M., Sahai, A., Shelat, A.: The smallest grammar problem. IEEE Transactions on Information Theory 51(7), 2554–2576 (2005)

    Article  MathSciNet  Google Scholar 

  5. Claude, F., Navarro, G.: Self-indexed text compression using straight-line programs. In: Královič, R., Niwiński, D. (eds.) MFCS 2009. LNCS, vol. 5734, pp. 235–246. Springer, Heidelberg (2009)

    Chapter  Google Scholar 

  6. Lempel, A., Ziv, J.: On the complexity of finite sequences. IEEE Transactions on Information Theory 22(1), 75–81 (1976)

    Article  MathSciNet  MATH  Google Scholar 

  7. Miltersen, P.B., Nisan, N., Safra, S., Wigderson, A.: On data structures and asymmetric communication complexity. In: STOC, p. 111. ACM (1995)

    Google Scholar 

  8. Patrascu, M.: Unifying the Landscape of Cell-Probe Lower Bounds. SIAM Journal on Computing 40(3) (2011)

    Google Scholar 

  9. Razborov, A.A.: On the distributional complexity of disjointness. Theoretical Computer Science 106(2), 385–390 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  10. Yao, A.C.C.: Should tables be sorted? Journal of the ACM 28(3), 615–628 (1981)

    Article  MATH  Google Scholar 

  11. Ziv, J., Lempel, A.: A universal algorithm for sequential data compression. IEEE Transactions on information theory 23(3), 337–343 (1977)

    Article  MathSciNet  MATH  Google Scholar 

  12. Ziv, J., Lempel, A.: Compression of individual sequences via variable-rate coding. IEEE Transactions on Information Theory 24(5), 530–536 (1978)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Verbin, E., Yu, W. (2013). Data Structure Lower Bounds on Random Access to Grammar-Compressed Strings. In: Fischer, J., Sanders, P. (eds) Combinatorial Pattern Matching. CPM 2013. Lecture Notes in Computer Science, vol 7922. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-38905-4_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-38905-4_24

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-38904-7

  • Online ISBN: 978-3-642-38905-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics