GATE / CS ARCHIVE

GATE CSE 1995 / QUESTION 13

Derive canonical conjunctive normal form

Discrete Mathematics · Propositional & Predicate Logic · Full GATE CSE 1995 paper

GATE 1995, Q13 5 marks · Descriptive
Report issue

Propositional & Predicate Logic

Question 13, GATE 1995: Find the principal/canonical CNF of (p∧q)∨(¬q∧r).
Tap to enlarge
Answer & solution

Answer: (p∨q∨r)∧(p∨¬q∨r)∧(p∨¬q∨¬r)∧(¬p∨q∨r). (no official key was published)

A canonical CNF contains one maxterm for each falsifying truth assignment, with all three variables appearing once in every clause. If q=0 the formula reduces to r, so it is false at (p,q,r)=(0,0,0) and (1,0,0). If q=1 it reduces to p, so it is false at (0,1,0) and (0,1,1). The four other rows are true.

To construct a clause false at a given row, write a variable positively when that row assigns it 0 and negatively when it assigns it 1. The false rows 000,010,011,100 therefore give respectively (p∨q∨r), (p∨¬q∨r), (p∨¬q∨¬r), and (¬p∨q∨r). Their conjunction is the answer, conventionally ΠM(0,2,3,4) with p as the most significant bit.

Each maxterm rules out exactly its own false row. Thus the conjunction excludes precisely the original formula’s four false rows and accepts all others, proving equivalence. A shorter equivalent CNF might be valid Boolean algebra, but would not satisfy the requested canonical form if its clauses omitted variables.

Original paper, page 7