GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A Boolean function is symmetric if it is unchanged by every permutation of its inputs, and self-dual if f(x̄) = f(x)' for every input x. How many functions are both symmetric and self-dual (a) among functions of five variables and (b) among functions of four variables?

  1. A. (a) 8, (b) 4
  2. B. (a) 8, (b) 0
  3. C. (a) 32, (b) 16
  4. D. (a) 4, (b) 2

Correct answer: B. (a) 8, (b) 0

A symmetric function is fixed by its values v0..vn on input weights 0..n. Self-duality forces v(n−k) = v(k)'. For n = 5 the weights pair up as (0,5), (1,4), (2,3), so 2³ = 8 choices. For n = 4 weight 2 pairs with itself, demanding v2 = v2', which is impossible, so the count is 0.

More Digital Logic questions

Exams that ask this topic