3,106 views
1 votes
1 votes
number of states required to construct dfa accepting languages  L = (ab union aba)* alphabet = {a,b} is atleast??

my view:

for intersection of 2 reg langs we take cartesian product construct dfa then we mininise it ... for union of lang containing same symbols like (111+11)*we can enumerate and produce least no.for required states but for above question like (ab+aba)* what should i do to solve ?

2 Answers

Best answer
3 votes
3 votes

Instead of any confusion,  it is better to design NFA for given regular expression and convert it to DFA. 

[ note : any one can design DFA directly depending on practice/aptitude] 

selected by
3 votes
3 votes

Can you make a NFA for it? Something like this: 

If you can do that, you can simply convert it to DFA and minimize the DFA to get this: 

And thus get the answer: minimal states = 5

Related questions

2 votes
2 votes
2 answers
1
Anurag_s asked Aug 15, 2015
3,274 views
Let Σ= {a}, assume language, L= { a^(2012.K) / K 0}, what is minimum number of states needed in a DFA to recognize L
0 votes
0 votes
1 answer
2
radha gogia asked Nov 17, 2015
2,001 views
L={a^nk , k>0 and n is an integer constant }In this question which constant should be changed , n or k while considering the DFA since then it can be either n+1 or k+1 ?