Question | How To Convert From CNF TO DNF?

  • Thread starter gabaygu
  • Start date
  • Tags
    Convert
In summary, De Morgan's Laws are a set of rules in Boolean algebra that explain how to negate logical expressions and convert between conjunctive and disjunctive normal form. They state that the negation of a conjunction is the disjunction of the negations of its individual terms, and vice versa. Applying De Morgan's Laws can help simplify complex expressions and make them easier to work with.
  • #1
gabaygu
2
0
using de' morgan Lows.
thanks!
 
Physics news on Phys.org
  • #2
Do you know what De Morgan's Laws are?
 
  • #3
Yes...why?
 
  • #4
And do you know what conjunctive and disjunctive normal form are? This is fairly straightforward, why don't you post what the definition of everything is and describe where you're stuck
 
  • #5
Despite this being "fairly straightforward", I don't get it.

Say you have something like (AB)+(CD). If you apply De Morgan's, you get something like ((A'+B')(C'+D'))', no? But now you've got this negation around the whole thing, so it's not in CNF. Conversely, if you start with something like (A+B)(C+D), you end up with ((A'B')+(C'D'))', don't you? But that's not DNF, because there's a negation around it.

Can you really convert from CNF to DNF and visa versa using De Morgan's laws; if so, how do you do it? If not, what procedure should you use?

If I think about it heuristically, I can see that (A+B)(C+D) = AC + AD + BC +BD, but I don't see a general procedure. Is it just that 'multiplying' it out is the manual procedure?
 
  • #6
luddite said:
Say you have something like (AB)+(CD). If you apply De Morgan's, you get something like ((A'+B')(C'+D'))', no? But now you've got this negation around the whole thing, so it's not in CNF.

You almost got it. But you must apply de Morgan's law twice because
for every Boolean function f we have: f = f ''

So let's say f = (AB)+(CD). Then, f = f '' = [ (AB)+(CD) ]'' = [ (A'+B')(C'+D') ] '
Then, use the distributive law within the [] brackets:
[ (A'+B')(C'+D') ]' = [ A'C' + A'D' + B'C' + B'D' ]' = (A+C) (A+D) (B+C) (B+D)
 

What is CNF and DNF?

CNF stands for Conjunctive Normal Form and DNF stands for Disjunctive Normal Form. These are two forms of propositional logic that are used to represent logical statements in a more standardized and simplified way.

Why would someone want to convert from CNF to DNF?

Converting from CNF to DNF can be useful for simplifying and clarifying logical statements. It can also make it easier to perform further logical operations on the statement.

What is the process for converting from CNF to DNF?

The process for converting from CNF to DNF involves using logical equivalences and rules to manipulate the statement into the desired form. This may involve using distributivity, De Morgan's laws, and other logical operations.

Are there any limitations to converting from CNF to DNF?

Yes, there are limitations to converting from CNF to DNF. Some logical statements may not have an equivalent DNF form, or the conversion may result in a longer or more complicated statement.

Is there a preferred form between CNF and DNF?

It depends on the specific situation and the goals of the user. Both CNF and DNF have their own advantages and disadvantages, so it is important to consider the context before deciding on a preferred form.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
Replies
2
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Computing and Technology
Replies
3
Views
3K
Replies
4
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Computing and Technology
Replies
3
Views
2K
Back
Top