633 views
0 votes
0 votes

1 Answer

Best answer
2 votes
2 votes


First of all you need to construct the NFA for the given problem, where it asks for the 4th alphabet from the

RHS has to be always 'a'
example- aabbaabb 

once you are done with the NFA, convert to DFA!
 

State a` b
q0 q0B q0
B C C
C D D
D E E
E phi phi


For conversion we do the following

State a b
q0 q0B q0
q0B q0BC q0C
q0C q0BD q0D
q0D q0BE q0E
q0E q0B q0
q0BC q0BCD q0CD
q0BD q0BCE q0CE
q0BE q0BC q0C
q0CD q0BDE q0DE
q0CE q0BD q0D
q0DE q0BE q0E
q0BCD q0BCDE q0CDE
q0BCDE q0BCDE qoCDE
q0BCE q0BCD qoCD
q0BDE q0BCE q0CE
q0CDE q0BDE q0DE


Which Totals to 16 states... Hope this helps :)



 

selected by

Related questions

0 votes
0 votes
2 answers
1
aditi19 asked Dec 14, 2018
1,556 views
Given following NFAfind the minimal equivalent DFA
0 votes
0 votes
1 answer
2
Na462 asked Sep 10, 2018
996 views
Minimum states required for DFA that accepts : L = {w1 x w2 | w,x belongs to {a,b}* | w1 >= 0, w2 1 and x >= 0 }.
0 votes
0 votes
0 answers
3
Harshitha 123 asked Jun 12, 2018
417 views
How many states will be present in L={w/(n(a) + (2 n(b)mod 3)) lessthan 2} ? (I got 7 states is that correct)
1 votes
1 votes
1 answer
4
kislaya Pant asked May 8, 2018
1,118 views
Ques:- What are the number of final states in minimal DFA, where ∑= {a, b}, if every string starts with “aa” and length of the string is not congruent to 0 (mod 4)....