Lesson 8 +40 XP

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 methodSteps of the Quine-McCluskey method

1. The Two Phases

  1. Find all prime implicants by repeatedly combining terms that differ in exactly one bit (the rule xy + xy' = x in table form).
  2. Choose a minimal set of prime implicants that covers every minterm, using a prime implicant chart.

2. Phase 1: Finding the Prime Implicants

  1. Write each minterm (and each don't-care) in binary.
  2. Group them by the number of 1s they contain (index 0, 1, 2, ...).
  3. 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.
  4. 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.
  5. A combination that appears twice (for example 0,2,8,10 and 0,8,2,10) is written once.
  6. 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.

SolvedExample 1 · Finding prime implicants (Mano)

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)

GroupMintermW X Y Z
000000✓
110001✓
120010✓
181000✓
2101010✓
3111011✓
3141110✓
4151111✓

Column 2 (pairs)

GroupMintermsW X Y Z
00, 1000-PI
00, 200-0✓
00, 8-000✓
12, 10-010✓
18, 1010-0✓
210, 11101-✓
210, 141-10✓
311, 151-11✓
314, 15111-✓

Column 3 (quads)

MintermsW X Y Z
0, 2, 8, 10-0-0PI
10, 11, 14, 151-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.

Answerprime implicants W'X'Y' (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.

  1. A column with a single mark shows an essential prime implicant. Select it, and cross out all columns it covers.
  2. 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.
SolvedExample 2 · Selecting the prime implicants

Complete Example 1 using a prime implicant chart.

PI012810111415
W'X'Y' (0, 1)✓✓
X'Z' (0, 2, 8, 10)✓✓✓✓
WY (10, 11, 14, 15)✓✓✓✓
  1. Column 1 has one mark: W'X'Y' is essential.
  2. Columns 2 and 8 have one mark: X'Z' is essential.
  3. Columns 11, 14 and 15 have one mark: WY is essential.
  4. The three EPIs cover every minterm.
AnswerF = W'X'Y' + X'Z' + WY

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).

SolvedExample 3 · Tabulation with don't-cares

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 1Column 2Column 3
4 (0100) ✓4, 12 (-100) PI8, 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):

PI4810111215
BC'D' (4, 12)✓✓
AB' (8, 9, 10, 11)✓✓✓
AD' (8, 10, 12, 14)✓✓✓
AC (10, 11, 14, 15)✓✓✓
  1. Minterm 4 is covered only by BC'D', and minterm 15 only by AC: both are essential.
  2. They cover 4, 10, 11, 12, 15. Only minterm 8 remains; it can be covered by AB' or AD' (same cost).
AnswerF = BC'D' + AC + AB' (or BC'D' + AC + AD')

5. Petrick's Method

When no prime implicant is essential (a cyclic chart), Petrick's method finds every minimal cover algebraically:

  1. Label each prime implicant with a letter.
  2. For each minterm write the sum of the PIs that cover it.
  3. Form the product P of all these sums. P = 1 means "every minterm is covered".
  4. Multiply out to SOP, simplifying with X + XY = X and XX = X.
  5. Each product term is a valid cover; pick the one with the fewest PIs (then the fewest literals).
SolvedExample 4 · A cyclic chart

Minimise F(A, B, C) = ∑ m(0, 1, 2, 5, 6, 7) with Petrick's method.

  1. 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).
  2. Every minterm is covered by exactly two PIs, so none is essential.
  3. P = (a + b)(a + c)(b + d)(c + e)(d + f)(e + f) for minterms 0, 1, 2, 5, 6, 7.
  4. Pair the factors: (a + b)(a + c) = a + bc, (b + d)(d + f) = d + bf, (c + e)(e + f) = e + cf.
  5. P = (a + bc)(d + bf)(e + cf) = ade + bcf + acdf + abef + bcde after absorption.
  6. The smallest terms are ade and bcf, three PIs each.
AnswerF = A'B' + BC' + AC or F = A'C' + B'C + AB

6. K-map vs Quine-McCluskey

FeatureK-mapQuine-McCluskey
Naturegraphicaltabular, algorithmic
Practical limit5 to 6 variablesany number
Finds all PIsrelies on the eyeguaranteed
Computer implementationhardeasy
Speed by handfast for small functionsslow and tedious
Risk of errormissed groupsarithmetic slips in large tables
💡 Tip

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.
🎯 END-TERM EXAM PREP

📝 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)