0
$\begingroup$

Given the following boolean formula in KNF $$ (x_1 \lor y_1) \land (x_2 \lor y_2) \land \ldots (x_n \lor y_n) $$ we have the equivalent KNF \begin{align*} & (x_1 \land x_2 \land \ldots \land x_n) \\ \lor & (y_1 \land x_2 \land \ldots \land x_n) \\ \lor & (x_1 \land y_2 \land \ldots \land x_n) \\ \lor & (y_1 \land y_2 \land \ldots \land x_n) \\ & \vdots \\ \lor & (y_1 \land y_2 \land \ldots \land y_n) \end{align*} where in every clause some subset $A \subseteq \{y_1, \ldots, y_n\}$ are $y_i$'s, the rest are $x_i$'s. So we have $2^{n}$ clauses, one for every subset.

But how to show that the resulting KNF is minimal, i.e. that the exponential blowup is inavoidable?

$\endgroup$
1
$\begingroup$

The given CNF (Conjunctive Normal Form) consists of $n$ binary disjunctive clauses. The clauses are independent of each other, as each of the input variables does occur in exactly one clause. Each clause can be fulfilled in three ways:

$$\begin{aligned} x_k \land \lnot y_k \\ \lnot x_k \land y_k \\ x_k \land y_k \\ \end{aligned}$$

The $n$ clauses lead to $3^n$ minterms with $2n$ literals each.

The suggested DNF (Disjunctive Normal Form) consists of $2^n$ implicants (conjunctive clauses) with $n$ literals each. Each implicant has $n$ undetermined and $n$ fixed literals and thus covers $2^n$ minterms. To show that all implicants are essential, it is sufficient to show that each implicant exclusively covers one of the $3^n$ minterms.

Example:
The following Karnaugh Mahoney map illustrates an example for $n=3$:

CNF: $$(x_1 \lor y_1) \land (x_2 \lor y_2) \land (x_3 \lor y_3)$$

DNF: $$(x_1 \land y_2 \land x_3) \lor (y_1 \land y_2 \land x_3) \lor (x_1 \land x_2 \land x_3) \lor (y_1 \land x_2 \land x_3) \lor (x_1 \land y_2 \land y_3) \lor (y_1 \land y_2 \land y_3) \lor (x_1 \land x_2 \land y_3) \lor (y_1 \land x_2 \land y_3)$$

enter image description here

A Karnaugh map might look more familiar:

enter image description here

Each of the eight implicants covers eight minterms. In this example, the eight exclusively covered minterms are: $21, 22, 25, 26, 37, 38, 41, 42$
Example: Implicant $x_1 \land y_2 \land x_3$ has $3$ literals, while three remaining literals $x_2$, $y_1$ and $y_3$ are not specified and thus undetermined. There are $8$ possible choices for the undetermined literals. Hence, the implicant covers $2^3$ minterms. Each grid $1$-cell in the map corresponds to one minterm. There are $3^3 = 27$ minterms for this example as each of the $3$ CNF clauses has $3$ ways to be fulfilled. None of the eight implicants can be removed without uncovering one minterm. Therefore, the DNF is irredundant or minimal.

Why is the suggested cover minimal for all $n$?
For the general case, the $2^n$ minterms exclusively covered by one implicant have $n$ false (inverted) literals and $n$ true (positive) literals. The $2^n$ implicants do not have any false literals. The exclusively covered minterms therefore correspond to exactly one implicant each. None of the implicants can be removed. The implicants cannot be reduced in terms of number of literals without disregarding CNF clauses. The suggested DNF cover is minimal.

$\endgroup$
  • $\begingroup$ Thanks for your answer! But I do not understand it fully, what does your sentence "each implicant has $n$ undetermined and $n$ fixed literals and thus covers $2^n$ minterms" mean? And in your Karnaugh maps, for example in the first for $y_3x_3 = 00$ (upper one on the left) why are there any $1$ entries at all, wouldn't $y_3 x_3 = 00$ imply the term $(y_3 \land x_3)$ is zero, hence every conjunction with it evaluates to zero, in particular your example $(x_1 \lor y_1) \land (x_2 \lor y_2) \land (x_3\lor y_3)$? $\endgroup$ – StefanH Apr 15 '18 at 21:46
  • $\begingroup$ Okay, but sorry... what is a minterm for you (a conjunction of what literals in particular)? You write in the beginning you get $3^n$ minterms (anyway, how?) and in your map you have $49$ entries, but how do these correspond to minterms? And certainly $49$ is not a power of $3$... $\endgroup$ – StefanH Apr 16 '18 at 15:11
  • $\begingroup$ Okay, thanks for the feedback, I understand it now! $\endgroup$ – StefanH Apr 20 '18 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.