2

Conjunctive Normal Form (CNF) is a standardized notation for propositional formulas that dictate that every formula should be written as a conjunction of disjunctions. Every boolean formula can be converted to CNF. So for example:

A | (B & C)

Has a representation in CNF like this:

(A | B) & (A | C)

Is it a best practice in programming to write conditionals in CNF?

4

1 に答える 1