The Gateway to Computer Science Excellence
+30 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$?

in Theory of Computation by Boss (16.3k points)
edited by | 1.9k views

6 Answers

+22 votes
Best answer

DFA given in option A

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

This results in DFA given in:

by Veteran (56.8k points)
edited by
Link not working!
+24 votes
C. Is false since abb not accepted

D. Is false since as or bb not accepted false since it is not DFA

A. Is the ans .. S3 and S4 are similar States..minimum no.of states are 4
by Boss (25.5k points)
Option C will also not accept baa, abb etc.
+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,

by Junior (889 points)
+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

by Active (1.4k points)
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 

by Active (4.1k points)
–2 votes
Option a and c both seems right
by Active (3.3k points)
I was also stuck between these two, but C does not accept 'abb' or 'baa'.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,644 questions
56,531 answers
101,350 users