Question

The dual of a Boolean function F(x1,x2,…,xn,+,⋅,′)F(x_1, x_2, \dots, x_n, +, \cdot, '), written as FDF^D, is the same expression as that of FF with ++ and ⋅\cdot swapped. FF is said to be self-dual if F=FDF = F^D. The number of self-dual functions with nn Boolean variables is

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2014 answer key

Solution

Use the property that self-dual Boolean functions are constrained by complementary pairs of truth table entries.

  1. Definition of Self-Dual Function:
    A function F(x1,…,xn)F(x_1, \dots, x_n) is self-dual if F=FDF = F^D, which is algebraically equivalent to:

    F(x1,x2,…,xn)=F(x1‾,x2‾,…,xn‾)‾.F(x_1, x_2, \dots, x_n) = \overline{F(\overline{x_1}, \overline{x_2}, \dots, \overline{x_n})}.
  2. Truth Table Combinations:

    • A Boolean function with nn variables has 2n2^n distinct input combinations (minterms).
    • Each minterm mm has a unique complementary minterm m′=2n−1−mm' = 2^n - 1 - m where every bit is inverted.
    • These form exactly 2n2=2n−1\frac{2^n}{2} = 2^{n-1} mutually exclusive pairs of complementary minterms.
  3. Degrees of Freedom:

    • For any pair of complementary minterms (m,m′)(m, m'), if we assign F(m)=b∈{0,1}F(m) = b \in \{0, 1\}, the self-dual condition strictly fixes F(m′)=1−bF(m') = 1 - b.
    • Therefore, we have an independent binary choice (0 or 1) for only 2n−12^{n-1} input pairs.
  4. Total Number of Self-Dual Functions:

    N=22n−1.N = 2^{2^{n-1}}.

This matches option D.

Final answer

D

Common trap

Confusing 2^(2^(n-1)) with 2^(2^n - 1) or 2^(n-1).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 2
Question
16 of 65, printed as CS Q.6
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.