NNF(Negation Normal Form)
A formula is in NNF when it consists only
Algorithm
- Write formula using only
,⋀,⋁ connectives.
- Push negations in until they apply only to propositions or negation of propositions(called literals), repeatedly replacing by equivalences
CNF(Conjunctive Normal Form)
A formula is in CNF when it is in form of A1⋀A2⋀A3⋀...An where each Ai is in form B1⋁B2⋁B3⋁...⋁Bn where each Bi is proposition or negation of proposition.
It easy to understand that CNF formula is in NNF . And for transforming propositional formula into CNF we can at first transform it into NNF then
- Push disjunctions in until they apply only to literals, repeatedly replacing by equivalences
A ⋁ (B ⋀ C)= (A ⋁ B) ⋀ (A ⋁ C)
(B ⋀ C) ⋁ A= (B ⋁ A) ⋀ (C ⋁ A)
DNF(Disjunctive Normal Form)(B ⋀ C) ⋁ A= (B ⋁ A) ⋀ (C ⋁ A)
A formula is in DNF when it is in form of A1⋁A2⋁A3⋁...An where each Ai is in form B1⋀B2⋀B3⋀...⋁Bn where each Bi is literal. If formula is in DNF then it is in the NNF also.The same transformation method work for DNF when we swap ⋁,⋀ connectives.
Later we see that CNF is useful when proofing theorems and DNF for refuting.
No comments:
Post a Comment