Converting CNF to DNF: Does it Always Work?

  • Context: Graduate 
  • Thread starter Thread starter gnome
  • Start date Start date
  • Tags Tags
    Work
Click For Summary
SUMMARY

The method for converting a Conjunctive Normal Form (CNF) formula to an equivalent Disjunctive Normal Form (DNF) formula using negation and DeMorgan's laws does not universally apply. While the example provided demonstrates the equivalence of the formulas A and B, the method fails for certain formulas, such as (p + q)(q + r), where the resulting expression does not maintain equivalence. Therefore, this conversion technique is not valid for all CNF formulas.

PREREQUISITES
  • Understanding of Conjunctive Normal Form (CNF) and Disjunctive Normal Form (DNF)
  • Familiarity with DeMorgan's laws
  • Basic knowledge of logical equivalence
  • Experience with truth tables
NEXT STEPS
  • Study the principles of logical equivalence in propositional logic
  • Explore advanced techniques for converting CNF to DNF
  • Learn about the limitations of logical transformations in propositional calculus
  • Investigate alternative methods for simplifying logical expressions
USEFUL FOR

Students of computer science, mathematicians, and anyone involved in logic design or Boolean algebra who seeks to understand the nuances of CNF and DNF conversions.

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:

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

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.
 

Similar threads

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