Skip to main content

Complexity of Closeness, Sparseness and Segment Equivalence for Context-Free and Regular Languages

  • Chapter
Informatik

Part of the book series: TEUBNER-TEXTE zur Informatik ((TTZI,volume 1))

Abstract

In this paper, we investigate the complexity of deciding closeness, segment equivalence and sparseness for context-free and regular languages. It will be shown that the closeness problem for context-free grammars (CFGs) is undecidable while it is PSPACE-complete for nondeterministic finite automata (NFAs) and NL-complete for deterministic finite automata (DFAs). The segment equivalence problems for CFGs and NFAs are co-NP-complete. It is NL-complete for DFAs. If encoded in binary, the segment equivalence problems for CFGs and NFAs are co-NE-complete and PSPACE-complete, respectively. The sparseness problems for NFAs and DFAs are NL-complete. We also show that the equivalence problems for CFGs and NFAs generating commutative languages are II P 2 -complete and co-NP-complete, respectively. For trim DFAs generating commutative languages the equivalence problem is in L.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.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

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Bibliography

  1. Berman, L. and Hartmanis, J. On the Isomorphism and Density of NP and other Complete Sets. SIAM J. of Computing, pp. 305–322, 1977.

    Google Scholar 

  2. Cho, S. and Huynh, D.T. The Parallel Complexity of Finite State Automata Problems, to appear in Information & Computation.

    Google Scholar 

  3. Cook, S. A Taxonomy of Problems Which Have Fast Parallel Algorithms. Information & Computation 64, pp. 2–22, 1985.

    MATH  Google Scholar 

  4. Ginsburg, S. The Mathematical Theory of Context-Free Languages. McGraw-Hill, 1966.

    MATH  Google Scholar 

  5. Hartmanis, J. Context-Free Languages and Turing Machine Computations.Proc. Symp. on Applied Mathematics 19, pp. 42–51, 1967.

    Article  MathSciNet  Google Scholar 

  6. Harrison, M. A. Introduction to Formal Language Theory. Addison-Wesley, 1978.

    MATH  Google Scholar 

  7. Hopcroft, J. & Ullman, J. Introduction to Automata Theory, Languages and Computations. Addison-Wesley, 1979.

    Google Scholar 

  8. Hotz, G. Eine Neue Invariante für Kontext-Freie Sprachen. Theoretical Computer Science 11, pp. 107–116, 1980.

    Article  MathSciNet  MATH  Google Scholar 

  9. Hunt, H.B., Rosenkrantz, D.J. and Szymanski, T.G. On the Equivalence, Containment, and Covering Problems for the Regular and Context-Free Languages. J. of Computer and System Science 12, pp. 222–268, 1976.

    Article  MathSciNet  MATH  Google Scholar 

  10. Huynh, D.T. Remarks on the Complexity of an Invariant of Context-Free Grammars. Acta Informatica 17, pp. 89–99, 1982.

    Article  MathSciNet  MATH  Google Scholar 

  11. Huynh, D.T. Commutative Grammars: The Complexity of Uniform Word Problems. Information & Computation 57, pp. 21–39, 1983.

    MathSciNet  MATH  Google Scholar 

  12. Huynh, D.T. Deciding the Inequivalence of Context-Free Grammars with 1-Letter Terminal Alphabet Is ∑ p2 —Complete. Theoretical Computer Science 33, pp. 305–326, 1984.

    Article  MathSciNet  MATH  Google Scholar 

  13. Huynh, D.T. The Complexity of Equivalence Problems for Commutative Grammars. Information & Computation 66, pp. 103–121, 1985.

    MathSciNet  MATH  Google Scholar 

  14. Huynh, D.T. Some Observations about the Randomness of Hard Problems. SIAM J. onComputing 15, pp. 1101–1105, 1986.

    MathSciNet  MATH  Google Scholar 

  15. Ibarra, O. and Ravikumar, B. On the Sparseness, Ambiguity and Other Decision Problems for Acceptors and Transducers. Proc. 3rd Ann. Symposium on Theoretical Aspects of Computer Science, LNCS 210, pp. 171–179, 1986.

    Google Scholar 

  16. Immerman, N. Nondeterministic Space Is Closed under Complementation. SIAM J. on Computing. 17, pp. 935–938, 1988.

    Article  MathSciNet  MATH  Google Scholar 

  17. Jones, N.D., Lien, Y.E. & Laaser, W.T. New Problems Complete for Nondeterministic Log Space. Mathematical Systems Theory 10, pp. 1–17, 1976.

    Article  MathSciNet  MATH  Google Scholar 

  18. Meyer, A.R. and Stockmeyer, L.J. The Equivalence Problem for Regular Expressions with Squaring Requires Exponential Space. Proc. 13th IEEE Symp. on Switching and Automata Theory, pp. 125–129, 1972.

    Google Scholar 

  19. Schöning, U. Complete Sets and Closeness to Complexity Classes. Mathematical Systems Theory 19, pp. 29–41, 1986.

    Article  MathSciNet  MATH  Google Scholar 

  20. Stockmeyer, L. & Meyer, A.R. Word Problem Requiring Exponential Time: Preliminary Report. Proc. 5th Ann. ACM Symp. on Theory of Computing, pp. 1–9, 1973.

    Google Scholar 

  21. Stockmeyer, L.J. The Complexity of Decision Problems in Automata Theory and Logic, Report TR-133, MIT Project MAC, Cambridge, Mass., 1974. by Circuits, SIAM J. on Comput. 13, pp. 409–422, 1984.

    Google Scholar 

  22. Yesha, Y. On Certain Polynomial-Time Truth-Table Reducibilities of Complete Sets to Sparse Sets. SIAM J. on Computing 12, pp. 411–425, 1983.

    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

© 1992 B. G. Teubner Verlagsgesellschaft, Leipzig

About this chapter

Cite this chapter

Huynh, D.T. (1992). Complexity of Closeness, Sparseness and Segment Equivalence for Context-Free and Regular Languages. In: Buchmann, J., Ganzinger, H., Paul, W.J. (eds) Informatik. TEUBNER-TEXTE zur Informatik, vol 1. Vieweg+Teubner Verlag, Wiesbaden. https://doi.org/10.1007/978-3-322-95233-2_14

Download citation

  • DOI: https://doi.org/10.1007/978-3-322-95233-2_14

  • Publisher Name: Vieweg+Teubner Verlag, Wiesbaden

  • Print ISBN: 978-3-8154-2033-1

  • Online ISBN: 978-3-322-95233-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics