Truth Table Analysis: P1, P2, P3

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 7K views
XodoX
Messages
195
Reaction score
0
Hi, I got the following truth table...


P1 P2 P3 P(P1,P2,P3)

T T T T
T T F T
T F T F
F T T F
T F F T
F T F T
F F T F
F F F T


I need the conjunctive and disjunctive normal form for this truth table. I have no idea how to do this simple problem:frown: I hope somebody can help me!
 
Physics news on Phys.org
Disjunctive Normal Form (DNF) is the sum of all fundamental row products for which the value is 1.

Conjunction Normal Form (CNF) is the product of all fundamental row sums for which the value is 0.

e.g.

[tex]\begin{array}{c|c|c} p & q & pq' + p'q \\<br /> \hline<br /> 1 & 1 & 0 \\<br /> 1 & 0 & 1 \\<br /> 0 & 1 & 1 \\<br /> 0 & 0 & 0<br /> \end{array}[/tex]

DNF = pq' + p'q

CNF = (p + q)(p' + q')

I hope this is making sense. Now try it with your table.

--Elucidus
 
No..sorry, doesn't make much sense to me. DNF would be T and CNF would be F, right?
No idea, ugh.
 
XodoX said:
No..sorry, doesn't make much sense to me. DNF would be T and CNF would be F, right?
No idea, ugh.

DNF and CNF are expressions. For example (truth tables omitted)

Given [itex]p \leftrightarrow q[/itex]

The DNF is the expression pq + p'q' and the CNF is the expression (p + q')(p' + q).

You can prove (using truth tables among other things) that for any Boolean expression, it is equivalent to both its DNF and CNF.

--Elucidus
 
XodoX said:
Hi, I got the following truth table...


P1 P2 P3 P(P1,P2,P3)

T T T T
T T F T
T F T F
F T T F
T F F T
F T F T
F F T F
F F F T


I need the conjunctive and disjunctive normal form for this truth table. I have no idea how to do this simple problem:frown: I hope somebody can help me!

(1) Consider the lines where P(P1,P2,P3) has the value T.
For example the second line: P1=T, P2=T, P3=F
From these values you form the conjunctive term [itex](P1 \wedge P2 \wedge \neg \bar{P3})[/itex]
Here, only P3 is negated because P3=F.

(2) For each line where P(P1,P2,P3) has the value T form the
corresponding conjunctive term.

(3) To finally get your DNF form the disjunction of all the conjunctive terms from (2).