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}.
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}
i think the l2 language is not same as l1 https://gateoverflow.in/123485/theoryof-computation
check tis out
64.3k questions
77.9k answers
244k comments
80.0k users