← 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)=xyz+xy(t+z).f(x,y,z,t)=x\cdot y\cdot z+\overline{x}\cdot y\cdot(t+\overline{z}).

Technique

Factor common literal yy; build truth table of the reduced 3-variable function gg; read off maxterms; simplify by consensus.

Solution

Step 1 — Factor out the common literal yy

f=y[xz+xˉ(t+zˉ)]=y[xz+xˉt+xˉzˉ].f=y\bigl[xz+\bar x(t+\bar z)\bigr]=y\bigl[xz+\bar x t+\bar x\bar z\bigr].

So f=ygf=y\cdot g where g(x,z,t)=xz+xˉt+xˉzˉg(x,z,t)=xz+\bar x t+\bar x\bar z.

Step 2 — Truth table of g(x,z,t)g(x,z,t) (8 rows)

g=1g=1 iff xz=1xz=1 or xˉt=1\bar x t=1 or xˉzˉ=1\bar x\bar z=1, i.e.

xxzzttgg
0001
0011
0100
0111
1000
1010
1101
1111

Zeros at (x,z,t)=(0,1,0),(1,0,0),(1,0,1)(x,z,t)=(0,1,0),(1,0,0),(1,0,1) — three maxterms.

Step 3 — Build CNF of gg from maxterms

Recall the maxterm for a zero row complements the literal where the variable is 11 (and keeps it where it’s 00):

RowMaxterm
(0,1,0)(0,1,0)(x+zˉ+t)(x+\bar z+t)
(1,0,0)(1,0,0)(xˉ+z+t)(\bar x+z+t)
(1,0,1)(1,0,1)(xˉ+z+tˉ)(\bar x+z+\bar t)

So

g=(x+zˉ+t)(xˉ+z+t)(xˉ+z+tˉ).g=(x+\bar z+t)(\bar x+z+t)(\bar x+z+\bar t).

Simplify (consensus on the last two):

(xˉ+z+t)(xˉ+z+tˉ)=(xˉ+z)+ttˉ=xˉ+z.(\bar x+z+t)(\bar x+z+\bar t)=(\bar x+z)+t\bar t=\bar x+z.

Hence the minimal CNF of gg is

g=(xˉ+z)(x+zˉ+t).g=(\bar x+z)(x+\bar z+t).

Step 4 — Re-attach the leading yy

Answer

  f=y(xˉ+z)(x+zˉ+t)  (minimal CNF, 3 clauses).  \boxed{\;f=y\cdot(\bar x+z)\cdot(x+\bar z+t)\;\text{(minimal CNF, 3 clauses).}\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.