0 votes 0 votes how do I make a dfa for this Please guide. Theory of Computation theory-of-computation + – shivajikobardan asked Nov 1, 2021 shivajikobardan 886 views answer comment Share Follow See 1 comment See all 1 1 comment reply Saran12 commented Sep 24, 2022 reply Follow Share here what does it mean by sum of digits in x? where x belongs to {0,1,2} 0 votes 0 votes Please log in or register to add a comment.
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 Awe111 answered Nov 1, 2021 Awe111 comment Share Follow See all 0 reply Please log in or register to add a comment.