ArticleslgStudy

science

Disjunctive normal form

Disjunctive normal form is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Disjunctive normal form rather than just read about it. In short: In Boolean logic, a disjunctive normal form (DNF) is a normal form of a logical formula consisting of a disjunction of conjunctions; it can also be described as an OR of ANDs, a sum of products, or — in philosophical logic — a cluster concept. The disjunctive normal form and its counterpart, the conjunctive normal form, are the most common standardized ways of representing Boolean expressions.

Disjunctive normal form — main illustration
Disjunctive normal form — illustration

Key takeaways

  • Disjunctive normal form belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Disjunctive normal form to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Disjunctive normal form from memory before moving on to harder problems.

Reference excerpt

In Boolean logic, a disjunctive normal form (DNF) is a normal form of a logical formula consisting of a disjunction of conjunctions; it can also be described as an OR of ANDs, a sum of products, or — in philosophical logic — a cluster concept. The disjunctive normal form and its counterpart, the conjunctive normal form, are the most common standardized ways of representing Boolean expressions. They are widely used in various applications such as circuit design or automated theorem proving.

Definition A logical formula is considered to be in DNF if it is a disjunction of one or more conjunctions of one or more literals. A DNF formula is in full disjunctive normal form if each of its variables appears exactly once in every conjunction and each conjunction appears at most once (up to the order of variables). As in conjunctive normal form (CNF), the only propositional operators in DNF are and (∧), or (∨), and not (¬). The not operator can only be used as part of a literal, which means that it can only precede a propositional variable. The following is a context-free grammar for DNF:

DNF → (Disjunct) ∣ (Disjunct) ∨ DNF Disjunct → Literal ∣ Literal ∧ Disjunct Literal → Variable ∣ ¬ Variable Where Variable is any variable. For example, all of the following formulas are in DNF:

(A∧¬B∧¬C)∨(¬D∧E∧F∧D∧F) (A∧B)∨(C) (A∧B) (A) The formula A∨B is in DNF, but not in full DNF; an equivalent full-DNF version is (A∧B)∨(A∧¬B)∨(¬A∧B). The following formulas are not in DNF:

¬(A∨B), since an OR is nested within a NOT ¬(A∧B)∨C, since an AND is nested within a NOT A∨(B∧(C∨D)), since an OR is nested within an AND

Conversion to DNF In classical logic each propositional formula can be converted to DNF ...

... by syntactic means The conversion involves using logical equivalences, such as double negation elimination, De Morgan's laws, and the distributive law. Formulas built from the primitive connectives {∧,∨,¬} can be converted to DNF by the following canonical term rewriting system:

(¬¬x)⇝x(¬(x∨y))⇝((¬x)∧(¬y))(¬(x∧y))⇝((¬x)∨(¬y))(x∧(y∨z))⇝((x∧y)∨(x∧z))((x∨y)∧z)⇝((x∧z)∨(y∧z))

... by semantic means The full DNF of a formula can be read off its truth table. For example, consider the formula

ϕ=((¬(p∧q))↔(¬r↑(p⊕q))). The corresponding truth table is

The full DNF equivalent of ϕ is (p∧¬q∧r)∨(¬p∧q∧r)∨(¬p∧¬q∧r)∨(¬p∧¬q∧¬r) The full DNF equivalent of ¬ϕ is (p∧q∧r)∨(p∧q∧¬r)∨(p∧¬q∧¬r)∨(¬p∧q∧¬r)

Remark A propositional formula can be represented by one and only one full DNF. In contrast, several plain DNFs may be possible. For example, by applying the rule ((a∧b)∨(¬a∧b))⇝b three times, the full DNF of the above ϕ can be simplified to (¬p∧¬q)∨(¬p∧r)∨(¬q∧r). However, there are also equivalent DNF formulas that cannot be transformed one into another by this rule, see the pictures for an example.

Disjunctive Normal Form Theorem It is a theorem that all consistent formulas in propositional logic can be converted to disjunctive normal form. This is called the Disjunctive Normal Form Theorem. The formal statement is as follows:Disjunctive Normal Form Theorem: Suppose X is a sentence in a propositional language ℒ with n sentence letters, which we shall denote by A1,...,An. If X is not a contradiction, then it is truth-functionally equivalent to a disjunction of conjunctions of the form ±A1∧...∧±An, where +Ai=Ai, and −Ai=¬Ai.The proof follows from the procedure given above for generating DNFs from truth tables. Formally, the proof is as follows:Suppose X is a sentence in a propositional language whose sentence letters are A,B,C,…. For each row of X's truth table, write out a corresponding conjunction ±A∧±B∧±C∧…, where ±A is defined to be A if A takes the value T at that row, and is ¬A if A takes the value F at that row; similarly for ±B, ±C, etc. (the alphabetical ordering of A,B,C,… in the conjunctions is quite arbitrary; any other could be chosen instead). Now form the disjunction of all these conjunctions which correspond to T rows of X's truth table. This disjunction is a sentence in ℒ[A,B,C,…;∧,∨,¬], which by the reasoning above is truth-functionally equivalent to X. This construction obviously presupposes that X takes the value T on at least one row of its truth table; if X doesn’t, i.e., if X is a contradiction, then X is equivalent to A∧¬A, which is, of course, also a sentence in ℒ[A,B,C,…;∧,∨,¬].This theorem is a convenient way to derive many useful metalogical results in propositional logic, such as, trivially, the result that the set of connectives {∧,∨,¬} is functionally complete.

Maximum number of conjunctions Any propositional formula is built from n variables, where n≥1. There are 2n possible literals: L={p1,¬p1,p2,¬p2,…,pn,¬pn}. L has (22n−1) non-empty subsets. This is the maximum number of conjunctions a DNF can have. A full DNF can have up to 2n conjunctions, one for each row of the truth table. Example 1 Consider a formula with two variables p and q. The longest possible DNF has 2(2×2)−1=15 conjunctions:

(¬p)∨(p)∨(¬q)∨(q)∨(¬p∧p)∨(¬p∧¬q)_∨(¬p∧q)_∨(p∧¬q)_∨(p∧q)_∨(¬q∧q)∨(¬p∧p∧¬q)∨(¬p∧p∧q)∨(¬p∧¬q∧q)∨(p∧¬q∧q)∨(¬p∧p∧¬q∧q) The longest possible full DNF has 4 conjunctions: they are underlined. This formula is a tautology. It can be simplified to (¬p∨p) or to (¬q∨q), which are also tautologies, as well as valid DNFs. Example 2 Each DNF of the e.g. formula (X1∨Y1)∧(X2∨Y2)∧⋯∧(Xn∨Yn) has 2n conjunctions.

Computational complexity The Boolean satisfiability problem on conjunctive normal form formulas is NP-complete. By the duality principle, so is the falsifiability problem on DNF formulas. Therefore, it is co-NP-hard to decide if a DNF formula is a tautology. Conversely, a DNF formula is satisfiable if, and only if, one of its conjunctions is satisfiable. This can be decided in polynomial time simply by checking that at least one conjunction does not contain conflicting literals.

Variants An important variation used in the study of computational complexity is k-DNF. A formula is in k-DNF if it is in DNF and each conjunction contains at most k literals.

See also Algebraic normal form – an XOR of AND clauses Blake canonical form – DNF including all prime implicants Quine–McCluskey algorithm – algorithm for calculating prime implicants Conjunction/disjunction duality Propositional logic Truth table

Notes

… excerpt ends here. Continue reading the full article.

Illustrations

Disjunctive normal form: Karnaugh map of the disjunctive normal form (¬A∧C∧¬D) ∨ (B∧C∧D) ∨ (A∧¬C∧D) ∨ (¬B∧¬C∧¬D). Despite the different grouping, the same fields contain a "1" as in the previous map.
Karnaugh map of the disjunctive normal form (¬A∧C∧¬D) ∨ (B∧C∧D) ∨ (A∧¬C∧D) ∨ (¬B∧¬C∧¬D). Despite the different grouping, the same fields contain a "1" as in the previous map.

Worked examples

Example 1 — a first encounter with Disjunctive normal form

Start with the simplest possible case. Write down what Disjunctive normal form claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Disjunctive normal form before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Disjunctive normal form ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Disjunctive normal form

In research
Disjunctive normal form appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Disjunctive normal form in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Disjunctive normal form is common in secondary-school and first-year university syllabi. It links to neighbouring topics Knowledge compilation, Normal forms (logic), so understanding it makes those chapters shorter.
In everyday life
Look for Disjunctive normal form outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Disjunctive normal form” →

How to study Disjunctive normal form in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Disjunctive normal form means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Disjunctive normal form out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Disjunctive normal form in simple terms?

In Boolean logic, a disjunctive normal form (DNF) is a normal form of a logical formula consisting of a disjunction of conjunctions; it can also be described as an OR of ANDs, a sum of products, or — in philosophical logic — a cluster concept. The disjunctive normal form and its counterpart, the co…

Why does Disjunctive normal form matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Disjunctive normal form?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Disjunctive normal form.

Tags

  • Knowledge compilation
  • Normal forms (logic)

Keep exploring