Skip to main content

Space Complexity vs. Query Complexity

  • Conference paper
  • 1694 Accesses

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

Abstract

Combinatorial property testing deals with the following relaxation of decision problems: Given a fixed property and an input x, one wants to decide whether x satisfies the property or is “far” from satisfying it. The main focus of property testing is in identifying large families of properties that can be tested with a certain number of queries to the input. Unfortunately, there are nearly no general results connecting standard complexity measures of languages with the hardness of testing them. In this paper we study the relation between the space complexity of a language and its query complexity. Our main result is that for any space complexity s(n)≤logn there is a language with space complexity O(s(n)) and query complexity 2\(^{\Omega({\it s}({\it n}))}\). We conjecture that this exponential lower bound is best possible, namely that the query complexity of a languages is at most exponential in its space complexity.

Our result has implications with respect to testing languages accepted by certain restricted machines. Alon et al. [FOCS 1999] have shown that any regular language is testable with a constant number of queries. It is well known that any language in space o(loglogn) is regular, thus implying that such languages can be so tested. It was previously known that there are languages in space O(logn) which are not testable with a constant number of queries and Newman [FOCS 2000] raised the question of closing the exponential gap between these two results. A special case of our main result resolves this problem as it implies that there is a language in space O(loglogn) that is not testable with a constant number of queries, thus showing that the o(loglogn) bound is best possible. It was also previously known that the class of testable properties cannot be extended to all context-free languages. We further show that one cannot even extend the family of testable languages to the class of languages accepted by single counter machines which is perhaps the weakest (uniform) computational model that is strictly stronger than finite automata.

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   54.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. Alon, N., Krivelevich, M., Newman, I., Szegedy, M.: Regular languages are testable with a constant number of queries. SIAM J. on Computing 30, 1842–1862 (2001)

    Article  MATH  MathSciNet  Google Scholar 

  2. Alon, N., Shapira, A.: A characterization of the (natural) graph properties testable with one-sided error. In: Proc. of FOCS 2005, pp. 429–438 (2005)

    Google Scholar 

  3. Alon, N., Fischer, E., Newman, I., Shapira, A.: A combinatorial characterization of the testable graph properties: it’s all about regularity. In: Proc. of STOC 2006, pp. 251–260 (2006)

    Google Scholar 

  4. Ben-Sasson, E., Harsha, P., Raskhodnikova, S.: Some 3-CNF properties are hard to test. In: Proc. of STOC 2003, pp. 345–354 (2003)

    Google Scholar 

  5. Blum, M., Luby, M., Rubinfeld, R.: Self-testing/correcting with applications to numerical problems. JCSS 47, 549–595 (1993)

    MATH  MathSciNet  Google Scholar 

  6. Fischer, E.: The art of uninformed decisions: A primer to property testing. The Computational Complexity Column of The Bulletin of the European Association for Theoretical Computer Science 75, 97–126 (2001)

    MATH  Google Scholar 

  7. Fischer, E., Newman, I., Sgall, J.: Functions that have read-twice constant width branching programs are not necessarily testable. Random Struct. and Alg. (in press)

    Google Scholar 

  8. Goldreich, O., Goldwasser, S., Ron, D.: Property testing and its connection to learning and approximation. JACM 45(4), 653–750 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  9. Goldreich, O., Trevisan, L.: Three theorems regarding testing graph properties. Random Structures and Algorithms 23(1), 23–57 (2003)

    Article  MATH  MathSciNet  Google Scholar 

  10. Justesen, J.: A class of constructive asymptotically good algebraic codes. IEEE Transcations on Information 18, 652–656 (1972)

    Article  MATH  MathSciNet  Google Scholar 

  11. Lachish, O., Newman, I.: Languages that are Recognized by Simple Counter Automata are not necessarily Testable, ECCC report TR05-152

    Google Scholar 

  12. MacWilliams, F., Sloane, N.: The Theory of Error-Correcting Codes. North-Holland, Amsterdam (1997)

    Google Scholar 

  13. Newman, I.: Testing of functions that have small width branching programs. In: Proc. of 41th FOCS, pp. 251–258 (2000)

    Google Scholar 

  14. Papadimitriou, C.: Computational Complexity. Addison-Wesley, Reading (1994)

    MATH  Google Scholar 

  15. Ron, D.: Property testing. In: Handbook of Randomized Computing, vol. II, pp. 597–649. Kluwer Academic, Dordrecht (2001)

    Google Scholar 

  16. Rubinfeld, R., Sudan, M.: Robust characterization of polynomials with applications to program testing. SIAM J. on Computing 25, 252–271 (1996)

    Article  MATH  MathSciNet  Google Scholar 

  17. Sudan, M.: Lecture Notes on Algorithmic Introduction to Coding Theory, available at: http://theory.lcs.mit.edu/~madhu/FT01/scribe/lect6.ps

  18. Valiant, L.G., Paterson, M.: Deterministic one-counter automata. Journal of Computer and System Sciences 10, 340–350 (1975)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Lachish, O., Newman, I., Shapira, A. (2006). Space Complexity vs. Query Complexity. In: Díaz, J., Jansen, K., Rolim, J.D.P., Zwick, U. (eds) Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques. APPROX RANDOM 2006 2006. Lecture Notes in Computer Science, vol 4110. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11830924_39

Download citation

  • DOI: https://doi.org/10.1007/11830924_39

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-38044-3

  • Online ISBN: 978-3-540-38045-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics