• DocumentCode
    2187255
  • Title

    On the equivalence and containment problems for unambiguous regular expressions, grammars, and automata

  • Author

    Stearns, Richard E. ; Hunt, Harry B., III

  • fYear
    1981
  • fDate
    28-30 Oct. 1981
  • Firstpage
    74
  • Lastpage
    81
  • Abstract
    The known proofs that the equivalence and containment problems for the regular and for the linear context-free grammars are PSPACE-complete and undecidable, respecitvely, depend upon consideration of ambiguous grammars. We prove that this dependence is inherent. Deterministic polynomial time algorithms are presented for; (1) the equivalence and containment problems for the unambiguous regular grammars; (2) for all k ≥ 2, the equivalence and containment problems for the regular grammars of degree of ambiguity ≤ k; and (3) the problems of determining if an unambiguous linear context-free grammar is equivalent to or contains an arbitrary regular set. Simple extensions of the grammar classes in (1), (2), and (3) are shown to yield problems that are NP-hard or undecidable. Several new results on the relative economy of description of ambiguous versus unambiguous regular and linear contextfree grammars are also obtained. These results depend upon several observations on the solutions of systems of homogeneous linear difference equations and their relationship with the number of strings of a given length generated by an unambiguous regular or linear context-free grammar.
  • Keywords
    Automata; Computer science; Difference equations; Gold; Polynomials; Samarium; Terminology;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Foundations of Computer Science, 1981. SFCS '81. 22nd Annual Symposium on
  • Conference_Location
    Nashville, TN, USA
  • ISSN
    0272-5428
  • Type

    conf

  • DOI
    10.1109/SFCS.1981.29
  • Filename
    4568319