Normal disjunctive and conjuctive form from a truth table Let's say that we get a table with zeros

Carlie Fernandez

Carlie Fernandez

Answered question

2022-05-20

Normal disjunctive and conjuctive form from a truth table
Let's say that we get a table with zeros and ones. We need to get it into disjunctive normal form or conjuctive normal form. We also have discrete variables x 1 , . . , x n that are either 1 or 0. How do you determine where to put negation and where not to put it.
for instance: we have a row:
p = 0 , q = 1 , r = 0 , table row result = 1
Should I write this as: . . . ( ¬ p q ¬ r ) . . .
or . . . ( ¬ p q ¬ r ) . . .
What is the correct way ? What if the table row result would be zero?
Or the other way with negations? So my question is how do we know where the negations are?

Answer & Explanation

1c2ru3x

1c2ru3x

Beginner2022-05-21Added 9 answers

Step 1
When searching for a DNF, you concentrate on all rows where the table result is 1, create a conjunction for that row using the exact same formula, and then disjunct all of those conjunctions into a single, large disjunction.
Instead, when searching for a CNF, you concentrate on all the rows where the outcome is a 0, which causes you to produce a disjunction that is comparable to the conjunction's negation. That is, if with your example of p = 0 , q = 1 , r = 0 and table result = 0, you would create the term p  ¬ q  r. Finally, conjunct together all those disjunctions to get the CNF
Step 2
Example:
p q f ( p , q ) 1 1 1 1 0 0 0 1 1 0 0 0 
DNF: focus on rows 1 and 3, and that gives you ( p  q )  ( ¬ p  q )
CNF: focus on rows 2 and 4, and now you get ( ¬ p  q )  ( p  q )

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?