How to convert a boolean function to CNF? Consider the boolean function: f ( x , y

tenes6x

tenes6x

Answered question

2022-05-18

How to convert a boolean function to CNF?
Consider the boolean function: f ( x , y , z ) = ( x + y ¯ ) ( y + z ¯ ) ( z + x ¯ )
I have converted it to DNF which is x y z + y ¯ z ¯ x ¯ , but I have problem with converting it to CNF.

Answer & Explanation

vard6vv

vard6vv

Beginner2022-05-19Added 12 answers

Step 1
Write the truth table for it.
x y z f ( x , y , z ) 1 1 1 1 1 1 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1
Step 2
Then read the one NF from the 1 rows:
f ( x , y , z ) x y z + x ¯ y ¯ z ¯
and read the other NF from the 0 rows f ( x , y , z ) ( x ¯ + y ¯ + z ) ( x ¯ + y + z ¯ ) ( x ¯ + y + z ) ( x + y ¯ + z ¯ ) ( x + y ¯ + z ) ( x + y + z ¯ )
In general, there is no "short" way to compute CNF.

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?