Normal Forms 125Example 4. Let x, y be elements of a boolean algebra. Use the DNF for the boolean
expression (x A y) V (-x A -'y) to design a combinatorial circuit.Solution. The boolean expression is in DNF. Therefore, the combinatorial circuit isy ~
X • "X ý"• A "•yY2.5.3 Conjunctive Normal Form
Consider again the formula used as a motivating example for DNFs:(p -). (q V r)) ++ (q -- p)The formula is logically equivalent to the formula(p V -q) A (-'p V q V r)
This logically equivalent formula is in conjunctive normal form (CNF). It consists of
a conjunction of two formulas that are disjunctions of literals. In this example, it is theconjunct of (p v --q) and (-,p v q v r). Each disjunction of zero or more literals can be
thought of as a restriction on when the formula can be T. The first restriction is that at leastone of p and -q must be T. The second is that at least one of -'p, q, and r must be T.
This can be thought of as a list of rules that must all be met for the formula to be satisfied.
Thus, CNF formulas are often easy to understand.Definition 3. Let O 1 , - 2 ..... m be a set of m literals with m E N. A clause is a disjunc-
tionXl1VX2 V ... V -mof m literals. A formula 0 is in CNF if it is a conjunction01A 02 A'..A Okof k clauses 01, 2,.. Ok where k E N.