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?

  1. A. 14
  2. B. 8
  3. C. 16
  4. 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

Exams that ask this topic