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 variables as a factor, either complemented or uncomplemented. Every minterm must contain all 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 for which 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 variables, each complemented or uncomplemented.
How it works
- Why a minterm is 1 for only one combination: equals 1 only when , , ; for any other assignment (e.g., or ) the product is 0.
Likewise equals 1 only when , , , and is 0 for every other combination. - Reading a minterm off a truth-table row: for a row where :
- if a variable's value in that row is 0, write the variable complemented (e.g., );
- if a variable's value is 1, write the variable uncomplemented (e.g., );
- AND the literals together to get that row's minterm.
- Form the canonical SOP: OR together the minterms of all rows where . Do not include minterms of rows where .
- Why only the minterms are included: if input is applied, among all the minterms in the expression exactly one minterm () evaluates to 1, so the OR of all of them gives .
Similarly input makes the second term 1, and so on — each included minterm covers exactly its own input combination.
If (the minterm for ) were wrongly included, then for input that term would become 1 and the function would show for , which is wrong. Hence include a minterm only for the combinations where . - Compact sigma notation: convert each minterm's variable assignment to its decimal value (treat the row as a binary number, e.g., , , , ), then write the function as a sum () of those decimal minterm indices.
Both the long form and the form represent the same function.
Formulas
- Minterm for a row: AND of all literals, where literal = variable if bit = 1, variable' if bit = 0.
- Canonical SOP: , where are the rows where ("" means OR).
- Compact notation: — denotes the OR (sum) of the listed minterms.
- Decimal value of a minterm: treat the -bit assignment as a binary number (e.g., ).
Worked examples
Example 1 — Minterm property check
- Minterm only for ; 0 for , , etc.
- Minterm only for ; 0 for every other combination.
Example 2 — Writing a function as canonical SOP Given a 3-variable function whose truth table has in four rows:
| Minterm | ||||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | (not included) |
| 0 | 0 | 1 | 1 | |
| 0 | 1 | 0 | 1 | |
| 0 | 1 | 1 | 0 | (not included) |
| 1 | 0 | 0 | 1 | |
| 1 | 0 | 1 | 0 | (not included) |
| 1 | 1 | 0 | 1 | |
| 1 | 1 | 1 | 0 | (not included) |
Step-by-step construction:
- Row : , , ⇒ minterm .
- Row : , , ⇒ minterm .
- Row : , , ⇒ minterm .
- Row : , , ⇒ minterm .
Canonical SOP:
Verification of operation:
- Input : only , so .
- Input : only , so .
- Same reasoning for the third and fourth terms.
Example 3 — Compact sigma representation Decimal values of the minterms: , , , . So , which is the compact form of . Both represent the same function.
Comparison
| Form | Meaning | Contains all variables? | Example (3 variables) |
|---|---|---|---|
| Sum of products (SOP) | OR of AND terms | Not necessarily | |
| Canonical sum of products (disjunctive normal form) | OR of minterms | Yes — every term has all variables |
In each term is a product (, , ) and they are OR-ed, so it is a sum of products, but the terms do not all contain every variable. In every term contains all variables, so it is the canonical sum of products.
Revision summary
- A minterm is a product term containing all 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 ; 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 — it would wrongly force for that input.
- Shortcut: convert each minterm's assignment to decimal and write , e.g., .
- 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 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 = ' (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,...,−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 minterms and maxterms, and there are distinct Boolean functions of n variables.