Petrick's method


In Boolean algebra, Petrick's method is a technique described by Stanley R. Petrick in 1956 for determining all minimum sum-of-products solutions from a prime implicant chart. Petrick's method is very tedious for large charts, but it is easy to implement on a computer. The method was improved by Insley B. Pyne and Edward Joseph McCluskey in 1962.

Algorithm

  1. Reduce the prime implicant chart by eliminating the essential prime implicant rows and the corresponding columns.
  2. Label the rows of the reduced prime implicant chart,,,, etc.
  3. Form a logical function which is true when all the columns are covered. P consists of a product of sums where each sum term has the form, where each represents a row covering column.
  4. Reduce to a minimum sum of products by multiplying out and applying the absorption law.
  5. Each term in the result represents a solution, that is, a set of rows which covers all of the minterms in the table. To determine the minimum solutions, first find those terms which contain a minimum number of prime implicants.
  6. Next, for each of the terms found in step five, count the number of literals in each prime implicant and find the total number of literals.
  7. Choose the term or terms composed of the minimum total number of literals, and write out the corresponding sums of prime implicants.

    Example of Petrick's method

Following is the function we want to reduce:
The prime implicant chart from the Quine-McCluskey algorithm is as follows:
Based on the ✓ marks in the table above, build a product of sums of the rows where each row is added, and columns are multiplied together:

Use the distributive law to turn that expression into a sum of products. Also use the following equivalences to simplify the final expression: X + XY = X and XX = X and X+X=X
=
=
=
= KNP + KLPQ + LMNP + LMPQ + KMNQ + KLMQ + LMNQ + LMQ
Now use again the following equivalence to further reduce the equation: X + XY = X
= KNP + KLPQ + LMNP + LMQ + KMNQ
Choose products with fewest terms, in this example, there are two products with three terms:
KNP
LMQ
Choose term or terms with fewest total literals. In our example, the two products both expand to six literals total each:
KNP expands to a'b' + bc' + ac
LMQ expands to a'c' + b'c + ab
So either one can be used. In general, application of Petrick's method is tedious for large charts, but it is easy to implement on a computer.