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?

  1. A. 6720
  2. B. 840
  3. C. 140
  4. 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

Exams that ask this topic