GATE Computer ScienceVery hardGATE CSE · UGC NET

How many Boolean functions of 4 variables are both monotone (non-decreasing in every variable) and self-dual (f(x̄1,…,x̄4) = complement of f(x1,…,x4))?

  1. A. 12
  2. B. 16
  3. C. 8
  4. D. 20

Correct answer: A. 12

Brute force over all 65536 functions: self-duality forces f(x) ≠ f(x̄) for each of the 8 complementary pairs, and exactly 12 of those are also monotone.

More Digital Logic questions

Exams that ask this topic