edited by
219 views
0 votes
0 votes

Consider the language $\text{L}$ over the alphabet $\left \{ a, b \right \}$ given below.

$$\text{L}= \{ w \mid w  \;\text{has equal number of $a$’s and $b$’s, and there are no adjacent $a$’s.}\}$$

For instance, the words $abba, abab$ are in language but not $bab$ and $baab$.

  1. Prove that $\text{L}$ does not contain any word that starts and ends with $a$ $b$.
  2. Give a context-free grammar for $\text{L}$.
edited by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
0 answers
1
admin asked Jul 22, 2022
345 views
A Muller automaton is defined as a tuple $\text{M} = (\text{Q}, \text{I}, \Sigma, \rightarrow, \text{T})$ where:$\text{Q}$ is a finite set of states;$\text{I} \subseteq \...
0 votes
0 votes
0 answers
3