Converting CNF to DNF: Does it Always Work?

  • Thread starter Thread starter gnome
  • Start date Start date
  • Tags Tags
    Work
Click For Summary
The method of converting a CNF formula to an equivalent DNF formula by negating the entire formula, negating each literal, and simplifying using DeMorgan's laws does not universally apply. While it works for certain formulas, such as the example provided, it fails for others, like (p + q)(q + r), where the resulting expressions yield different truth values under specific conditions. This highlights the importance of verifying equivalence through truth tables for each individual case. Therefore, the conversion method is not guaranteed to be valid for all CNF formulas. Understanding the limitations of this approach is crucial for accurate logical transformations.
gnome
Messages
1,031
Reaction score
1
Will this method always convert a CNF formula to an equivalent DNF formula:

1. negate the ENTIRE formula
2. negate each literal
3. simplify using DeMorgan's laws

For example, given:

<br /> \begin{equation}<br /> \begin{split}<br /> A:&amp;\quad(p \vee q) \wedge (q \vee r ) \wedge (p \vee r )\notag \\<br /> &amp;\quad\overline{(\overline p \vee \overline q) \wedge (\overline q \vee \overline r) \wedge (\overline p \vee \overline r )}\notag \\<br /> &amp;\quad\overline{(\overline p \vee \overline q)} \vee \overline{(\overline q \vee \overline r)} \vee \overline{(\overline p \vee \overline r )}\notag \\<br /> B:&amp;\quad(p \wedge q) \vee (q \wedge r ) \vee (p \wedge r )\notag \\<br /> \end{split}<br /> \end{equation}<br />

A truth table shows that A and B are equivalent. But is this valid for ANY formula?
 
Physics news on Phys.org
No; for example, it does not work on (p + q).(q + r). You would get (p.q) + (q.r) which is not equivalent since when q is true and p and r are false, the formulas yield different truth values.
 
You're right. Thanks.
 
The standard _A " operator" maps a Null Hypothesis Ho into a decision set { Do not reject:=1 and reject :=0}. In this sense ( HA)_A , makes no sense. Since H0, HA aren't exhaustive, can we find an alternative operator, _A' , so that ( H_A)_A' makes sense? Isn't Pearson Neyman related to this? Hope I'm making sense. Edit: I was motivated by a superficial similarity of the idea with double transposition of matrices M, with ## (M^{T})^{T}=M##, and just wanted to see if it made sense to talk...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
11K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K