Sub topic 3
Minterms, Maxterms and Canonical Forms
Assume you know binary values, Boolean operators, and basic truth tables. This chapter uses + for OR, adjacency for AND, and a prime mark (') for NOT.
Minterms represent the 1 rows
A minterm is an AND term containing every input variable exactly once. It evaluates to 1 for exactly one row of a truth table.
For variables A, B, and C, the binary row 101 produces:
m5 = A B' CThe variable is complemented when its row value is 0 and is uncomplemented when its row value is 1. The subscript is the binary row interpreted as a decimal number.
A function written as a sum of minterms is in canonical sum-of-products form:
F(A,B,C) = Σm(1,2,5,7)This means that F is 1 on rows 1, 2, 5, and 7. Expanding the notation gives:
F = A'B'C + A'BC' + AB'C + ABCBecause the terms are ORed together, the function is 1 whenever any selected row occurs.
Maxterms represent the 0 rows
A maxterm is an OR term containing every input variable exactly once. It evaluates to 0 for exactly one row.
The complementation rule is reversed from the minterm rule. For row 101, the maxterm is:
M5 = A' + B + C'This sum becomes 0 only when A=1, B=0, and C=1.
A function written as a product of maxterms is in canonical product-of-sums form:
F(A,B,C) = ΠM(0,3,4,6)These are the rows where the function is 0. Expanded:
F = (A+B+C)(A+B'+C')(A'+B+C)(A'+B'+C)The minterm and maxterm indexes contain complementary row sets:
F = Σm(1,2,5,7) = ΠM(0,3,4,6)The two forms describe the same function.
Reading a truth table
| A | B | C | Row index | If F=1: minterm | If F=0: maxterm |
|---|---|---|---|---|---|
| 0 | 1 | 0 | 2 | A'BC' | A+B'+C |
For every truth-table row, use the row index to select either a minterm or a maxterm. A canonical SOP lists the rows with output 1. A canonical POS lists the rows with output 0.
Worked verification with Python
This program lists the indexes where a function is 1 and where it is 0.
from itertools import product
ones = []
zeros = []
for a, b, c in product((0, 1), repeat=3):
f = (a and not b and not c) or (a and b and c)
index = 4 * a + 2 * b + c
if f:
ones.append(index)
else:
zeros.append(index)
print("Σm", tuple(ones))
print("ΠM", tuple(zeros))The output is:
Σm (4, 7)
ΠM (0, 1, 2, 3, 5, 6)A noncanonical expression can be converted by inserting missing variables. For example:
A = A(B+B') = AB + AB'This expansion produces minterms after repeating the process for every missing variable.
Exercise
Write F(A,B,C)=Σm(0,3,6) in canonical POS notation.
Show answer
The missing rows are 1, 2, 4, 5, and 7, so F=ΠM(1,2,4,5,7).