Intuition The one core idea
A Karnaugh map is a picture that turns "which parts of my rule don't matter?" into "which blocks of neighbouring yes-cells can I circle?". Everything below — bits, minterms, Gray code, the bar over a letter — exists only to let you draw that picture correctly and read the shortened rule back off it.
Before you can group cells on a K-map, you must be fluent in the alphabet the map is written in. This page introduces every symbol the parent topic uses, one at a time, each anchored to a picture, each built on the one before it. Nothing is assumed.
Definition Boolean variable
A Boolean variable is a name (like A , B , C , D ) that can only ever be one of two values: 0 or 1 .
The picture: think of a light switch. It is either OFF or ON — no half-way. We write OFF as 0 and ON as 1 .
Intuition Why only two values?
Real circuits store information as "low voltage" or "high voltage". There is no third state a wire cheaply holds, so all of digital logic is built from switches that are 0 or 1 . The whole topic lives inside this two-value world.
1 means true / yes / on / high .
0 means false / no / off / low .
We will meet these in Truth Tables as the entries of a table, and on the K-map as the contents of each cell.
The picture: a see-saw. Push one side down (A = 1 ) and the other side (A ˉ ) goes up (= 0 ). They are always opposite.
Intuition Why the topic needs it
When you read a group off the K-map, a variable that is fixed at 0 becomes a barred letter. In Worked Example 2 the answer was B ˉ — that bar is the whole answer, so you must read it correctly. See Boolean Algebra Laws .
Common mistake Reading the bar as "minus"
Why it feels right: the bar looks like a subtraction line. Why it's wrong: there is no subtraction in Boolean algebra — the bar means flip the bit . A ˉ is not "A minus something", it is simply "the other value of A ".
We stack single variables into rules using two operators.
Definition AND — written as a dot or by touching letters
A ⋅ B , or just A B , is 1 only when both A = 1 and B = 1 . Otherwise it is 0 .
Definition OR — written as a plus sign
A + B is 1 when at least one of A , B is 1 . It is 0 only when both are 0 .
The picture (figure above): AND is two switches in series — current flows only if both are closed. OR is two switches in parallel — current flows if either is closed.
+ as ordinary addition
Why it's wrong: in Boolean algebra 1 + 1 = 1 (not 2!), because "yes OR yes" is still just "yes". The + symbol is borrowed but the meaning is OR, not sum.
Intuition Why the topic needs both
A K-map answer is a Sum of Products (see Sum of Products and Product of Sums ): each circled block becomes an AND term (letters touching), and the blocks are joined by OR (+ ). Example: F = C D + A ˉ B ˉ — two AND-blocks joined by one OR.
Definition Product term (a "block's rule")
A product term is one or more variables AND-ed together, e.g. A ˉ B ˉ or C D or a single C . Geometrically it names one circled group on the K-map.
Definition Sum of Products (SOP)
An OR of product terms, e.g. C D + A ˉ B ˉ . This is the shape every K-map answer takes.
Intuition Fewer literals = simpler
A literal is a single appearance of a variable, barred or not. A ˉ B ˉ has 2 literals; C has 1. The whole game of K-maps is to make each product term have as few literals as possible , because fewer literals means fewer wires and gates — see Logic Gate Minimisation .
Definition Bit and binary number
A bit is a single 0 or 1 . A binary number is a row of bits, read like an odometer that only has digits 0 and 1. The rightmost bit is worth 1 , then 2 , then 4 , then 8 , doubling each step left.
The picture: columns worth 8 , 4 , 2 , 1 . To read 1011: 8 + 0 + 2 + 1 = 11 .
8 1 4 0 2 1 1 1 = 8 + 2 + 1 = 11
Worked example Convert both ways
101 (three bits) = 4 + 0 + 1 = 5 .
Decimal 3 into 3 bits: 3 = 2 + 1 = 011.
Intuition Why the topic needs it
Each cell of a K-map corresponds to one exact combination of input bits, e.g. A B C = 101 . To place a 1 in the right cell you must convert between a decimal label and its bit pattern. That decimal label is the minterm index (next section).
m i
A minterm is one full input combination where the function outputs 1 . Its index i is the decimal value of that bit pattern.
For 3 variables A B C :
A B C
decimal i
minterm
000
0
m 0
001
1
m 1
101
5
m 5
111
7
m 7
∑ m list
F ( A , B , C ) = ∑ m ( 1 , 3 , 5 , 7 ) is shorthand for "F is 1 exactly at minterms 1 , 3 , 5 , 7 , and 0 everywhere else." The ∑ (sigma) here just means "OR together all these minterm cells."
Intuition Why the topic needs it
∑ m ( … ) is the input to every worked example. It is a compact truth table: instead of listing all 8 rows, you list only the rows that are 1 .
Gray code is an ordering of bit patterns in which each pattern differs from its neighbour by exactly one bit . For two bits the Gray order is 00, 01, 11, 10.
The picture (figure above): watch the single bit that flips at each step. Ordinary binary counting 00 → 01 → 10 flips two bits going from 01 to 10. Gray code 01 → 11 → 10 flips only one bit at every step — that is the whole reason the K-map uses it.
Common mistake Labelling columns in plain binary
00,01,10,11
Why it feels right: that's how you normally count. Why it's wrong: then the paper-adjacent columns 01 and 10 differ in two bits, so grouping them would break the combining theorem the parent relies on. Fix: always use 00,01,11,10.
One square of the K-map grid, holding the output (0 , 1 , or × ) for one input combination. A map of n variables has 2 n cells.
Definition Adjacency (the K-map meaning)
Two cells are adjacent if their input patterns differ in exactly one bit. Because of Gray-code labelling, this matches physical neighbours left/right and up/down — and the map's edges wrap around , like a donut (torus).
The picture (figure above): the left and right edges of the grid are actually touching, and so are the top and bottom. Roll the paper into a tube (left meets right), then bend the tube into a ring (top meets bottom) — that donut is the true shape of a K-map. The two orange corner cells look far apart on the flat map but are neighbours on the donut.
Intuition Why the topic needs it
Grouping only makes sense between adjacent cells. Wrap-around adjacency is why the top and bottom rows in Worked Example 2 could join into a group of 8, and why four corners can form one group.
A don't-care (× or listed as d ( … ) ) marks an input combination that can never happen , or whose output nobody cares about. You are free to pretend it is 1 or 0 — whichever makes your groups bigger.
Intuition Why the topic needs it
A lonely 1 that can only pair with a don't-care can be grown into a big group by treating that × as a 1 . If a × helps nothing, treat it as 0 and ignore it. See Don't-care Conditions .
Everything above exists so this single law can be applied visually :
Now every symbol in that formula is defined: X , Y are variables (§1), Y ˉ is NOT (§2), juxtaposition is AND and + is OR (§3), and "adjacent cells differ in one bit" (§7–8) is exactly the condition that makes Y the one varying variable you get to drop. This law is proven in Boolean Algebra Laws .
Reading a group as a term
Test yourself — you are ready for the parent topic only if you can answer each without peeking.
What are the only two values a Boolean variable can take? 0 and 1 (false/off and true/on).
What does the bar in A ˉ mean? Flip the bit — A ˉ is the opposite value of A .
In Boolean algebra, what is 1 + 1 ? 1 (OR of "yes" and "yes" is still "yes"), not 2 .
Does A B mean add or AND? AND — it is 1 only when both A and B are 1 .
Convert 1011 to decimal. 8 + 2 + 1 = 11 .
Convert decimal 3 to a 3-bit pattern. 011.
What does ∑ m ( 1 , 3 , 5 , 7 ) mean? The function is 1 exactly at minterms 1, 3, 5, 7, and 0 elsewhere.
Write the 2-bit Gray-code order. 00, 01, 11, 10.
Why not label columns in plain binary order? Then paper-adjacent labels could differ in two bits, breaking the combining theorem.
When are two K-map cells "adjacent"? When their input patterns differ in exactly one bit (includes wrap-around edges).
What shape is a K-map really (topologically)? A donut / torus — left↔right and top↔bottom edges touch.
How may you treat a don't-care × ? As a 1 if it enlarges a group, otherwise as 0 (ignore it).
State the combining theorem. X Y + X Y ˉ = X — the variable that appears both true and false is dropped.