in Theory of Computation retagged by
1,380 views
0 votes
0 votes

Find dfa's for the following languages on Σ = {a,b}.

L= {w: na(w) mod 3 >nb(w) mod 3}.

L= {w :(na(w) – nb(w)) mod 3 > 0}.

in Theory of Computation retagged by
1.4k views

1 Answer

2 votes
2 votes

DFA for na(w) mod 3 

DFA for nb(w) mod 3

DFA for na(w) mod 3 >nb(w) mod 3

Final states would be {10, 20, 21}

For second one, (na(w) – nb(w)) mod 3 > 0

I think, final states should be {10, 20, 21}

edited by

4 Comments

thanks ...but 22 is not a final state ....
0
0
Oh. yes, coz it is giving 0 and mod greater than 0 needed
0
0
very well explained broo thanks
0
0

i think the l2 language is not same as l1 https://gateoverflow.in/123485/theoryof-computation 

check tis out

0
0