GATE Computer ScienceVery hardGATE CSE · UGC NET

How many Boolean functions of 4 variables are both affine (of the form a1x1 ⊕ a2x2 ⊕ a3x3 ⊕ a4x4 ⊕ c) and self-dual?

  1. A. 32
  2. B. 8
  3. C. 16
  4. D. 24

Correct answer: C. 16

An affine function is self-dual iff an odd number of coefficients a_i are 1 (8 choices of a) with either constant c: 8 × 2 = 16.

More Digital Logic questions

Exams that ask this topic