Consider the regular grammar below S → bS | aA | ϵ A → aS | bA The…

GATE · 2006 · IT

Consider the regular grammar below

S → bS | aA | ϵ
A → aS | bA

The Myhill-Nerode equivalence classes for the language generated by the grammar are

  1. A.

    {w ∊ (a + b)* | #a(w) is even) and {w ∊ (a + b)* | #a(w) is odd}

  2. B.

    {w ∊ (a + b)* | #a(w) is even) and {w ∊ (a + b)* | #b(w) is odd}

  3. C.

    {w ∊ (a + b)* | #a(w) = #b(w) and {w ∊ (a + b)* | #a(w) ≠ #b(w)}

  4. D.

    {ϵ}, {wa | w ∊ (a + b)* and {wb | w ∊ (a + b)*}

Attempted by 76 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…