edited by
7,869 views
42 votes
42 votes

Consider the regular expression $R = (a + b)^* (aa + bb) (a + b)^*$

Which deterministic finite automaton accepts the language represented by the regular expression $R$?

edited by

7 Answers

0 votes
0 votes

(B.) it accepts ab which is not in the language

(C.) it is not accepting abb which is in language and also  Is false since  baa, abb not accepted

(D.) it is not accepting aa and bb which is in language

coming to option (A.) it accept 

0 votes
0 votes

Here, 

Option B: it generates a string like ab which is not a part of our language, hence rejected.

Option C and D: they don't even accept the minimal length strings aa and bb of our language, hence rejected.

Option A is thus the right answer!

–2 votes
–2 votes
Option a and c both seems right
Answer:

Related questions

47 votes
47 votes
4 answers
1