Consider the following statements about the context free grammar G = {S - >SS,S - >ab,S ->ba, S - ε}I. G is ambiguousII. G produces all strings with equal number of a’s and b’sIII. G can be accepted by a deterministic PDA.Which combination below expresses all the true statements about G?

🎲 Try a Random Question  |  Total Questions in Quiz: 168  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Theory of Computation Practice Test — practice the complete quiz, review flashcards, or try a random question.

In theoretical computer science and mathematics, the theory of computation is the branch that deals with what problems can be solved on a model of computation, using an algorithm, how efficiently they can be solved or to what degree (e.g., approximate solutions versus precise ones). The field is divided into three major branches: automata theory and formal languages, computability theory, and computational complexity theory, which are linked by the question: "What are the fundamental capabilities and limitations of computers?" (Source: Wikipedia)   The 'theory of computation' is important... Show more

Consider the following statements about the context free grammar G = {S - >SS,S - >ab,S ->ba, S - ε}<br>I. G is ambiguous<br>II. G produces all strings with equal number of a’s and b’s<br>III. G can be accepted by a deterministic PDA.<br>Which combination below expresses all the true statements about G?