Skip to content
GATEiit

GATE EC · Digital Circuits

Minimization of functions using Boolean identities and Karnaugh map

Reducing Boolean functions to minimal SOP or POS form: canonical forms, minterm and maxterm notation, the identities used for algebraic minimisation, Karnaugh maps up to four variables, prime and essential prime implicants, and don't-care conditions.

Before you start

  • Boolean algebra →

    Every K-map grouping is an application of the identities xy+xy′=x and x+x′=1.

  • Binary numbers →

    Minterm indices are the binary values of the input combinations.

  • Gray code →

    K-map rows and columns are labelled in Gray order so that neighbouring cells differ in one bit.

This topic comes before: Code converters, Counters, Finite state machines, Latches and flip-flops, Logic gates and their static CMOS implementations, Multiplexers

Concept notes

1. Canonical forms: minterms and maxterms

For n variables there are 2n input combinations, numbered by their binary value (with A as the most significant bit).

  • A minterm mi is a product (AND) of all n variables, each in true or complemented form, that is 1 for exactly one combination i. For A,B,C: m5=AB′C (101).
  • A maxterm Mi is a sum (OR) of all n variables that is 0 for exactly one combination i: M5=A′+B+C′.
  • Mi=mi′.

Canonical SOP: OR of the minterms where F=1, written F=∑m(…). Canonical POS: AND of the maxterms where F=0, written F=∏M(…).

The two lists are complementary: for 3 variables, ∑m(1,3,5,7)=∏M(0,2,4,6), and F′=∑m(0,2,4,6).

A function of n variables can be chosen in 22n ways; for n=2 there are 16 functions.

Minimal forms: a minimal SOP has the fewest product terms and, among those, the fewest literals. GATE asks for the minimal expression, the number of literals, or the number of prime implicants. A two-level SOP maps directly to AND–OR (or NAND–NAND) gates; a POS maps to OR–AND (or NOR–NOR).

2. Minimising with Boolean identities

Algebraic minimisation uses a few identities again and again:

Name Identity Dual
Combining xy+xy′=x (x+y)(x+y′)=x
Absorption x+xy=x x(x+y)=x
Redundant literal x+x′y=x+y x(x′+y)=xy
Consensus xy+x′z+yz=xy+x′z (x+y)(x′+z)(y+z)=(x+y)(x′+z)
Distributive x+yz=(x+y)(x+z) x(y+z)=xy+xz
De Morgan (xy)′=x′+y′ (x+y)′=x′y′

Duality: swap AND with OR and 0 with 1 (do not complement variables) and a true identity stays true.

Consensus is the one students miss: in xy+x′z, the term yz is redundant because whenever y=z=1, one of xy or x′z is already 1.

Worked line: A′B′C+A′BC+AB′C=A′C(B′+B)+AB′C=A′C+AB′C=C(A′+AB′)=C(A′+B′), using combining and then the redundant-literal rule.

Algebra works, but it is easy to stop at a form that is not minimal. For up to four variables the K-map is safer and faster.

3. Karnaugh maps and grouping rules

A K-map is the truth table drawn as a grid in Gray order (00, 01, 11, 10), so that any two neighbouring cells differ in one variable. The map wraps around: the top row is next to the bottom row and the left column is next to the right column; the four corners of a 4-variable map form one group.

Grouping rules for SOP (group the 1s):

  1. A group is a rectangle of 2k adjacent cells (1, 2, 4, 8, ...).
  2. A group of 2k cells removes k variables: in a 4-variable map, a pair gives 3 literals, a quad 2, an octet 1.
  3. Make each group as large as possible, and use as few groups as possible.
  4. Groups may overlap. Every 1 must be covered.

To read a group, keep the variables that are constant over the whole group: 1 → true literal, 0 → complemented literal.

For a minimal POS, group the 0s in the same way and write each group as a sum term with complemented meaning (a constant 1 gives x′, a constant 0 gives x). Or find the minimal SOP of F′ and apply De Morgan.

000110302101405171601112013115114010819011010100011110ABCDGray order 00, 01, 11, 10:neighbours differ in one bit.Top and bottom rows are adjacent;left and right columns too.Solid: m5, 7, 13, 15 → BDDashed corners: m0, 2, 8, 10 → B′D′F = BD + B′D′Small number: minterm index
4-variable K-map of F = Σm(0, 2, 5, 7, 8, 10, 13, 15): the centre quad gives BD and the four corners, adjacent by wrap-around, give B′D′

4. Prime implicants, essential PIs and don't-cares

  • An implicant is any valid group of 1s (a product term that implies F).
  • A prime implicant (PI) is a group that cannot be made larger.
  • An essential prime implicant (EPI) is a PI that covers at least one 1 that no other PI covers.

Procedure: list all PIs; take every EPI; then cover the remaining 1s with as few extra PIs as possible. Some functions have no EPIs: ∑m(0,1,2,5,6,7) in three variables has 6 PIs, none essential, and two different minimal covers of 3 terms each. Such maps are called cyclic.

Don't-care conditions (d or ×) are input combinations that never occur, or whose output does not matter (for example BCD inputs 10 to 15). Treat each × as 1 if it helps make a group larger, and as 0 otherwise. Never make a group of only don't-cares. A PI must contain at least one real 1, and only real 1s must be covered.

Count asked What to count
Prime implicants all maximal groups (may use don't-cares)
Essential PIs PIs that alone cover some 1
Literals in minimal SOP sum of literals over chosen terms

With don't-cares, the minimal SOP and minimal POS may treat the same × differently, so they need not be equal as functions on the don't-care inputs.

Formulas to remember

Literals left by a groupn variables in the map.
literals=n−kfor a group of 2k cells
Number of Boolean functions
22n
Combining (basis of a K-map group)
xy+xy′=x
Redundant literal
x+x′y=x+y
Consensus theorem
xy+x′z+yz=xy+x′z
SOP and POS lists are complementaryS‾ = indices not in S.
∑m(S)=∏M(S‾)

Common mistakes

  • Labelling K-map rows or columns in binary order (00, 01, 10, 11) instead of Gray order, which breaks adjacency.
  • Missing wrap-around groups: the top and bottom rows, the left and right columns, and the four corners are adjacent.
  • Making a group whose size is not a power of two, such as 3 or 6 cells.
  • Forming a group of only don't-cares, or counting don't-cares as 1s that must be covered.
  • Stopping at the first cover found; after taking the essential prime implicants, check for a cover with fewer terms or literals.
  • Reading a POS group with the wrong polarity: in a group of 0s, a variable fixed at 1 appears complemented in the sum term.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Corners and the centre

numerical

Minimise F(A,B,C,D)=∑m(0,2,5,7,8,10,13,15).

  1. Step 1: Place the 1s on a 4-variable map.

    Try it on paper first.

Example 2: Using don't-cares

numerical

Minimise F(A,B,C,D)=∑m(2,3,7,9,11,13)+d(1,10,15).

  1. Step 1: List the prime implicants, using don't-cares where they help.

    Try it on paper first.

Example 3: Algebraic simplification

numerical

Simplify (a) AB+A′C+BC and (b) (A+B)(A+C) and (c) A+A′BC′.

  1. Step 1: Spot the consensus term in (a).

    Try it on paper first.

Example 4: A map with no essential prime implicant

conceptual

For F(A,B,C)=∑m(0,1,2,5,6,7), find all prime implicants, the essential ones and a minimal SOP.

  1. Step 1: List the pairs.

    Try it on paper first.

Previous year questions

2 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.