recategorized by
2,451 views
6 votes
6 votes
Give a minimal DFA that performs as a $\mod - 3,\;$ $1$'s counter, i.e. outputs a $1$ each time the number of $1$'s in the input sequence is a multiple of $3$.
recategorized by

1 Answer

Best answer
10 votes
10 votes

Since it is given that the minimal DFA outputs $1$ $\implies$ we have to make a minimal DFA and then convert it into mealy/ moore machine by associating output with each input or state.

the minimal DFA will be as shown below :-

I am associating output with each input i.e. creating a mealy machine. It will print 1 each time the number of 1's in the input sequence is a multiple of 3.

selected by

Related questions

18 votes
18 votes
3 answers
1
makhdoom ghaya asked Nov 15, 2016
3,725 views
The below figure shows four $\text{D}$-type flip-flops connected as a shift register using a $\text{XOR}$ gate. The initial state and three subsequent states for three cl...
6 votes
6 votes
1 answer
2
makhdoom ghaya asked Nov 7, 2016
4,970 views
The above circuit produces the output sequence:$1111\quad 1111\quad0000\quad0000$$1111 \quad 0000\quad1111\quad0000$$1111 \quad 0001\quad0011\quad0101$$1010\quad1010\quad...
1 votes
1 votes
0 answers
3
makhdoom ghaya asked Nov 11, 2016
664 views
Design an $8 \times 8$ multiplier using five $4$-bits adders and $4$ ROM's each programmed to realise $4 \times 4$ multiplier.
21 votes
21 votes
3 answers
4
makhdoom ghaya asked Nov 15, 2016
4,187 views
A Boolean function $f$ is to be realized only by $\text{NOR}$ gates. Its $K$-map is given below:The realization is