Boolean Algebra & Logic Gates


Shared context
f(x,y,z)=Σm(0,1,2,4). Determine whether f is self-dual.
Answer & solution
Answer: Yes; f(x,y,z)=¬f(¬x,¬y,¬z). (no official key was published)
1. Self-duality requires complementary input vectors to produce complementary outputs. For three variables, complementing every input bit maps minterm index i to 7−i.
2. The complementary pairs are (0,7), (1,6), (2,5), and (3,4). The given on-set {0,1,2,4} contains exactly one member of each pair.
3. Thus whenever f is 1, its complementary input has value 0; and whenever f is 0, its complementary input has value 1. This proves the identity for all eight input vectors.
4. Having four ones alone would not prove self-duality: their distribution across complement pairs matters. Here all four pairs satisfy the required condition.