1.

Consider the machine M:The language recognized by M is :(a) {w ∈ {a, b}* / every a in w is followed by ex¬actly two b’s}(b) {w ∈ {a, b}* every a in w is followed by at least two b’}(c) {w ∈ {a, b}* w contains the substring ‘abb’}(d) {w ∈ {a, b}* w does not contain ‘aa’ as a substring}This question was addressed to me in class test.My doubt stems from Minimization of DFA topic in portion Finite Automata and Regular Expression of Compiler

Answer»

The CORRECT option is (b) {w ∈ {a, b}* every a in w is followed by at least TWO b’}

Explanation: We can try some SAMPLE strings like aba, abbbabbb.



Discussion

No Comment Found

Related InterviewSolutions