GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A serial machine receives an unsigned binary number MSB first, one bit per clock, and must signal whether the number received so far is divisible by 6. What are the minimum numbers of states of a Mealy realisation (output on the transition) and of a Moore realisation (output attached to the state; the empty input counts as 0, which is divisible), respectively?
- A. 6 and 6
- B. 3 and 4
- C. 6 and 7
- D. 3 and 3
Correct answer: B. 3 and 4
With remainder r, a new bit gives 2r + b (mod 6), and 2r mod 6 depends only on r mod 3. So remainders r and r + 3 behave identically in the future: a Mealy machine needs only r mod 3 (3 states), its output being [2r + b ≡ 0 (mod 6)]. A Moore state must also show its own output: the class r ≡ 0 (mod 3) splits into remainder 0 (output 1) and 3 (output 0), while classes 1 and 2 need no split: 4 states.
More Digital Logic questions
- A Mealy detector for the pattern 1011 is fed the stream 11010110111010110 (left bit first). How many 1s does it output if (i) overlapping…
- An 8-bit synchronous up-counter uses T flip-flops (clock-to-Q 8 ns, setup 3 ns). In design S the toggle inputs come from a serial chain of…
- A mod-50 ripple counter uses six negative-edge-triggered T flip-flops (T = 1, clock-to-Q 15 ns each, Q0 clocked by the input). A NAND gate…
- Two flip-flops FF1 → FF2 are separated by combinational logic. Clock-to-Q: min 0.2 ns, max 0.5 ns. Logic delay: min 0.1 ns, max 1.8 ns. FF…
- Two flip-flops FF1 → FF2 are separated by combinational logic. Clock-to-Q is at least 0.2 ns, the logic delay is at least 0.1 ns and the…
- A latch is made of two cross-coupled NOR gates with active-high inputs S and R. The input pairs (S, R) are applied in order: (1,0), (0,0)…