By the end of this chapter you'll be able to…

  • 1State why a truth table determines a Boolean function completely
  • 2Recall the dual pairs of Boolean axioms
  • 3Apply the absorption laws and the identity A plus not-A B
  • 4Apply the consensus theorem and recognise it on a K-map
  • 5State the properties of XOR and its two constant identities
  • 6Form the dual of an expression and distinguish it from the complement
  • 7Apply De Morgan's laws to push complements inward
  • 8Redraw NAND and NOR gates with inverted inputs
  • 9Convert between sum-of-products and product-of-sums index sets
  • 10Explain why minterm and maxterm indices partition the range
  • 11Label a K-map in Gray code order
  • 12Apply the grouping rules including wrap-around and overlap
  • 13Compute how many variables a group of a given size eliminates
  • 14Read a product-of-sums expression by grouping zeros
  • 15Use don't cares to enlarge groups without forming an illegal group
  • 16Distinguish a prime implicant from an essential prime implicant
  • 17Count prime implicants and essential prime implicants
  • 18Explain why a minimal form need not be unique
  • 19Describe both phases of the Quine-McCluskey method
  • 20State which gate sets are functionally complete
  • 21Prove NAND completeness by constructing NOT, AND and OR
  • 22Explain why AND and OR together are not complete
💡
Why this chapter matters in GATE
A Boolean function is completely determined by its truth table, so two expressions that look nothing alike are the same function if they produce the same output column. That is why algebraic manipulation is safe and why an equivalence question is always answerable mechanically. The central task is minimisation, and minimisation is a covering problem rather than an algebraic one: a function's 1s are a set of minterms, and the goal is to cover every one of them with the fewest and largest groups possible. Algebra can do this, but a Karnaugh map does it by inspection, which is why it dominates in an exam. The third principle is that the map's adjacency is what makes grouping legal at all: cells are arranged in Gray code order specifically so that neighbouring cells differ in exactly one variable, and it is that single-variable difference which allows the variable to be eliminated. This chapter also supplies the vocabulary for combinational circuits, sequential circuits and the control logic in Computer Organisation.

Before you start — revise these

🔗
Number Representation & Computer Arithmetic
Gray code ordering, which is what makes K-map adjacency work, is introduced there along with the bitwise view of binary patterns.
🔗
Discrete Mathematics
Propositional logic, De Morgan's laws and the notion of a complete set of connectives are the same material in a different notation.

Boolean Algebra & K-maps

Boolean algebra is where Digital Logic starts, and it supplies the vocabulary for everything that follows — combinational circuits, sequential circuits, and the control logic in Computer Organisation.

A Boolean function is completely determined by its truth table, so two expressions that look nothing alike are the same function if they produce the same output column. This is why algebraic manipulation is safe, and why a question asking "which of these is equivalent" is always answerable mechanically.

The central task is minimisation, and minimisation is a covering problem rather than an algebraic one. A function's 1s are a set of minterms, and the goal is to cover every one of them using the fewest and largest groups possible. Algebra can do this, but a Karnaugh map does it by inspection, which is why it dominates in an exam.

The third principle is that the map's adjacency is what makes grouping legal. Cells are arranged in Gray code order specifically so that neighbouring cells differ in exactly one variable, and it is that single-variable difference which allows the variable to be eliminated.

Everything in the chapter follows from those three.

1. Operations and Axioms

Three operations generate everything: AND written as a product, OR written as a sum, and NOT written as a bar or a prime.

The axioms come in dual pairs, and the pairing is worth learning as a structure rather than as a list.

LawAND formOR form
Identity
Null
Idempotent
Complement
Absorption

The absorption laws are the ones most often missed in algebraic simplification, and recognising them saves several steps.

A less obvious but frequently useful identity is . It is worth memorising directly, because it does not follow from a single axiom application.

The consensus theorem states that : the third term is redundant because it is already covered by the other two. On a K-map the consensus term appears as a group that adds no new cells, which is exactly why it can be dropped.

Exclusive-OR deserves separate treatment because it behaves unlike the other operations and appears constantly in arithmetic circuits.

XOR outputs 1 when its inputs differ, and it is both commutative and associative, so a chain of XOR gates can be reassociated freely and computes the parity of its inputs.

Two identities do most of the work: and . So XOR with a constant is either a pass-through or an inverter, which is exactly how a controlled inverter is built in an adder-subtractor.

A further consequence is that , which makes XOR self-inverting: applying the same value twice restores the original, and that is the basis of both parity checking and simple bitwise swaps.

2. Duality and De Morgan's Laws

The dual of an expression is obtained by swapping AND with OR and 0 with 1, leaving variables untouched. Every Boolean identity remains valid when dualised, which is why the axiom table above has two matched columns.

Duality is not complementation. The dual of is , and both equal ; the complement of is , which is a different function.

De Morgan's laws convert between the two operations through complementation:

In words: break the bar and change the operation. The laws extend to any number of variables, and applying them repeatedly pushes every complement inward until it sits only on individual variables.

The practical consequence is that NAND and NOR gates can be redrawn as their opposites with inverted inputs, which is the basis of all NAND-only and NOR-only implementations.

3. Canonical Forms

A minterm is a product term containing every variable exactly once, in true or complemented form, and it is 1 for exactly one input combination.

A maxterm is the dual: a sum term containing every variable once, and it is 0 for exactly one combination.

Sum of products lists the minterms where the function is 1. Product of sums lists the maxterms where it is 0. Both describe the same function, so the two index sets are complementary.

For a 3-variable function, if the SOP form is , then the POS form is — every index not in the first list appears in the second.

Minterm and maxterm are complements of each other, so . This is why the index sets partition the full range.

A canonical form is unique, which makes it the reliable way to prove two expressions equal: expand both to minterms and compare the index sets.

4. Karnaugh Maps

A K-map is a truth table redrawn so that adjacent cells differ in exactly one variable. The row and column labels follow Gray code order — 00, 01, 11, 10 — not binary counting order, and using binary order is the single most common way to get a K-map wrong.

Grouping rules are few and strict.

Groups must be rectangular and contain a number of cells that is a power of two: 1, 2, 4, 8 or 16. A group of three cells is never legal.

Groups may wrap around the edges, because the leftmost and rightmost columns differ in exactly one variable, as do the top and bottom rows. On a 4-variable map the four corner cells form a legal group of four.

Groups should be as large as possible, and overlapping is allowed and often necessary. A larger group eliminates more variables: a group of cells removes variables from the term.

The number of literals in a term is the number of variables that do not change across the group. A group of 8 on a 4-variable map leaves one literal; a group of 16 leaves the constant 1.

For a product-of-sums form, group the zeros instead and complement each variable when reading the term. This gives a genuinely different expression, and for some functions it is cheaper than the SOP form.

5. Don't Cares

A don't-care condition marks an input combination that cannot occur or whose output is irrelevant, written as X or d.

Each don't care may be treated as 1 or 0 independently, whichever makes the grouping larger. They are opportunities rather than obligations.

The rule that follows is precise and is where marks are lost: a don't care may be included in a group to enlarge it, but a group consisting only of don't cares must never be formed, because it covers no actual 1 and adds a term for nothing.

Don't cares arise naturally in BCD circuits, where the input combinations 1010 through 1111 never occur, which is why BCD-to-seven-segment decoders are a standard exam context.

6. Prime Implicants

An implicant is any legal group. A prime implicant is a group that cannot be made larger — no adjacent group of double the size exists.

An essential prime implicant is one that covers at least one 1 which no other prime implicant covers. That uncovered 1 forces its inclusion.

The minimisation procedure follows directly.

First, find all prime implicants. Second, identify the essential ones by looking for 1s covered exactly once. Third, select the essential prime implicants, then add the fewest remaining prime implicants needed to cover whatever is left.

A minimal expression is not always unique. When two different selections of the same size both cover everything, the function has more than one minimal form, and a question asking "the minimal SOP" may have several correct answers of equal cost.

Counting prime implicants and essential prime implicants is asked directly, often as a NAT question, so the distinction between the two must be exact rather than approximate.

7. Quine-McCluskey

The Quine-McCluskey method does the same job as a K-map but works for any number of variables and is mechanical enough to be programmed.

It proceeds in two phases.

The first phase finds all prime implicants by repeatedly combining terms that differ in exactly one bit position, replacing that position with a dash. Terms are grouped by the number of ones they contain so that only adjacent groups need comparing.

A term that combines with something is ticked; a term that combines with nothing at the end of a round is a prime implicant.

The second phase builds a prime implicant chart with prime implicants as rows and minterms as columns, then selects a minimum cover. A column with a single mark identifies an essential prime implicant.

The method is exhaustive and therefore reliable, but the number of comparisons grows quickly, which is why K-maps remain preferable up to about five variables.

8. Functional Completeness

A set of gates is functionally complete if every Boolean function can be built from it alone.

NAND alone is functionally complete, and so is NOR alone. Each can produce NOT, AND and OR, and those three generate everything.

To see it for NAND: tying both inputs together gives NOT, since . A NAND followed by that NOT gives AND. And by De Morgan, a NAND with both inputs inverted gives OR.

SetFunctionally complete?
{AND, OR, NOT}Yes
{NAND}Yes
{NOR}Yes
{AND, OR}No — cannot produce NOT
{XOR}No
{XOR, AND}Yes

{AND, OR} is not complete because both operations are monotonic: increasing an input can never decrease the output, whereas NOT does exactly that. No composition of monotonic functions can be non-monotonic.

XOR alone is not complete either, but XOR together with AND is, since supplies the complement once a constant 1 is available.

9. Worked Examples

Example 1. Simplify .

Group the first two terms and factor: .

So .

Now apply the identity .

.

Verify with a truth table: the original is 0 only when and , since each of the three terms requires at least one of them to be 1. That is exactly the behaviour of .

The step worth noting is the second one. Attempting to factor directly leads nowhere, and the identity must be recognised rather than derived.

Example 2. Minimise using a K-map.

Place 1s at those minterm positions on a 4-variable map with rows and columns , both in Gray code order 00, 01, 11, 10.

Minterms 0, 1, 2, 3 fill the entire first row, giving a group of four. Across that group and hold throughout while and both vary, so the term is .

Minterms 1, 3, 5, 7 form a two-by-two block in the half where throughout. The term is .

Minterms 0, 2, 8, 10 form a group of four using edge wrap-around: all have and . The term is .

Every 1 is now covered, so the minimal form is

Note that minterm 8 and minterm 10 are covered only by the third group, which makes essential. Minterm 5 and 7 are covered only by the second, making essential too.

Example 3. How many prime implicants and essential prime implicants does have?

Draw the 3-variable map and find every maximal group.

Minterms 0 and 1 combine: both have , . Term .

Minterms 1 and 5 combine: both have , . Term .

Minterms 0 and 2 combine: both have , . Term .

Minterms 2 and 6 combine: both have , . Term .

Minterms 5 and 7 combine: both have , . Term .

Minterms 6 and 7 combine: both have , . Term .

None of these six groups extends to a group of four, so there are 6 prime implicants.

Now check which 1s are covered only once. Every minterm here appears in exactly two of the six groups, so no minterm forces any particular implicant.

There are therefore no essential prime implicants, and the function requires selecting three of the six groups to cover all six minterms — which can be done in more than one way, so the minimal form is not unique.

Example 4. Implement using only NAND gates.

Start from De Morgan: .

The right-hand side is a NAND applied to and .

Each complement is itself a NAND with both inputs tied together, since .

So the implementation is three NAND gates: one producing , one producing , and one NANDing those two outputs.

The general pattern for any SOP expression is: replace every AND with a NAND and every OR with a NAND, which works because the two inversions introduced at each level cancel. This is why NAND implementations of SOP forms need no extra inverters beyond those for complemented inputs.

Example 5. A BCD input drives a circuit. Minimise with don't cares .

The don't cares are exactly the six invalid BCD codes, which cannot occur.

Look at the pattern: minterms 1, 3, 5, 7 and 9 are all the odd values in range, so in every one of them.

Now use the don't cares. Combinations 11, 13 and 15 are also odd, and treating them as 1 completes a group of eight covering every cell where .

That group of eight eliminates three variables and leaves the single term:

Without the don't cares, the minimal expression would have required several terms. This is the whole reason don't cares are worth hunting for.

Note the rule that was respected: every group formed contains at least one genuine 1. A group made solely from combinations 10, 12 and 14 would have been illegal, since it covers no minterm of the function.

Example 6. Show that is not functionally complete.

Both AND and OR are monotonic functions: changing any input from 0 to 1 can only leave the output unchanged or raise it, never lower it.

Any circuit built from monotonic gates is itself monotonic, because composing monotonic functions preserves the property — raising an input can only raise or preserve each intermediate signal, and so on to the output.

NOT is not monotonic: raising its input from 0 to 1 lowers the output from 1 to 0.

Therefore NOT cannot be built from AND and OR gates alone, however they are arranged, and the set is not functionally complete.

The argument also explains why adding any single non-monotonic element repairs the set. Adding NOT gives the standard complete set. Adding a constant 0 with XOR does the same, since supplies the complement.

Summary

A Boolean function is determined by its truth table, so equivalence is always checkable by expanding both expressions to canonical form.

The axioms come in dual pairs; the dual swaps AND with OR and 0 with 1, and is not the same as the complement.

De Morgan's laws break the bar and change the operation, which is what lets NAND and NOR be redrawn as their opposites with inverted inputs.

SOP lists the minterms where the function is 1 and POS lists the maxterms where it is 0, so the two index sets are complementary.

K-map labels follow Gray code order, and adjacency is what permits a variable to be eliminated. Groups are rectangular, of size a power of two, may wrap around edges, may overlap, and should be as large as possible.

A group of cells eliminates variables.

Don't cares may be included to enlarge a group but a group of only don't cares is never legal.

A prime implicant cannot be enlarged; an essential prime implicant covers a 1 that nothing else covers. Minimal forms need not be unique.

Quine-McCluskey finds prime implicants by combining terms differing in one bit, then selects a cover from a chart.

NAND alone and NOR alone are functionally complete; {AND, OR} is not, because both are monotonic and NOT is not.

Key formulas & results

Everything to memorise for the exam hall, in one card. Screenshot this for revision.

The organising tool
MINIMISATION IS A COVERING PROBLEM, NOT AN ALGEBRAIC ONE: COVER EVERY 1 USING THE FEWEST AND LARGEST GROUPS POSSIBLE.
A K-MAP DOES BY INSPECTION WHAT ALGEBRA DOES BY MANIPULATION, WHICH IS WHY IT DOMINATES UNDER EXAM CONDITIONS.
Truth tables determine functions
TWO EXPRESSIONS THAT LOOK NOTHING ALIKE ARE THE SAME FUNCTION IF THEY PRODUCE THE SAME OUTPUT COLUMN.
EXPANDING BOTH TO CANONICAL FORM AND COMPARING INDEX SETS IS THE RELIABLE WAY TO SETTLE ANY EQUIVALENCE QUESTION.
The dual axiom pairs
IDENTITY: A AND 1 = A, A OR 0 = A. NULL: A AND 0 = 0, A OR 1 = 1. IDEMPOTENT: A AND A = A, A OR A = A. COMPLEMENT: A AND NOT-A = 0, A OR NOT-A = 1.
ABSORPTION IS A(A + B) = A AND A + AB = A. THE ABSORPTION LAWS ARE THE ONES MOST OFTEN MISSED IN ALGEBRAIC SIMPLIFICATION.
The non-obvious identity
A + NOT-A TIMES B = A + B.
WORTH MEMORISING DIRECTLY, BECAUSE IT DOES NOT FOLLOW FROM A SINGLE AXIOM APPLICATION AND ATTEMPTING TO FACTOR IT LEADS NOWHERE.
Consensus theorem
AB + NOT-A TIMES C + BC = AB + NOT-A TIMES C. THE THIRD TERM IS REDUNDANT.
ON A K-MAP THE CONSENSUS TERM APPEARS AS A GROUP THAT ADDS NO NEW CELLS, WHICH IS EXACTLY WHY IT CAN BE DROPPED.
XOR properties
XOR OUTPUTS 1 WHEN ITS INPUTS DIFFER, AND IS COMMUTATIVE AND ASSOCIATIVE, SO A CHAIN OF XOR GATES COMPUTES PARITY.
A XOR 0 = A AND A XOR 1 = NOT-A, WHICH IS HOW A CONTROLLED INVERTER IS BUILT. A XOR A = 0 MAKES IT SELF-INVERTING.
Duality
THE DUAL SWAPS AND WITH OR AND 0 WITH 1, LEAVING VARIABLES UNTOUCHED. EVERY BOOLEAN IDENTITY REMAINS VALID WHEN DUALISED.
DUALITY IS NOT COMPLEMENTATION. THE DUAL OF A + 0 IS A TIMES 1, AND BOTH EQUAL A, WHEREAS THE COMPLEMENT OF A IS A DIFFERENT FUNCTION.
De Morgan's laws
THE COMPLEMENT OF (A + B) EQUALS NOT-A TIMES NOT-B. THE COMPLEMENT OF (A TIMES B) EQUALS NOT-A + NOT-B.
BREAK THE BAR AND CHANGE THE OPERATION. APPLYING THEM REPEATEDLY PUSHES EVERY COMPLEMENT INWARD UNTIL IT SITS ONLY ON INDIVIDUAL VARIABLES.
Gate redrawing
A NAND GATE EQUALS AN OR GATE WITH INVERTED INPUTS, AND A NOR GATE EQUALS AN AND GATE WITH INVERTED INPUTS.
THIS IS THE BASIS OF ALL NAND-ONLY AND NOR-ONLY IMPLEMENTATIONS, AND IT IS DE MORGAN'S LAW DRAWN AS A PICTURE.
Canonical forms
SUM OF PRODUCTS LISTS THE MINTERMS WHERE THE FUNCTION IS 1. PRODUCT OF SUMS LISTS THE MAXTERMS WHERE IT IS 0.
THE TWO INDEX SETS ARE COMPLEMENTARY: IF SOP IS THE SUM OF m(0,2,5,7) FOR THREE VARIABLES, POS IS THE PRODUCT OF M(1,3,4,6).
Minterms and maxterms
MINTERM m_i IS 1 FOR EXACTLY ONE INPUT COMBINATION; MAXTERM M_i IS 0 FOR EXACTLY ONE. THEY ARE COMPLEMENTS OF EACH OTHER.
A CANONICAL FORM IS UNIQUE, WHICH MAKES IT THE RELIABLE WAY TO PROVE TWO EXPRESSIONS EQUAL.
K-map ordering
ROW AND COLUMN LABELS FOLLOW GRAY CODE ORDER 00, 01, 11, 10 SO THAT ADJACENT CELLS DIFFER IN EXACTLY ONE VARIABLE.
USING BINARY COUNTING ORDER INSTEAD IS THE SINGLE MOST COMMON WAY TO GET A K-MAP WRONG, BECAUSE IT DESTROYS THE ADJACENCY THE METHOD DEPENDS ON.
Grouping rules
GROUPS MUST BE RECTANGULAR WITH A POWER-OF-TWO CELL COUNT, MAY WRAP AROUND EDGES, MAY OVERLAP, AND SHOULD BE AS LARGE AS POSSIBLE.
A GROUP OF THREE CELLS IS NEVER LEGAL. ON A 4-VARIABLE MAP THE FOUR CORNER CELLS FORM A LEGAL GROUP OF FOUR.
Group size and literals
A GROUP OF 2^k CELLS ELIMINATES k VARIABLES FROM THE TERM.
A GROUP OF 8 ON A 4-VARIABLE MAP LEAVES ONE LITERAL; A GROUP OF 16 LEAVES THE CONSTANT 1.
Product of sums from a map
GROUP THE ZEROS INSTEAD AND COMPLEMENT EACH VARIABLE WHEN READING THE TERM.
THIS GIVES A GENUINELY DIFFERENT EXPRESSION, AND FOR SOME FUNCTIONS IT IS CHEAPER THAN THE SUM-OF-PRODUCTS FORM.
Don't cares
EACH DON'T CARE MAY BE TREATED AS 1 OR 0 INDEPENDENTLY, WHICHEVER MAKES THE GROUPING LARGER.
A DON'T CARE MAY ENLARGE A GROUP, BUT A GROUP CONSISTING ONLY OF DON'T CARES MUST NEVER BE FORMED, SINCE IT COVERS NO ACTUAL 1.
Prime implicants
AN IMPLICANT IS ANY LEGAL GROUP. A PRIME IMPLICANT IS A GROUP THAT CANNOT BE MADE LARGER.
AN ESSENTIAL PRIME IMPLICANT COVERS AT LEAST ONE 1 THAT NO OTHER PRIME IMPLICANT COVERS, AND THAT UNCOVERED 1 FORCES ITS INCLUSION.
The minimisation procedure
FIND ALL PRIME IMPLICANTS, IDENTIFY THE ESSENTIAL ONES BY LOOKING FOR 1s COVERED EXACTLY ONCE, SELECT THOSE, THEN ADD THE FEWEST REMAINING NEEDED TO COVER THE REST.
A MINIMAL EXPRESSION IS NOT ALWAYS UNIQUE. WHEN TWO SELECTIONS OF THE SAME SIZE BOTH COVER EVERYTHING, SEVERAL ANSWERS ARE EQUALLY CORRECT.
Quine-McCluskey
PHASE ONE COMBINES TERMS DIFFERING IN EXACTLY ONE BIT, REPLACING THAT POSITION WITH A DASH, UNTIL NO FURTHER COMBINATION IS POSSIBLE.
PHASE TWO BUILDS A PRIME IMPLICANT CHART AND SELECTS A MINIMUM COVER. A COLUMN WITH A SINGLE MARK IDENTIFIES AN ESSENTIAL PRIME IMPLICANT.
Functional completeness
NAND ALONE IS FUNCTIONALLY COMPLETE, AND SO IS NOR ALONE. {AND, OR, NOT} IS COMPLETE. {AND, OR} IS NOT. {XOR} IS NOT, BUT {XOR, AND} IS.
FOR NAND: TYING BOTH INPUTS TOGETHER GIVES NOT, A NAND FOLLOWED BY THAT GIVES AND, AND BY DE MORGAN A NAND WITH INVERTED INPUTS GIVES OR.
Why AND and OR are incomplete
BOTH ARE MONOTONIC: RAISING AN INPUT CAN NEVER LOWER THE OUTPUT. NOT IS NOT MONOTONIC.
COMPOSING MONOTONIC FUNCTIONS PRESERVES MONOTONICITY, SO NO ARRANGEMENT OF AND AND OR GATES CAN EVER PRODUCE AN INVERTER.
⚠️

Traps GATE sets — and how to dodge them

These are the exact option-traps and misreads that cost marks under negative marking.

WATCH OUT
Labelling a K-map in binary counting order
The labels must be 00, 01, 11, 10 in Gray code order, so that adjacent cells differ in exactly one variable. Binary order destroys the adjacency that makes grouping valid, and every subsequent step is then wrong.
WATCH OUT
Forming a group of three cells
Group sizes must be powers of two: 1, 2, 4, 8 or 16. Three cells cannot eliminate a whole number of variables, so a three-cell group is covered instead as a pair plus a single, or as an overlapping four.
WATCH OUT
Missing wrap-around groups
The leftmost and rightmost columns differ in exactly one variable, as do the top and bottom rows, so groups may cross the edges. On a 4-variable map the four corner cells form a legal group of four.
WATCH OUT
Avoiding overlapping groups
Overlap is allowed and is often necessary to make each group as large as possible. Insisting on disjoint groups produces smaller groups and therefore more literals than the minimal expression needs.
WATCH OUT
Forming a group made only of don't cares
A don't care may enlarge a group that already contains a 1, but a group of don't cares alone covers nothing and adds a term for no benefit. Every group must contain at least one genuine minterm.
WATCH OUT
Treating every prime implicant as essential
A prime implicant is essential only if it covers a 1 that no other prime implicant covers. A function can have many prime implicants and none essential, which forces a choice and makes the minimal form non-unique.
WATCH OUT
Assuming the minimal expression is unique
When two different selections of the same size both cover all the minterms, both are minimal. A question asking for 'the' minimal form may accept more than one answer, so a mismatch with the key is not automatically an error.
WATCH OUT
Confusing the dual with the complement
The dual swaps AND with OR and 0 with 1 while leaving variables unchanged; the complement also complements the variables. The dual of an identity is another identity, whereas the complement is a different function.
WATCH OUT
Applying De Morgan to only part of a nested expression
Break the outermost bar first and change that operation, then continue inward. Attempting to distribute a complement across several levels in one step is where sign errors enter.
WATCH OUT
Reading POS terms without complementing
When grouping zeros to obtain a product-of-sums form, each variable is complemented relative to how it would be read for a sum-of-products group. Forgetting this produces the complement of the intended function.
WATCH OUT
Missing the absorption laws in algebraic simplification
A + AB reduces to A, and A(A + B) also reduces to A. Recognising these two patterns saves several steps and is the difference between a two-line and a ten-line simplification.
WATCH OUT
Trying to factor A plus not-A times B
It does not factor usefully; the identity A + not-A B = A + B must be recognised. It is worth memorising because no single axiom produces it directly.
WATCH OUT
Assuming XOR alone is functionally complete
It is not, because XOR preserves parity in a way that prevents constructing AND. Adding AND makes the set complete, since XOR with a constant 1 then supplies the complement.
WATCH OUT
Claiming AND and OR can build NOT with enough gates
No arrangement can, because both are monotonic and monotonicity is preserved under composition. NOT is non-monotonic, so the impossibility is structural rather than a matter of circuit size.
WATCH OUT
Adding inverters unnecessarily in a NAND implementation
Replacing every AND and every OR in a sum-of-products expression with a NAND already works, because the two inversions introduced at each level cancel. Extra inverters are needed only for complemented inputs.

Exam-pattern practice

PYQ-style questions with full solutions. Work through them as a readiness check — mark yourself honestly and get your gap report at the end.

Readiness check

Are you exam-ready for Boolean Algebra & K-maps?

9 problems from this chapter. Try each one, reveal the worked solution, mark yourself honestly — get your gap report at the end.

9 questions~6 min

5-minute revision

The whole chapter, distilled. Read this the night before the exam.

  • A truth table determines a function completely.
  • Minimisation is a covering problem.
  • Axioms come in dual pairs.
  • A + AB reduces to A by absorption.
  • A + not-A B equals A + B.
  • The consensus term is redundant.
  • XOR is commutative and associative.
  • A XOR 1 inverts; A XOR 0 passes through.
  • A XOR A is 0, so XOR is self-inverting.
  • The dual swaps AND with OR and 0 with 1.
  • The dual is not the complement.
  • De Morgan breaks the bar and changes the operation.
  • NAND equals OR with inverted inputs.
  • NOR equals AND with inverted inputs.
  • SOP lists 1-minterms; POS lists 0-maxterms.
  • The two index sets are complementary.
  • Canonical forms are unique.
  • K-map labels are Gray code, not binary order.
  • Groups are rectangular and power-of-two sized.
  • A group of three cells is never legal.
  • Groups may wrap around edges.
  • The four corners form a legal group of four.
  • Overlapping groups are allowed and often needed.
  • A group of 2^k cells eliminates k variables.
  • Group zeros and complement to get POS.
  • Don't cares may be 1 or 0 independently.
  • A group of only don't cares is never legal.
  • A prime implicant cannot be enlarged.
  • An essential prime implicant covers a uniquely-covered 1.
  • A function can have prime implicants and none essential.
  • Minimal expressions need not be unique.
  • Quine-McCluskey combines terms differing in one bit.
  • A chart column with one mark marks an essential implicant.
  • NAND alone is functionally complete.
  • NOR alone is functionally complete.
  • {AND, OR} is not complete because both are monotonic.
  • XOR alone is not complete; XOR with AND is.
  • SOP to NAND needs no extra inverters for true inputs.

GATE question blueprint

How this topic is asked, tier by tier — so you can prep to the pattern.

Typical weightage: Digital Logic contributes roughly 6-8 of the 72 core-CS marks; Boolean minimisation supplies 2-3 of those across 1-2 questions

Question styleMarks eachTypical countWhat it tests
Boolean simplification1~1Absorption, the A plus not-A B identity and consensus
Canonical forms1~1Converting between minterm and maxterm index sets
K-map minimisation2~1Gray code adjacency, wrap-around groups and reading the minimal term
Don't cares2~1Using don't cares to enlarge groups without forming an illegal one
Prime implicants2~1Counting prime and essential prime implicants, often as a NAT
De Morgan and NAND2~1Gate transformations and counting gates in a NAND-only implementation
Functional completeness1~1Which gate sets are complete and the monotonicity argument
Quine-McCluskey2~1Both phases of the tabular method and why it scales past five variables

Exam-hall strategy

Battle-tested tips from mentors and toppers for this topic under the sectional clock.

  1. Label the K-map in Gray code order before writing anything in it.
  2. Look for the largest legal groups first, including wrap-around and corners.
  3. Use don't cares only to enlarge groups that already contain a 1.
  4. For prime implicant counts, check every group for extension before counting it.
  5. Identify essential implicants by scanning for minterms covered exactly once.
  6. Verify a minimised expression against two or three original minterms.
  7. Prime implicant counts are commonly set as NAT, which carries no negative marking, so never leave one blank.
  8. For 1-mark and 2-mark MCQs, negative marking is -1/3 and -2/3, so guess only after eliminating an option.
  9. GATE gives a single freely-navigable 180-minute window, so flag a five-variable minimisation and return to it.

Beyond the exam

Where this skill shows up in the job you're competing for — and in life.

Reducing gate count in a design

Every literal removed by a larger K-map group is a transistor pair saved, which is why minimisation still runs inside modern synthesis tools.

Exploiting impossible input states

Don't cares are how a BCD decoder collapses to a fraction of its naive size, using the six input codes that can never occur.

Building a circuit from one gate type

NAND completeness is why entire libraries are implemented in a single gate style, which simplifies fabrication and timing characterisation.

Simplifying a conditional in code

The same absorption and De Morgan rules that shrink a circuit also shrink a nested if-condition, and the reasoning is identical.

Where else this topic is tested

Prepare once, score in every exam that asks it.

GATE EC and EEVery high overlap — Boolean algebra, K-maps and gate implementations are examined identically across all engineering GATE papers
UGC NET Computer ScienceHigh overlap — minimisation, canonical forms and functional completeness are examined as direct recall
ISRO / BARC / DRDO computer science papersVery high overlap — prime implicant counting and NAND-only implementations are recurring MCQ topics

Questions aspirants ask

Pulled from the Q&A community and mentor sessions.

Because the entire method depends on physically adjacent cells differing in exactly one variable, and only Gray code ordering delivers that. The grouping rule works because when two cells agree on every variable but one, that one variable takes both values across the pair and can be factored out: AB not-C plus ABC equals AB. If the labels ran 00, 01, 10, 11 in binary order, then the second and third columns would differ in two variables at once, and grouping them would eliminate nothing while producing an expression that is simply wrong. Gray code ordering 00, 01, 11, 10 guarantees that every horizontal and vertical neighbour differs in one bit. It also delivers the wrap-around property for free: the last column 10 and the first column 00 differ in exactly one bit, as do the last and first rows, which is why groups may cross the edges of the map and why the four corner cells of a four-variable map form a legal group. Getting the labelling wrong is the single most common way to lose a K-map question, and it fails silently, because the resulting expression looks plausible and simply does not match the truth table. The check worth performing is to verify one or two minterms of the final expression against the original index list.

A prime implicant is any group that cannot be made larger: no adjacent group of double the size exists on the map. An essential prime implicant is a prime implicant that covers at least one minterm which no other prime implicant covers. The distinction matters because it drives the minimisation procedure. Essential prime implicants must appear in every minimal expression, since the minterm they uniquely cover has no other source. So the algorithm is: list all prime implicants, scan the minterms for any covered exactly once, select the implicants those force, then choose the fewest remaining implicants to cover whatever is left. GATE examines the two counts directly, usually as numerical-answer questions, precisely because they are easy to state and easy to get wrong. Two errors dominate. The first is calling every group a prime implicant without checking whether it extends, which inflates the count. The second is assuming every prime implicant is essential, which is often false: a function can have six prime implicants and no essential ones at all, as happens whenever every minterm sits in at least two groups. When there are no essential implicants, the minimal form is necessarily non-unique, and a question asking for 'the' minimal expression may have several equally correct answers of the same cost.

A don't care marks an input combination that either cannot occur or whose output nobody depends on, and it may be treated as 1 or as 0 independently for each grouping decision. That freedom is what makes them valuable: including a don't care can complete a group of eight where only a group of four was otherwise available, and each doubling of group size removes another variable from the term. The classic setting is BCD, where the six combinations 1010 through 1111 never appear, and a BCD decoder exploits them to collapse what would otherwise be a large expression. The rule that gets broken is that a group must contain at least one genuine minterm. A group formed entirely of don't cares covers no 1 of the function, so it contributes a product term to the expression while covering nothing, making the result larger rather than smaller. It is a legal-looking group on the map and an outright mistake in the expression. The right mental model is that don't cares are opportunities and never obligations: use one when it enlarges a group that already contains a 1, and ignore it otherwise. The BCD example in this chapter shows the payoff clearly, where a five-minterm function collapses to the single literal D once the odd don't cares are absorbed, and would not have done so had the even don't cares been grouped on their own.

Because completeness requires escaping five closure properties, and NAND and NOR are the only two-input gates that escape all of them. Post's theorem states that a set of Boolean functions is complete exactly when, for each of five properties, the set contains at least one function lacking it. The properties are: preserving 0, meaning an all-zero input gives 0; preserving 1, meaning an all-one input gives 1; monotonicity, meaning raising an input never lowers the output; self-duality; and linearity in the XOR sense. Each property is closed under composition, so if every gate in a set has one of them, every circuit built from that set has it too, and any function lacking it is unreachable. AND and OR both preserve 0 and 1 and are both monotonic, which is why that set cannot produce NOT. XOR is linear, and composing linear functions stays linear, so XOR alone cannot produce AND. NAND preserves neither constant, is not monotonic, is not self-dual and is not linear, so it fails all five and is complete alone. NOR is in the same position by duality. The constructive proof is short and worth being able to reproduce: a NAND with both inputs tied together is an inverter, a NAND followed by that inverter is an AND, and by De Morgan a NAND applied to two inverted inputs is an OR.

Use a K-map whenever the function is given as a minterm list or a truth table and has at most four or five variables, which covers the great majority of GATE questions. The map finds the guaranteed minimal cover by inspection, and it makes prime implicants and essential prime implicants directly visible, which pure algebra does not. Use algebra when the function arrives as an expression that needs proving equal to another, when the number of variables is large but the expression is structurally simple, or when the question is really about recognising a specific identity. The absorption laws, the identity A plus not-A B equals A plus B, and the consensus theorem are the three patterns that appear most, and spotting them collapses an expression in one step where a map would first require expanding to minterms. A practical hybrid is common in exam conditions: simplify algebraically until the expression is small enough to enumerate, then confirm the result by checking two or three minterms against the original. For proving two expressions equal, the safest route is neither pure algebra nor a map but canonical expansion, since a canonical form is unique. Expand both sides to their minterm index sets and compare; if the sets match, the expressions are the same function, and no chain of manipulations can be challenged.
Header Logo