GATE Computer ScienceEasyGATE CS (PYQ pattern)

A sequential machine has 37 states. What is the minimum number of flip-flops with (i) a dense binary encoding, (ii) one-hot encoding, (iii) 'two-hot' encoding, in which every state code has exactly two flip-flops set?

  1. A. 6, 37 and 9
  2. B. 6, 37 and 10
  3. C. 5, 37 and 10
  4. D. 6, 36 and 10

Correct answer: B. 6, 37 and 10

(i) 2⁵ = 32 < 37 ≤ 64, so 6. (ii) One flip-flop per state: 37. (iii) n flip-flops give C(n,2) two-hot codes: C(9,2) = 36 < 37 ≤ C(10,2) = 45, so 10.

More Digital Logic questions

Exams that ask this topic