1. Gyanastra
  2. Digital Logic
  3. Canonical Forms and Functional Completeness
  4. Canonical Forms: Minterms and Canonical Sum of Products
Free lesson, no account needed 8 min read 13 practice questions after it
Asked in past papers13 times
  • GATE CSE20242020201920152010200820062005200420021997
  • UGC NET20162013

Digital Logic · Canonical Forms and Functional Completeness

Canonical Forms: Minterms and Canonical Sum of Products

Overview

A canonical sum of products is a standard way of writing any Boolean function as an OR of minterms — one minterm for every input combination where the function equals 1.
It gives a unique, unambiguous expression for a function directly from its truth table, and is the basis for compact sigma notation.

Key concepts

  • Minterm: a product term (a term formed using AND) that contains each of the nn variables as a factor, either complemented or uncomplemented. Every minterm must contain all nn variables, each appearing exactly once.
  • Key property of a minterm: a minterm gives the value 1 for exactly one combination of the input variables, and 0 for all other combinations.
  • Canonical sum of products (SOP): the sum (OR) of all the minterms of ff for which ff assumes the value 1.
  • Disjunctive normal form: another name for the canonical sum of products — "disjunctive" means OR, because the form is built by OR-ing several terms.
  • Canonical product of sums (conjunctive normal form): the second canonical form, built from maxterms — a sum term containing all nn variables, each complemented or uncomplemented.

How it works

  1. Why a minterm is 1 for only one combination: A⋅B⋅CA \cdot B \cdot C equals 1 only when A=1A=1, B=1B=1, C=1C=1; for any other assignment (e.g., 0,1,10,1,1 or 1,0,01,0,0) the product is 0.
    Likewise A⋅B‾⋅CA \cdot \overline{B} \cdot C equals 1 only when A=1A=1, B=0B=0, C=1C=1, and is 0 for every other combination.
  2. Reading a minterm off a truth-table row: for a row where f=1f = 1:
    • if a variable's value in that row is 0, write the variable complemented (e.g., A‾\overline{A});
    • if a variable's value is 1, write the variable uncomplemented (e.g., CC);
    • AND the literals together to get that row's minterm.
  3. Form the canonical SOP: OR together the minterms of all rows where f=1f = 1. Do not include minterms of rows where f=0f = 0.
  4. Why only the f=1f = 1 minterms are included: if input 0 0 10\,0\,1 is applied, among all the minterms in the expression exactly one minterm (A‾B‾C\overline{A}\overline{B}C) evaluates to 1, so the OR of all of them gives f=1f = 1.
    Similarly input 0 1 00\,1\,0 makes the second term 1, and so on — each included minterm covers exactly its own input combination.
    If A‾B‾C‾\overline{A}\overline{B}\overline{C} (the minterm for 0 0 00\,0\,0) were wrongly included, then for input 0 0 00\,0\,0 that term would become 1 and the function would show f=1f = 1 for 0 0 00\,0\,0, which is wrong. Hence include a minterm only for the combinations where f=1f = 1.
  5. Compact sigma notation: convert each minterm's variable assignment to its decimal value (treat the row as a binary number, e.g., 0 0 1=10\,0\,1 = 1, 0 1 0=20\,1\,0 = 2, 1 0 0=41\,0\,0 = 4, 1 1 0=61\,1\,0 = 6), then write the function as a sum (Σ\Sigma) of those decimal minterm indices.
    Both the long form and the Σ\Sigma form represent the same function.

Formulas

  • Minterm for a row: AND of all nn literals, where literal = variable if bit = 1, variable' if bit = 0.
  • Canonical SOP: f=m(i1)+m(i2)+⋯+m(ik)f = m(i_1) + m(i_2) + \dots + m(i_k), where i1…iki_1 \dots i_k are the rows where f=1f = 1 ("++" means OR).
  • Compact notation: f=∑m(i1,i2,…,ik)f = \sum m(i_1, i_2, \dots, i_k) — Σ\Sigma denotes the OR (sum) of the listed minterms.
  • Decimal value of a minterm: treat the nn-bit assignment as a binary number (e.g., A B C=0 1 0→2A\,B\,C = 0\,1\,0 \rightarrow 2).

Worked examples

Example 1 — Minterm property check

  • Minterm A⋅B⋅C=1A \cdot B \cdot C = 1 only for (A,B,C)=(1,1,1)(A,B,C) = (1,1,1); 0 for (0,1,1)(0,1,1), (1,0,0)(1,0,0), etc.
  • Minterm A⋅B‾⋅C=1A \cdot \overline{B} \cdot C = 1 only for (A,B,C)=(1,0,1)(A,B,C) = (1,0,1); 0 for every other combination.

Example 2 — Writing a function as canonical SOP Given a 3-variable function f(A,B,C)f(A,B,C) whose truth table has f=1f = 1 in four rows:

AABBCCffMinterm
0000(not included)
0011A‾B‾C\overline{A}\overline{B}C
0101A‾BC‾\overline{A}B\overline{C}
0110(not included)
1001AB‾C‾A\overline{B}\overline{C}
1010(not included)
1101ABC‾AB\overline{C}
1110(not included)

Step-by-step construction:

  • Row 0 0 10\,0\,1: A=0→A‾A=0 \rightarrow \overline{A}, B=0→B‾B=0 \rightarrow \overline{B}, C=1→CC=1 \rightarrow C ⇒ minterm A‾B‾C\overline{A}\overline{B}C.
  • Row 0 1 00\,1\,0: A=0→A‾A=0 \rightarrow \overline{A}, B=1→BB=1 \rightarrow B, C=0→C‾C=0 \rightarrow \overline{C} ⇒ minterm A‾BC‾\overline{A}B\overline{C}.
  • Row 1 0 01\,0\,0: A=1→AA=1 \rightarrow A, B=0→B‾B=0 \rightarrow \overline{B}, C=0→C‾C=0 \rightarrow \overline{C} ⇒ minterm AB‾C‾A\overline{B}\overline{C}.
  • Row 1 1 01\,1\,0: A=1→AA=1 \rightarrow A, B=1→BB=1 \rightarrow B, C=0→C‾C=0 \rightarrow \overline{C} ⇒ minterm ABC‾AB\overline{C}.

Canonical SOP: f=A‾B‾C+A‾BC‾+AB‾C‾+ABC‾f = \overline{A}\overline{B}C + \overline{A}B\overline{C} + A\overline{B}\overline{C} + AB\overline{C}

Verification of operation:

  • Input 0 0 10\,0\,1: only A‾B‾C=1\overline{A}\overline{B}C = 1, so f=1f = 1.
  • Input 0 1 00\,1\,0: only A‾BC‾=1\overline{A}B\overline{C} = 1, so f=1f = 1.
  • Same reasoning for the third and fourth terms.

Example 3 — Compact sigma representation Decimal values of the minterms: 0 0 1=10\,0\,1 = 1, 0 1 0=20\,1\,0 = 2, 1 0 0=41\,0\,0 = 4, 1 1 0=61\,1\,0 = 6. So f=∑m(1,2,4,6)f = \sum m(1, 2, 4, 6), which is the compact form of f=A‾B‾C+A‾BC‾+AB‾C‾+ABC‾f = \overline{A}\overline{B}C + \overline{A}B\overline{C} + A\overline{B}\overline{C} + AB\overline{C}. Both represent the same function.

Comparison

FormMeaningContains all variables?Example (3 variables)
Sum of products (SOP)OR of AND termsNot necessarilyA+BC+ACA + BC + AC
Canonical sum of products (disjunctive normal form)OR of mintermsYes — every term has all nn variablesABC+A‾BCABC + \overline{A}BC

In A+BC+ACA + BC + AC each term is a product (A⋅1A \cdot 1, B⋅CB \cdot C, A⋅CA \cdot C) and they are OR-ed, so it is a sum of products, but the terms do not all contain every variable. In ABC+A‾BCABC + \overline{A}BC every term contains all variables, so it is the canonical sum of products.

Revision summary

  • A minterm is a product term containing all nn variables, each either complemented or uncomplemented.
  • A minterm equals 1 for exactly one input combination and 0 for all others.
  • Canonical SOP = OR of all minterms for which f=1f = 1; also called disjunctive normal form.
  • Rule for writing a minterm from a row: bit 0 → complemented variable, bit 1 → uncomplemented variable.
  • Never include the minterm of a row where f=0f = 0 — it would wrongly force f=1f = 1 for that input.
  • Shortcut: convert each minterm's assignment to decimal and write f=∑m(indices)f = \sum m(\text{indices}), e.g., f=∑m(1,2,4,6)f = \sum m(1, 2, 4, 6).
  • SOP need not contain all variables in each term; canonical SOP must.
  • The other canonical form is the canonical product of sums (conjunctive normal form), built from maxterms — a sum term containing all nn variables, each complemented or uncomplemented.

Previous-year exam insights

  • A maxterm is a sum term containing all n variables, each complemented or uncomplemented; it equals 0 for exactly one input combination and 1 for all others, and the variable is complemented when the bit is 1 and uncomplemented when the bit is 0 (opposite of the minterm rule).
    Asked inGATE 2015GATE 2024
  • The canonical product of sums (conjunctive normal form) is the AND of the maxterms for which f = 0, written f = Π M(indices);
    the maxterm index set is exactly the complement of the minterm index set, i.e. Σm(S) = ΠM(all indices not in S).
    Asked inGATE 2015GATE 2024
  • Minterm index numbering: for variables ordered (A,B,C,...) with A as MSB, the index is the decimal value of the assignment;
    the same index labels the corresponding maxterm, so mim_{i} = MiM_{i}' (complement).
    Asked inGATE 2010GATE 2005UGC NET 2016
  • To convert a non-canonical SOP expression to minterm list, expand each product term by ANDing with (X + X') for every missing variable, then collect the resulting minterm indices; for a POS expression, expand each sum term with (X·X') to get maxterms.
    Asked inGATE 2010GATE 2005GATE 2004
  • Set operations on minterm lists: AND of functions = intersection of their minterm index sets, OR = union, complement = set difference from the full set {0,...,2n2^{n}−1}, and XOR = symmetric difference;
    these let you solve multi-gate circuits given in Σm form.
    Asked inGATE 2024GATE 2019GATE 2008GATE 2002GATE 1997
  • A Boolean function of n variables has 2n2^{n} minterms and 2n2^{n} maxterms, and there are 22n2^{2^n} distinct Boolean functions of n variables.
Pages 1–2 of 2