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?
- A. 6, 37 and 9
- B. 6, 37 and 10
- C. 5, 37 and 10
- 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
- A 4-bit ripple counter (negative-edge-triggered toggle flip-flops, each clocked by the previous stage) goes from 0111 to 1000. Assuming…
- In a 4-bit ripple up-counter, count only the transient (spurious) states that appear between the stable counts, over one full cycle of 16…
- A non-zero Boolean function of three variables has a minimal sum-of-products with some number of product terms. For how many of the 255…
- Five labelled states of a sequential machine get distinct 3-bit codes on 3 flip-flops. Two assignments are regarded as equivalent when one…
- How many IEEE 754 single-precision values x satisfy 0 < x < 2⁻¹²⁵?
- IEEE 754 half precision has 1 sign bit, 5 exponent bits (bias 15) and 10 fraction bits. What is the smallest positive integer that it…