GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A Moore machine outputs 1 when at least three of the last four serial input bits are 1, and 0 otherwise (also before four bits have arrived). What is the minimum number of states needed?
- A. 14
- B. 8
- C. 16
- D. 31
Correct answer: A. 14
Build the 31-state machine whose state is the history of the last four inputs (including the shorter start-up histories) and refine the partition by output and successors: 14 classes remain. It is not 8 (= 2³) because the current output and the start-up states also have to be distinguished.
More Digital Logic questions
- A serial machine receives an unsigned binary number MSB first, one bit per clock, and must signal whether the number received so far is…
- 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…