edited by
13,008 views
50 votes
50 votes

Consider the machine $M$:

The language recognized by $M$ is:

  1. $\left\{ w \in \{a, b\}^* \text{ | every a in $w$ is followed by exactly two $b$’s} \right\}$

  2. $\left\{w \in \{a, b\}^* \text{ | every a in $w$ is followed by at least two $b$’s} \right\}$

  3. $\left\{w \in \{a, b\}^* \text{ | $w$ contains the substring ‘$abb$’} \right\}$

  4. $\left\{w \in \{a, b\}^* \text{ | $w$ does not contain ‘$aa$’ as a substring} \right\}$

edited by

6 Answers

0 votes
0 votes
many might get confuse in option D. Option D is wrong because it is specified the the language does not contain “aa” as substring, means the string containing aa will only be not accepted, bt the strings abba is also not accepted (which is not specified in the language).
0 votes
0 votes

therefore option A,C,D can be discarded

so option B is correct

Answer:

Related questions