3.1 Minterms, Maxterms & Canonical Representation
๐ก Core Intuition: The Guest List vs. The Banned Listโ
To manage building security for an exclusive facility, a security team can track authorized access in one of two ways:
๐ณ The Everyday Analogy: Invites vs. Bansโ
- The VIP Guest List (Sum of Products / Minterms): The security team keeps a roster of everyone cleared for entry. Whenever a person arrives, the guard checks the list. If their name appears, the door unlocks (Output = 1). If their name is missing, the door stays locked (Output = 0).
- The Banned List (Product of Sums / Maxterms): The security team keeps a roster of forbidden individuals. Anyone arriving is permitted entry by default, unless their name appears on the blacklist, which triggers an immediate lockout (Output = 0).
If only 3 dignitaries are allowed into the facility out of 100 applicants, keeping a VIP Guest List of 3 names is concise. If 97 people are allowed and only 3 are barred, publishing a Banned List of 3 names is far more efficient. Both strategies encode the exact same reality, but one is dramatically more compact depending on which outcome is less frequent.
๐ป Bridging to Computer Scienceโ
In digital hardware, a combinational circuit produces a binary output ( or ) for each of the possible input combinations. Rather than memorizing all rows of a truth table, hardware engineers store Boolean functions algebraically using:
- Sum of Products (SOP): Focuses exclusively on input conditions where the output is HIGH (1), representing each active row as an ANDed minterm.
- Product of Sums (POS): Focuses exclusively on input conditions where the output is LOW (0), representing each inactive row as an ORed maxterm.
Because binary outputs are complementary, SOP and POS carry identical expressive power. An engineer selects whichever form requires fewer terms, minimizing gate count, silicon area, and propagation delay.
๐Table of Contents
- ๐ Boolean Expressions & Functional Representation
- ๐งฉ Minterms: Definition, Indexing & Truth Table Mapping
- ๐ก๏ธ Maxterms: Definition, Indexing & Dual Truth Table Mapping
- ๐ The Fundamental Complementary Relationship: Minterms vs. Maxterms
- โ๏ธ Architectural Comparison: Canonical SOP vs. Canonical POS
- ๐งฎ Degrees of Freedom: Total Possible Boolean Functions
- ๐ญ Real-World Production Context: Programmable Logic Arrays (PLA) & Memory Decoders
- ๐ Numerical Applications & Worked Examples
- ๐ฏ Exam & Interview Pitfall Check
๐ Boolean Expressions & Functional Representationโ
A Boolean expression is an algebraic formula composed of binary variables, constants ( and ), and logical operators (AND, OR, NOT). It serves as a mathematical blueprint describing when a digital circuit asserts an active voltage.
Literal
Atomic Variable- A single binary variable in either its uncomplemented form (A) or complemented form (A').
- An n-variable system contains 2n distinct possible literals.
Product Term
AND Expression- A logical AND of one or more literals.
- Evaluates to 1 if and only if every single constituent literal in the term evaluates to 1.
- Examples include AB, A'BC, and AB'C'D.
Sum Term
OR Expression- A logical OR of one or more literals.
- Evaluates to 0 if and only if every single constituent literal in the term evaluates to 0.
- Examples include (A + B), (A' + B + C).
Canonical Form
Complete Specification- An expression where every single product or sum term contains all n variables of the system.
- Provides a unique, standardized algebraic fingerprint directly isomorphic to the truth table.
๐งฉ Minterms: Definition, Indexing & Truth Table Mappingโ
For a Boolean function of variables, a minterm is a product (AND) term containing all variables, with each variable appearing exactly once in either its uncomplemented or complemented form.
For variables, exactly distinct minterms exist, designated as .
Governing Rules of Mintermsโ
- Uniqueness of Output 1: A minterm evaluates to 1 for exactly one of the input combinations, and evaluates to 0 for all other combinations.
- Literal Assignment Rule: To force a product term to evaluate to 1 for a specific binary row:
- A variable assigned binary 1 is written in uncomplemented form ().
- A variable assigned binary 0 is written in complemented form ( or ).
- Minterm Designation Index (): The subscript index corresponds directly to the decimal equivalent of the binary input combination.
3-Variable Minterm Truth Table ()โ
| Binary Combination () | Decimal Index | Minterm Formula | Designation | Evaluates to 1 when |
|---|---|---|---|---|
0 0 0 | 0 | |||
0 0 1 | 1 | |||
0 1 0 | 2 | |||
0 1 1 | 3 | |||
1 0 0 | 4 | |||
1 0 1 | 5 | |||
1 1 0 | 6 | |||
1 1 1 | 7 |
Any Boolean function can be uniquely expressed as the logical sum (OR) of those minterms for which the function evaluates to 1:
where represent the decimal indices of the truth table rows where .
๐ก๏ธ Maxterms: Definition, Indexing & Dual Truth Table Mappingโ
For a Boolean function of variables, a maxterm is a sum (OR) term containing all variables, with each variable appearing exactly once in either its uncomplemented or complemented form.
For variables, exactly distinct maxterms exist, designated as .
Governing Rules of Maxtermsโ
- Uniqueness of Output 0: A maxterm evaluates to 0 for exactly one of the input combinations, and evaluates to 1 for all other combinations.
- Literal Assignment Rule: To force a sum term to evaluate to 0 for a specific binary row:
- A variable assigned binary 0 is written in uncomplemented form ().
- A variable assigned binary 1 is written in complemented form ( or ).
- Maxterm Designation Index (): The subscript index corresponds directly to the decimal equivalent of the binary combination where the maxterm produces 0.
3-Variable Maxterm Truth Table ()โ
| Binary Combination () | Decimal Index | Maxterm Formula | Designation | Evaluates to 0 when |
|---|---|---|---|---|
0 0 0 | 0 | |||
0 0 1 | 1 | |||
0 1 0 | 2 | |||
0 1 1 | 3 | |||
1 0 0 | 4 | |||
1 0 1 | 5 | |||
1 1 0 | 6 | |||
1 1 1 | 7 |
Any Boolean function can be uniquely expressed as the logical product (AND) of those maxterms for which the function evaluates to 0:
where represent the decimal indices of the truth table rows where .
๐ The Fundamental Complementary Relationship: Minterms vs. Maxtermsโ
The algebraic connection between minterms and maxterms is grounded directly in De Morgan's Laws.
The complement of the -th minterm is identically equal to the -th maxterm:
Let binary row for a 3-variable system , which corresponds to the bit pattern 1 0 0.
The corresponding minterm is:
Applying De Morgan's Law to find the complement :
By definition, . Therefore:
Set-Theoretic Partition of the Truth Tableโ
Because a Boolean function at any input row must evaluate to either 0 or 1 (Law of the Excluded Middle), the set of minterm indices and the set of maxterm indices form a complete, non-overlapping partition of the input domain :
For any -variable Boolean function :
Consequently, if for , then:
โ๏ธ Architectural Comparison: Canonical SOP vs. Canonical POSโ
Canonical SOP vs. Canonical POS Representation
Comparing the two canonical pillars of Boolean functional representation
Canonical SOP (โ m)
- โขConstructed by ORing product terms (minterms).
- โขTracks the input combinations where F = 1.
- โขUncomplemented variable = 1; Complemented variable = 0.
- โขIdeal when the number of 1s in the truth table is strictly less than 2^(n-1).
Canonical POS (โ M)
- โขConstructed by ANDing sum terms (maxterms).
- โขTracks the input combinations where F = 0.
- โขUncomplemented variable = 0; Complemented variable = 1.
- โขIdeal when the number of 0s in the truth table is strictly less than 2^(n-1).
๐งฎ Degrees of Freedom: Total Possible Boolean Functionsโ
A fundamental question in hardware synthesis and switching theory is: How many distinct Boolean functions can be constructed using binary variables?
With binary variables, the total number of distinct Boolean functions that can be defined is:
- Input Combinations: An -variable truth table possesses exactly distinct input rows:
-
Output Choices per Row: For each distinct row, the function output can be independently assigned either
0or1. There are exactly independent choices for each row. -
Multiplication Principle of Combinatorics: Because each row assignment is completely independent of all other rows, the total number of unique truth tables is:
Generalized Formula for Multi-Valued Systemsโ
If inputs and outputs have varying discrete states, the formula generalizes as:
where:
- (for binary logic, ).
- (for binary logic, ).
- .
Growth Rate Across Variable Countsโ
| Variables () | Truth Table Rows () | Total Distinct Functions () | Order of Magnitude |
|---|---|---|---|
| 2 | 4 functions () | ||
| 4 | 16 functions (AND, OR, XOR, NAND, etc.) | ||
| 8 | 256 functions | ||
| 16 | ~65.5 Thousand functions | ||
| 32 | ~4.29 Billion functions | ||
| 64 | Quintillion functions |
The double-exponential growth highlights why manual algebraic minimization becomes impossible beyond 4 to 5 variables, necessitating algorithmic minimization techniques like Karnaugh Maps and the Quine-McCluskey method.
๐ญ Real-World Production Context: Programmable Logic Arrays (PLA) & Memory Decodersโ
Canonical representation is not merely an academic formalism; it serves as the physical hardware blueprint inside high-density programmable devices and memory arrays:
Hardware Realization of Canonical SOP in PLAs and ROMs
Translating address lines into hardware minterms through decoders and summing planes
Address Bus (A, B, C)
n physical address signals carrying binary bit combinations.
Binary Decoder (2โฟ Terms)
Array of AND gates physically generating all 2โฟ canonical minterms (m0 to m7).
Programmable OR Matrix
Configurable diode or transistor matrix summing selected minterms (โ m).
Target Output F
Asserts HIGH whenever any selected minterm evaluates to 1.
- Hardware Memory Decoders: An -to- binary memory address decoder (such as a 3-to-8 decoder) is physically an array of AND gates. Each output pin of the decoder produces exactly one minterm . Asserting an address selects exactly one memory row.
- Programmable Logic Arrays (PLA) & PROMs: A Read-Only Memory (ROM) is physically constructed as a fixed AND-plane generating all minterms, connected to a programmable OR-plane that fuses specific minterms together. The stored program in a ROM is literally the canonical SOP expansion of the desired data words!
- Control Unit Microcode: In microprocessor design, instruction decoders expand opcode bits into canonical minterms to activate specific execution control lines (ALU add, register write-enable, bus-gate).
๐ Numerical Applications & Worked Examplesโ
Example 1: Deriving Canonical SOP and POS from an Engineering Specificationโ
Problem Statement:
An automated industrial cooling unit monitors three sensors: Temperature (), Pressure (), and Vibration (). The system triggers an emergency warning alarm () under the following conditions:
- High Temperature and High Pressure are detected simultaneously, regardless of Vibration.
- High Vibration is detected while Temperature is Normal and Pressure is High.
- All three sensors detect High values simultaneously.
Define the variables (), construct the complete truth table, and express in both Canonical SOP () and Canonical POS () shorthand formats.
Step-by-Step Solution:
- Construct the Truth Table:
Evaluating each row against the specification:
- Condition 1 (): Rows with (row 6) and (row 7) trigger .
- Condition 2 (): Row 3 triggers .
- Condition 3 (): Row 7 (already included).
- All other sensor combinations produce .
| Row () | Warning () | Minterm () | Maxterm () | |||
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | - | |
| 1 | 0 | 0 | 1 | 0 | - | |
| 2 | 0 | 1 | 0 | 0 | - | |
| 3 | 0 | 1 | 1 | 1 | - | |
| 4 | 1 | 0 | 0 | 0 | - | |
| 5 | 1 | 0 | 1 | 0 | - | |
| 6 | 1 | 1 | 0 | 1 | - | |
| 7 | 1 | 1 | 1 | 1 | - |
- Formulate Canonical SOP: Identify rows where (rows 3, 6, 7):
In compact shorthand:
- Formulate Canonical POS: Identify remaining rows where (rows 0, 1, 2, 4, 5):
In compact shorthand:
Notice that , confirming a complete partition of the states.
Example 2: Complementing a Canonical Function and Mutual Conversionโ
Problem Statement:
A 3-variable logic circuit implements the switching function:
- Express the logical complement in canonical SOP form.
- Express the logical complement in canonical POS form.
- Express the original function in canonical POS form.
Step-by-Step Solution:
- Find Canonical SOP of : By definition, at all rows where . The universal set of indices for is . Subtracting the minterms of :
- Find Canonical POS of : The maxterms of are the rows where , which are precisely the rows where :
- Find Canonical POS of : The maxterms of are the rows where , which are the rows where :
Core Observation:
Example 3: Function Capacity & Degrees of Freedomโ
Problem Statement:
- Calculate the total number of distinct Boolean functions that can be formed using 4 binary variables.
- If a 4-variable function is constrained such that for all inputs where the decimal index is an odd number, how many distinct functions can still be constructed?
Step-by-Step Solution:
- Total Functions for : Number of input combinations . Total possible functions:
- Constrained Function Count:
- The 16 input rows are indexed through .
- There are exactly 8 odd indices: .
- The problem constrains the output for these 8 odd rows to be fixed at . Thus, there is only choice for each odd row.
- The remaining 8 even indices: are unconstrained. For each even row, the output can be freely chosen as either or ( choices per row).
- Total degrees of freedom:
Exactly distinct functions satisfy this design constraint.
๐ฏ Exam & Interview Pitfall Checkโ
-
Why does a minterm represent binary 0 as a complemented literal, while a maxterm represents binary 0 as an uncomplemented literal?
A minterm is an AND product term designed to output only for its specific row. If an input variable is , it must be inverted () so that , allowing the entire AND product to evaluate to .
Conversely, a maxterm is an OR sum term designed to output only for its specific row. If an input variable is , it must remain uncomplemented () so that . If an input is , it must be inverted () to turn into so the OR sum does not become . -
Why are canonical SOP and canonical POS expressions considered "isomorphic" to truth tables?
Unlike minimized expressions (which can take multiple equivalent forms, such as vs. other covers), a canonical expression contains every variable in every term. There is an exact, unique 1-to-1 bijection between the rows of a truth table and the terms of a canonical expression. No two distinct truth tables can ever share the same canonical expansion.
-
Trap: Confusing the complement of a minterm with another minterm.
Never write . Inversion of a minterm does NOT produce another minterm; by De Morgan's Law, inverting an AND term produces an OR term! The true mathematical relationship is (the -th maxterm). -
Trap: Forgetting the difference between and .
Candidates frequently confuse the number of minterms () with the number of functions (). In a 3-variable system:- Number of minterms .
- Number of distinct Boolean functions .