Skip to main content

Matrix Equations and Normal Forms for Context-Free Grammars

  • Chapter
Fundamental Problems in Computing
  • 1045 Accesses

Abstract

The relationship between the set of productions of a context-free grammar and the corresponding set of defining equations is first pointed out. The closure operation on a matrix of strings is defined and this concept is used to formalize the solution to a set of linear equations. A procedure is then given for rewriting a context-free grammar in Greibach normal form, where the replacement string of each production begins with a terminal symbol. An additional procedure is given for rewriting the grammar so that each replacement string both begins and ends with a terminal symbol. Neither procedure requires the evaluation of regular expressions over the total vocabulary of the grammar, as is required by Greibach’s procedure.

This work was written while the author was a National Science Foundation Graduate Fellow.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.00
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover 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.

References

  1. D. N. Arden. Delayed logic and finite state machines. In Theory of Computing Machine Design, pages 1–35. Univ. of Michigan Press, Ann Arbor, 1960.

    Google Scholar 

  2. J. A. Brzozowski. A survey of regular expressions and their applications. IRE Trans., EC-11:324–335, 1962.

    MathSciNet  Google Scholar 

  3. J. A. Brzozowski and E. J. McCluskey Jr. Signal flow graph techniques for sequential circuit state diagrams. IEEE Trans., EC-12:67–76, 1963.

    Google Scholar 

  4. N. Chomsky, Formal properties of grammars. In R. D. Luce, R. R. Bush, E. Galanter, editors, Handbook of Mathematical Psychology, volume 11, pages 323–418. Wiley, New York, 1963.

    Google Scholar 

  5. N. Chomsky and M. P. Schutzenberger. The algebraic theory of context-free languages. In P. Braffort and D. Hirshberg, editors, Computer Programming and Formal Systems, pages 118–161. North-Holland, Amsterdam, 1963.

    Chapter  Google Scholar 

  6. S. Ginsberg and H. G. Rice. Two families of languages related to ALGOL. J. ACM, 9(3):350–371, 1962.

    Article  Google Scholar 

  7. S. Greibach. A new normal-flow theorem for context-free phrase structure grammars. J. ACM, 12(1):42–52, 1965.

    Article  MATH  MathSciNet  Google Scholar 

  8. S. C. Kleene. Representation of events in nerve nets and finite automata. In C. E. Shannon and H. McCarthy, editors, Automata Studies, pages 3–41. Princeton Univ. Press, Princeton, 1956.

    Google Scholar 

  9. R. McNaughton and H. Yamada. Regular expressions and state graphs for automata. IRE Trans., EC-9(1):39–47, 1960.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer Science + Business Media B.V.

About this chapter

Cite this chapter

Rosenkrantz, D.J. (2009). Matrix Equations and Normal Forms for Context-Free Grammars. In: Ravi, S.S., Shukla, S.K. (eds) Fundamental Problems in Computing. Springer, Dordrecht. https://doi.org/10.1007/978-1-4020-9688-4_1

Download citation

  • DOI: https://doi.org/10.1007/978-1-4020-9688-4_1

  • Publisher Name: Springer, Dordrecht

  • Print ISBN: 978-1-4020-9687-7

  • Online ISBN: 978-1-4020-9688-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics