The language which is generated by the grammar S → aSa|bSb|a|b over the…

ISRO Scientist/Engineer SC · 2020 · Computer Science

The language which is generated by the grammar S → aSa|bSb|a|b over the alphabet {a, b} is the set of

  1. A.

    Strings that begin and end with the same symbol

  2. B.

    All odd and even length palindromes

  3. C.

    All odd length palindromes

  4. D.

    All even length palindromes

Attempted by 424 students.

Sign up free to check your answer

Sign up free

Explore the full course: Theory Of Computation

Loading lesson…