GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A Moore machine outputs 1 exactly when the last four serial input bits are 0101 or 1010 (overlapping allowed) and 0 otherwise, including before four bits have arrived. What is the minimum number of states?
- A. 8
- B. 9
- C. 10
- D. 12
Correct answer: B. 9
Take the 31-state machine whose state is the last up to four input bits, and merge states with the same output and equivalent successors. The minimum is found by partition refinement; the machine needs one state per useful prefix and the two accepting states for the two patterns.
More Digital Logic questions
- A circuit receives a BCD digit ABCD (A is the MSB; inputs 1010 to 1111 never occur and may be treated as don't-cares) and outputs F = 1…
- F(A,B,C,D) = 1 when exactly two or exactly three of the four inputs are 1. How many literals does its minimal sum-of-products contain…
- A 2-bit × 2-bit unsigned multiplier has inputs A1A0 and B1B0 and outputs P3P2P1P0. Each output is realised separately by its own minimal…
- A BCD-to-excess-3 converter has inputs A B C D (BCD digit 0-9, codes 10-15 are don't-cares) and outputs w x y z (excess-3 code, w the…
- In a BCD-to-seven-segment decoder (inputs A B C D, A the MSB; codes 10-15 are don't-cares) segment e is on for the digits 0, 2, 6, 8. When…
- In a BCD-to-seven-segment decoder (inputs A B C D, A the MSB; codes 10-15 are don't-cares) segment a is on for the digits 0, 2, 3, 5, 6…