886 views

1 Answer

0 votes
0 votes

A good first step for designing automata is to think about what states you will need.

Here, you would need to remember the sum –

which is not possible with a DFA

– but thankfully, we only need to remember the sum in mod3 arithmetic,

which means it can only have three distinct values: 0, 1 or 2…

Therefore, we can keep track of the sum mod 3 with a finite number of states. Then you need to devise the state transitions between the states representing these values.

A convenient fact of modular arithmetic to remember is that a+b≡a−(n−b) mod n ...

 

1. https://www.youtube.com/watch?v=VirRUZ7UuPA

 

Related questions

0 votes
0 votes
0 answers
1
koushriek asked May 19, 2022
1,367 views
Examples of accepted words: 1011, 101101, 1111Example of non-accepted words: 101, 1001, 010The solution says the min-DFA contains 5 states but I could only do it in 4. Am...
1 votes
1 votes
1 answer
2
sh!va asked Jun 21, 2016
1,807 views
Is this language regular? L1:{wxwR∣w,x∈{a,b}∗ and |w|,|x|>0},wR is the reverse of string wPlease explain..
0 votes
0 votes
1 answer
3
eddy asked Aug 6, 2016
2,530 views
any one plz explain it clearly