GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Test functional completeness with constant assumptions

4 questions solved the same way, newest first. Back to Digital Logic

How these are solved

State allowed constant inputs; construct NOT and AND/OR from the candidate basis when possible, otherwise use preservation properties to prove it cannot express every Boolean function. Constant availability is material and retained per member.

2 marks · MCQ
Report issue

Boolean Algebra & Logic Gates

Question 43, GATE 2015: Boolean operations are f(X,Y,Z)=X′YZ+XY′+Y′Z′ and g(X,Y,Z)=X′YZ+X′YZ′+XY. Which singleton basis is functionally complete? A both; B only {f}; C only {g}; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

For g, factor Y: X′Y(Z+Z′)+XY=Y(X′+X)=Y. Repeated use of a projection can merely select existing inputs, not synthesize negation. For f, connect the third input to the second: f(X,Y,Y)=X′Y+XY′+Y′=X′Y+Y′=X′+Y′=(XY)′. This constructs NAND without supplying constants; NAND alone realizes NOT and AND and therefore all Boolean functions.

Solution: g=¬XYZ+¬XY¬Z+XY=Y. Compositions of this projection cannot produce all Boolean functions. For f=¬XYZ+X¬Y+¬Y¬Z, substitute Z=Y: f(X, Y, Y)=¬XY+X¬Y+¬Y=¬X+¬Y, NAND. Since NAND alone is functionally complete, f is complete whereas g is not, B.

Original paper, page 16 · Answer key

2 marks · MSQ
Report issue

Functionally complete component sets

Combinational Circuits

Question 2.9, GATE 1999: Choose universal component sets: A XOR and NOT; B 2:1 multiplexers; C AND and XOR; D gates AB+C.
Tap to enlarge
Select all that apply
Answer & solution

Answer: B,C if constants 0 and 1 are available (no official key was published)

A produces only affine Boolean functions, so it cannot express AND and is incomplete. For B, a mux with data inputs 1,0 implements NOT of its select; a mux with data 0,y and select x implements xy. NOT and AND are universal. For C, x XOR 1=¬x, again providing NOT plus AND. D is monotone, so compositions cannot implement inversion. Hence B,C under the usual available-constant convention. Without constant 1, B and C preserve zero and cannot produce NOT; the source does not explicitly state the constant-input convention, so this dependence is retained.

Original paper, page 4

5 marks · Descriptive
Report issue

Functional completeness of half adders

Combinational Circuits

Question 9, GATE 1993: Only half adders are available. Show how any binary Boolean function can be implemented using them. The source does not specify whether fixed logic inputs are allowed.
Tap to enlarge
Answer & solution

Answer: Universal with a fixed logic-1 input; false for constant-free combinational half-adder networks. (no official key was published)

A half adder on inputs x,y produces S=x XOR y and C=xy. Its carry output directly implements AND. If a fixed logic 1 is allowed as an input, its sum output on (x,1) is NOT x. Thus half adders provide the functionally complete basis {AND,NOT}. For example OR follows from De Morgan: x OR y = NOT((NOT x) AND (NOT y)). A concrete four-half-adder OR network uses H1(x,1).sum=nx, H2(y,1).sum=ny, H3(nx,ny).carry=z, H4(z,1).sum=x OR y; unused outputs may be ignored. Fan-out and tied inputs are permitted wiring operations, not additional gates.

To implement any two-input truth table f, form the minterms NOT x AND NOT y, NOT x AND y, x AND NOT y, and x AND y. OR together exactly those minterms whose truth-table rows have output 1. Each minterm uses available NOT/AND networks, and each OR uses the construction above. Empty selection gives constant 0, obtainable as H(x,x).sum; all four selected give constant 1. The same sum-of-products argument works for any finite number of Boolean inputs.

There is an essential qualification: without an independent logic-1 supply (or another non-zero-preserving primitive), the claim is false. Both half-adder outputs are 0 when both inputs are 0. By induction in topological order, every signal in a finite combinational network of such half adders is 0 when all external variables are 0. Therefore it cannot compute NOT x or the constant-1 function. Tying both inputs to the same variable gives XOR=0 and AND=x, not a source of 1. Feedback without a specified initial state is not a valid general combinational implementation. The intended universality proof consequently requires explicit permission to supply constant 1.

Original paper, page 10

Report issue

Universality of muxes and half adders

Combinational Circuits

Question 2(ii), GATE 1992: Which can realize arbitrary digital Boolean functions: XOR gates, multiplexers, half adders, OR gates? State constant-input assumptions.
Question 2(ii), GATE 1992: Which can realize arbitrary digital Boolean functions: XOR gates, multiplexers, half adders, OR gates? State constant-input assumptions.
Tap to enlarge
Select all that apply
Answer & solution

Answer: B, C for combinational functions with constants available (no official key was published)

A multiplexer implements Shannon expansion f=¬s f0+s f1, so recursively selecting cofactors realizes any Boolean function with constant leaves. A half adder supplies XOR and AND; tying one XOR input to 1 gives NOT, and AND plus NOT is functionally complete. XOR-only networks remain affine, while OR-only networks cannot implement negation. Thus B, C follow when constants, especially 1, are available. Without a supplied 1, mux and half-adder networks are zero-preserving and cannot realize every function. Also sequential circuits require state/feedback assumptions beyond combinational functional completeness; the source’s “all digital circuits” is broader than the standard intended claim.

Original paper, page 1