← 2023 Paper 2
UPSC 2023 Maths Optional Paper 2 Q7a-i — Step-by-Step Solution
7.5 marks · Section B
Boolean algebra · Numerical Analysis · asked 15× in 13 yrs · Read the full method →
Question
Find the conjunctive normal form (CNF) of the following Boolean function:
f(x,y,z,t)=x⋅y⋅z+x⋅y⋅(t+z).
Technique
Factor common literal y; build truth table of the reduced 3-variable function g; read off maxterms; simplify by consensus.
Solution
Step 1 — Factor out the common literal y
f=y[xz+xˉ(t+zˉ)]=y[xz+xˉt+xˉzˉ].
So f=y⋅g where g(x,z,t)=xz+xˉt+xˉzˉ.
Step 2 — Truth table of g(x,z,t) (8 rows)
g=1 iff xz=1 or xˉt=1 or xˉzˉ=1, i.e.
- x=1: g=z (need xz=1, which requires z=1; the other two minterms have xˉ=0).
- x=0: g=1 iff t=1 or z=0, i.e. g=t+zˉ.
| x | z | t | g |
|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
Zeros at (x,z,t)=(0,1,0),(1,0,0),(1,0,1) — three maxterms.
Step 3 — Build CNF of g from maxterms
Recall the maxterm for a zero row complements the literal where the variable is 1 (and keeps it where it’s 0):
| Row | Maxterm |
|---|
| (0,1,0) | (x+zˉ+t) |
| (1,0,0) | (xˉ+z+t) |
| (1,0,1) | (xˉ+z+tˉ) |
So
g=(x+zˉ+t)(xˉ+z+t)(xˉ+z+tˉ).
Simplify (consensus on the last two):
(xˉ+z+t)(xˉ+z+tˉ)=(xˉ+z)+ttˉ=xˉ+z.
Hence the minimal CNF of g is
g=(xˉ+z)(x+zˉ+t).
Step 4 — Re-attach the leading y
Answer
f=y⋅(xˉ+z)⋅(x+zˉ+t)(minimal CNF, 3 clauses).