GATE Computer ScienceHardGATE CS (PYQ pattern)

A Boolean function f is self-dual if f(x̄) = f(x)' for every input x. How many self-dual functions of three variables A, B, C depend essentially on all three variables?

  1. A. 10
  2. B. 16
  3. C. 8
  4. D. 6

Correct answer: A. 10

The 8 inputs form 4 complementary pairs, so there are 2⁴ = 16 self-dual functions. Those that ignore a variable are self-dual functions of fewer variables: only the 6 literals A, B, C, A', B', C' (no constant is self-dual and the 2-variable self-dual ones are literals too). 16 − 6 = 10.

More Digital Logic questions

Exams that ask this topic