GATE Computer ScienceModerateGATE CS (PYQ pattern)
How many Boolean functions f(A,B,C,D) are self-dual (f(x̄) = f(x)' for every input x) and can also be written as a single product of literals (each variable appearing at most once, true or complemented)?
- A. 8
- B. 81
- C. 0
- D. 16
Correct answer: A. 8
A self-dual function has exactly half of its 16 minterms, i.e. 8. A product of k literals has 2^(4−k) minterms, so k = 1: the term is a single literal. Each of A, A', …, D' is self-dual, giving 8.
More Digital Logic questions
- F(A,B,C,D) = 1 exactly when the unsigned number ABCD (A is the MSB) is a prime. How many literals are there in the minimal sum-of-products…
- What is the minimum number of 2-input NOR gates needed to realise A XOR B when only the true inputs A and B are available?
- F(A,B,C,D,E) = E + (A ⊕ B ⊕ C ⊕ D). How many literals does the minimal sum-of-products of F contain?
- F(A,B,C,D,E) = Σm(1,4,5,10,11,14,16,17,21,25,26,28,30). How many literals are in its minimal sum-of-products?
- F(A,B,C,D,E) = Σm(1,2,3,5,6,8,9,11,12,13,15,19,21,23,24,26,27,30). How many prime implicants does F have?
- An 8-bit CPU compares A = 0x7F with B = 0x80 by computing A + (~B) + 1 and sets flags N (sign of result), Z, C (carry-out of the adder)…