GATE Computer ScienceVery hardGATE CS (PYQ pattern)
How many Boolean functions f(a,b,c,d,e) are invariant under the cyclic shift of their inputs, f(a,b,c,d,e) = f(b,c,d,e,a), and are also self-dual (f(x̄) = f(x)' for every input x)?
- A. 256
- B. 16
- C. 8
- D. 32
Correct answer: B. 16
The 32 inputs fall into 8 rotation classes (00000 and 11111, one class each of weight 1 and 4, two each of weight 2 and 3, the last six of size 5). A cyclic-invariant f is constant on each class, giving 2^8 = 256. Complementing maps the class of weight k to one of weight 5 − k, and no class is mapped to itself (5 is odd), so the classes form 4 pairs whose values must be opposite: 2^4 = 16.
More Digital Logic questions
- How many Boolean functions f(a,b,c,d) satisfy BOTH f(a,b,c,d) = f(b,a,c,d) and f(a,b,c,d) = f(c,d,a,b) for all inputs?
- A divide-by-50 circuit (one output pulse cycle per 50 clock cycles) is built as (i) a ring counter, (ii) a Johnson counter, (iii) a binary…
- A function is given as f(A,B,C,D) = Σm(0, 2, 5, 7, 8, 10, 13, 15). Its minimal sum-of-products expression is:
- A 5-bit Johnson (twisted-ring) counter is reset to 00000 and clocked continuously with the feedback Q4' → D0. How many of the 32 possible…
- F = AB + B'C is realised as a two-level NAND-NAND circuit. With A = C = 1, input B changes from 1 to 0 and the output momentarily glitches…
- A sequence detector must output 1 whenever the last four input bits are 1011, with overlapping occurrences allowed. What are the minimum…