Skip to content
Official PYQ · 2014

GATE CS 2014 Set 2 Q6 — Boolean Algebra

Explain with AI

The dual of a Boolean function F(x1,x2,…,xn,+,.,′)F(x_1,x_2,\dots,x_n,+, .,'), written as FDF^D is the same expression as that of FF with ++ and ⋅⋅ 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
View worked solution

Answer: D

A Boolean function F(x1,x2,′,xn)F(x_1, x_2, ', x_n) of nn variables has 2n2^n possible input combinations (rows in its truth table).

By definition, a function FF is self-dual if and only if: F(x1,x2,…,xn)=F(xˉ1,xˉ2,…,xˉn)‾F(x_1, x_2, \dots, x_n) = \overline{F(\bar{x}_1, \bar{x}_2, \dots, \bar{x}_n)}

This condition imposes a constraint on the outputs of complementary input combinations:

  • We can group the 2n2^n input combinations into 2n−12^{n-1} complementary pairs of the form (x,xˉ)(x, \bar{x}).
  • For any such pair, if we assign a value to F(x)F(x), the value of F(xˉ)F(\bar{x}) is uniquely determined as its complement. Specifically:
    • If F(x)=0F(x) = 0, then F(xˉ)F(\bar{x}) must be 11.
    • If F(x)=1F(x) = 1, then F(xˉ)F(\bar{x}) must be 00.
  • Thus, for each of the 2n−12^{n-1} pairs, we have exactly 22 choices for the output assignment.

Since the choice for each pair is independent of the others, the total number of self-dual functions is: 2×2×⋯×2⏟2n−1 times=22n−1\underbrace{2 \times 2 \times \dots \times 2}_{2^{n-1} \text{ times}} = 2^{2^{n-1}}

Therefore, the correct option is D.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Boolean Algebra questions