GATE Computer ScienceVery hardGATE CS (PYQ pattern)
Five labelled states of a sequential machine get distinct 3-bit codes on 3 flip-flops. Two assignments are regarded as equivalent when one becomes the other by permuting the flip-flops and/or complementing any subset of them (neither changes the cost of the logic). How many inequivalent assignments are there?
- A. 6720
- B. 840
- C. 140
- D. 280
Correct answer: C. 140
There are 8·7·6·5·4 = 6720 raw assignments. The group of flip-flop permutations (3! = 6) and complementations (2³ = 8) has 48 elements and moves every assignment of five distinct codes to a different one (a non-trivial symmetry cannot fix five distinct codes pointwise), so the classes have 48 members: 6720 / 48 = 140, matching (2ⁿ − 1)!/((2ⁿ − s)!·n!) = 7!/(3!·3!). Using only complementation gives 840; only permutations, 1120.
More Digital Logic questions
- 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…
- What is the minimum two's complement width that can hold every exact product of (i) two 12-bit two's complement integers, and (ii) a…
- A two's complement accumulator starts at 0 and adds 100 signed 8-bit values (−128 to 127) and 100 unsigned 8-bit values (0 to 255), in any…
- In 3-digit BCD arithmetic, 254 − 783 is computed by adding the 10's complement of 783 to 254 (with decimal correction in each digit). What…
- A 4-bit cyclic Gray code is a cyclic sequence through all sixteen 4-bit words in which consecutive words, including the last and the…