Loading lessons...
Quine-McCluskey Tabulation Method & Petrick's Method
Quine-McCluskey Tabulation Method & Petrick's Method
K-maps rely on the eye, and beyond five or six variables the eye fails. The Quine-McCluskey (QM) method, also called the tabulation method, does the same job with a fixed table procedure. It works for any number of variables, it is guaranteed to find all prime implicants, and it is easy to program, which is why logic-minimisation software is built on it.
Steps of the Quine-McCluskey method
1. The Two Phases
- Find all prime implicants by repeatedly combining terms that differ in exactly one bit (the rule xy + xy' = x in table form).
- Choose a minimal set of prime implicants that covers every minterm, using a prime implicant chart.
2. Phase 1: Finding the Prime Implicants
- Write each minterm (and each don't-care) in binary.
- Group them by the number of 1s they contain (index 0, 1, 2, ...).
- Compare every term in group i with every term in group i + 1. If two terms differ in exactly one bit position, combine them: write a dash (-) in that position and put a check mark (✓) next to both original terms.
- Repeat with the new column. Two terms can combine only if their dashes are in the same positions and they differ in one other bit.
- A combination that appears twice (for example 0,2,8,10 and 0,8,2,10) is written once.
- When no more combinations are possible, every term without a check mark is a prime implicant.
Why only adjacent groups? Two terms whose counts of 1s differ by 0 or by 2 or more cannot differ in exactly one bit, so comparing them is wasted effort.
Find the prime implicants of F(W, X, Y, Z) = ∑ m(0, 1, 2, 8, 10, 11, 14, 15).
Column 1 (minterms grouped by number of 1s)
| Group | Minterm | W X Y Z | |
|---|---|---|---|
| 0 | 0 | 0000 | ✓ |
| 1 | 1 | 0001 | ✓ |
| 1 | 2 | 0010 | ✓ |
| 1 | 8 | 1000 | ✓ |
| 2 | 10 | 1010 | ✓ |
| 3 | 11 | 1011 | ✓ |
| 3 | 14 | 1110 | ✓ |
| 4 | 15 | 1111 | ✓ |
Column 2 (pairs)
| Group | Minterms | W X Y Z | |
|---|---|---|---|
| 0 | 0, 1 | 000- | PI |
| 0 | 0, 2 | 00-0 | ✓ |
| 0 | 0, 8 | -000 | ✓ |
| 1 | 2, 10 | -010 | ✓ |
| 1 | 8, 10 | 10-0 | ✓ |
| 2 | 10, 11 | 101- | ✓ |
| 2 | 10, 14 | 1-10 | ✓ |
| 3 | 11, 15 | 1-11 | ✓ |
| 3 | 14, 15 | 111- | ✓ |
Column 3 (quads)
| Minterms | W X Y Z | |
|---|---|---|
| 0, 2, 8, 10 | -0-0 | PI |
| 10, 11, 14, 15 | 1-1- | PI |
The pair (0, 1) could not combine further, so it is a prime implicant. In column 3, (0, 2, 8, 10) is also formed by (0, 8) with (2, 10) and is written once.
000-), X'Z' (-0-0) and WY (1-1-)Converting a dashed term to a product: a 1 gives the variable, a 0 gives its complement, a dash drops the variable. So -0-0 is X'Z' and 1-1- is WY.
3. Phase 2: The Prime Implicant Chart
Draw a table with a row for each prime implicant and a column for each minterm (not the don't-cares). Put a mark where the PI covers the minterm.
- A column with a single mark shows an essential prime implicant. Select it, and cross out all columns it covers.
- If columns remain, select PIs to cover them at minimum cost. Use row dominance (drop a row whose marks are a subset of another row's, if it is not cheaper) and column dominance (drop a column whose marks include all of another column's marks), or Petrick's method.
Complete Example 1 using a prime implicant chart.
| PI | 0 | 1 | 2 | 8 | 10 | 11 | 14 | 15 |
|---|---|---|---|---|---|---|---|---|
| W'X'Y' (0, 1) | ✓ | ✓ | ||||||
| X'Z' (0, 2, 8, 10) | ✓ | ✓ | ✓ | ✓ | ||||
| WY (10, 11, 14, 15) | ✓ | ✓ | ✓ | ✓ |
- Column 1 has one mark: W'X'Y' is essential.
- Columns 2 and 8 have one mark: X'Z' is essential.
- Columns 11, 14 and 15 have one mark: WY is essential.
- The three EPIs cover every minterm.
4. Don't-Cares in the Tabulation Method
Include the don't-cares in Phase 1 (they help form larger groups), but leave them out of the chart in Phase 2 (they need not be covered).
Minimise F(A, B, C, D) = ∑ m(4, 8, 10, 11, 12, 15) + ∑ d(9, 14).
Phase 1 (minterms and don't-cares together):
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| 4 (0100) ✓ | 4, 12 (-100) PI | 8, 9, 10, 11 (10 - ) PI |
| 8 (1000) ✓ | 8, 9 (100-) ✓ | 8, 10, 12, 14 (1 - 0) PI |
| 9 (1001) ✓ | 8, 10 (10-0) ✓ | 10, 11, 14, 15 (1-1-) PI |
| 10 (1010) ✓ | 8, 12 (1-00) ✓ | |
| 12 (1100) ✓ | 9, 11 (10-1) ✓ | |
| 11 (1011) ✓ | 10, 11 (101-) ✓ | |
| 14 (1110) ✓ | 10, 14 (1-10) ✓ | |
| 15 (1111) ✓ | 12, 14 (11-0) ✓ | |
11, 15 (1-11) ✓ | ||
14, 15 (111-) ✓ |
Phase 2 (columns for the minterms 4, 8, 10, 11, 12, 15 only):
| PI | 4 | 8 | 10 | 11 | 12 | 15 |
|---|---|---|---|---|---|---|
| BC'D' (4, 12) | ✓ | ✓ | ||||
| AB' (8, 9, 10, 11) | ✓ | ✓ | ✓ | |||
| AD' (8, 10, 12, 14) | ✓ | ✓ | ✓ | |||
| AC (10, 11, 14, 15) | ✓ | ✓ | ✓ |
- Minterm 4 is covered only by BC'D', and minterm 15 only by AC: both are essential.
- They cover 4, 10, 11, 12, 15. Only minterm 8 remains; it can be covered by AB' or AD' (same cost).
5. Petrick's Method
When no prime implicant is essential (a cyclic chart), Petrick's method finds every minimal cover algebraically:
- Label each prime implicant with a letter.
- For each minterm write the sum of the PIs that cover it.
- Form the product P of all these sums. P = 1 means "every minterm is covered".
- Multiply out to SOP, simplifying with X + XY = X and XX = X.
- Each product term is a valid cover; pick the one with the fewest PIs (then the fewest literals).
Minimise F(A, B, C) = ∑ m(0, 1, 2, 5, 6, 7) with Petrick's method.
- Phase 1 gives six prime implicants and no quad: a = A'B' (0, 1), b = A'C' (0, 2), c = B'C (1, 5), d = BC' (2, 6), e = AC (5, 7), f = AB (6, 7).
- Every minterm is covered by exactly two PIs, so none is essential.
- P = (a + b)(a + c)(b + d)(c + e)(d + f)(e + f) for minterms 0, 1, 2, 5, 6, 7.
- Pair the factors: (a + b)(a + c) = a + bc, (b + d)(d + f) = d + bf, (c + e)(e + f) = e + cf.
- P = (a + bc)(d + bf)(e + cf) = ade + bcf + acdf + abef + bcde after absorption.
- The smallest terms are ade and bcf, three PIs each.
6. K-map vs Quine-McCluskey
| Feature | K-map | Quine-McCluskey |
|---|---|---|
| Nature | graphical | tabular, algorithmic |
| Practical limit | 5 to 6 variables | any number |
| Finds all PIs | relies on the eye | guaranteed |
| Computer implementation | hard | easy |
| Speed by hand | fast for small functions | slow and tedious |
| Risk of error | missed groups | arithmetic slips in large tables |
Key points to remember
- Group minterms by the number of 1s; compare only neighbouring groups.
- Combine terms that differ in one bit and have dashes in the same places; tick both.
- Unticked terms are prime implicants.
- Include don't-cares in Phase 1 but not in the PI chart.
- A single mark in a chart column means an essential PI. With a cyclic chart use Petrick's method.
📝 IPU End-Term Exam Corner (5-10 Marks)
- Q1. Minimise F(W, X, Y, Z) = ∑ m(0, 1, 2, 8, 10, 11, 14, 15) using the Quine-McCluskey method. (10 Marks)
- Write: the three columns with check marks, the prime implicants, the PI chart, the EPIs, and the final answer W'X'Y' + X'Z' + WY.
- Q2. Using the tabulation method, simplify F = ∑ m(4, 8, 10, 11, 12, 15) + ∑ d(9, 14). (10 Marks)
- Q3. Compare the K-map and Quine-McCluskey methods. (5 Marks)
- Q4. What is Petrick's method? Apply it to F = ∑ m(0, 1, 2, 5, 6, 7). (5 Marks)
- Q5. How are don't-care terms handled in the tabulation method? (2.5 Marks)