• edited by
13,226 views
51 51 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$?

8 Answers

Best answer
38 38 votes

DFA given in option A

Here, $S_3$ and $S_4$ are equivalent states and can be minimized.

This results in DFA given in:

https://gateoverflow.in/3523/gate2007-it_71

• edited by
37 37 votes
C. Is false since abb not accepted

D. Is false since as or bb not accepted

B.is false since it is not DFA

A. Is the ans .. S3 and S4 are similar States..minimum no.of states are 4
9 9 votes

A)  as it accepts anything (aa or bb )anything
So aa ,bb, aaa,aaaa bbb,bbbb,bbbbbb,bbaaaababba
ababababaababababa or abababababbb will be accepted
and only A satisfies.
Correct if Wrong,

3 3 votes

lets try by elimination:

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

(C.) it is not accepting abb which is in language

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

coming to option (A.) it accepts anything containing aa/bb

0 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 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!

Answer:
Position:
Show:

Related questions

58 58 votes
5 answers 5 answers
13.5k
13.5k views
Ishrat Jahan asked Oct 30, 2014
13,529 views
Consider the regular expression $R = (a + b)^* (aa + bb) (a + b)^*$Which of the following non-deterministic finite automata recognizes the language defined by the regular...
95 95 votes
8 answers 8 answers
27.2k
27.2k views
Ishrat Jahan asked Oct 30, 2014
27,239 views
Consider the following finite automata $P$ and $Q$ over the alphabet $\{a, b, c\}$. The start states are indicated by a double arrow and final states are indicated by a d...
42 42 votes
10 answers 10 answers
11.6k
11.6k views
Ishrat Jahan asked Oct 30, 2014
11,633 views
Consider the following DFA in which $S_0$ is the start state and $S_1$, $S_3$ are the final states.What language does this $\textsf{DFA}$ recognize?All strings of $x$ and...
69 69 votes
8 answers 8 answers
23.2k
23.2k views
Ishrat Jahan asked Oct 30, 2014
23,185 views
Consider the regular expression $R = (a + b)^* \ (aa + bb) \ (a + b)^*$Which one of the regular expressions given below defines the same language as defined by the regula...