Simplify to a minimal sum-of-products form:
Convert the expression to a minterm list. Reading each product as a -bit pattern (a primed literal is ):
so
The starting cost is terms and literals.
Enumerate the prime implicants. Combining adjacent minterms (those differing in exactly one bit) and keeping only the maximal groups gives seven prime implicants:
Every group has only two cells — there is no -cell block anywhere, because no set of four of these minterms forms a K-map square.
Identify the essential terms. Minterm is covered only by and only by , so those two full minterms are essential and must appear. Similarly appears only in , only in , and only in — three more essential prime implicants.
Cover what is left. The five essential terms , , , , together cover , leaving only . It can be picked up by either or , both of size two, so there are exactly two minimal covers of equal cost.
Write the minimal SOP. Choosing :
The equally minimal alternative replaces with . Either way the cost is terms and literals, down from terms and literals.
Verify against the full truth table. Evaluating the minimised expression at all input combinations reproduces exactly on and elsewhere. The reason the reduction is modest is structural: minterms such as () and () have no neighbour in the set, so they survive as full four-literal products no matter how the map is grouped.
Need to solve a different problem like this? Open the solver →