GATE Computer ScienceVery hardGATE CSE

A Mealy machine reads a serial bit stream and outputs 1 whenever the last 7 bits read are 1101101 (overlapping occurrences allowed), otherwise 0. What is the minimum number of states of such a machine?

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

Correct answer: A. 7

Each distinct longest-matching prefix of 1101101 that must be remembered is its own Myhill–Nerode class, and the pattern's overlap structure does not merge any of them: 7 classes (unchanged with longer test strings: 7).

More Digital Logic questions

Exams that ask this topic