GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A serial detector outputs 1 whenever the last four input bits are 1101 or 1011 (overlapping occurrences count). What are the minimum numbers of states of a Mealy realisation and of a Moore realisation, respectively?

  1. A. 6 and 8
  2. B. 7 and 8
  3. C. 6 and 7
  4. D. 8 and 9

Correct answer: A. 6 and 8

Mealy states must remember only the useful suffix: ε, 1, 10, 11, 101, 110 — 6 states (after 1101 or 1011 the machine lands in 101 or 11 again). Moore needs separate output states for the two hits, since 1101 continues like 101 and 1011 continues like 11, but each must output 1: 8 states. Treating the two detections as one state gives 7.

More Digital Logic questions

Exams that ask this topic