GATE Computer ScienceVery hardGATE CS (PYQ pattern)
Moore machine: the output is 1 exactly when the last four serial input bits (one per clock) are 0110 or 1001, and 0 otherwise (also before four bits have arrived). Overlapping occurrences are allowed. What is the minimum number of states of such a machine?
- A. 8
- B. 9
- C. 5
- D. 16
Correct answer: B. 9
The minimal machine is the Aho-Corasick style automaton with one state per prefix of 0110 or 1001 (ε, 0, 01, 011, 0110, 1, 10, 100, 1001), and no two of them are equivalent: 9 states. A single-pattern detector needs only 5.
More Digital Logic questions
- 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…
- 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…