3.1.11 · D1Boolean Algebra & Logic Gates

Foundations — Karnaugh map simplification (2,3,4 variables)

2,068 words9 min readBack to topic

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.


1. A variable and its two values (0 and 1)

The picture: think of a light switch. It is either OFF or ON — no half-way. We write OFF as and ON as .

  • means true / yes / on / high.
  • 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.


2. The bar — NOT (the opposite)

The picture: a see-saw. Push one side down () and the other side () goes up (). They are always opposite.

0 1
1 0

3. AND (·) and OR (+) — the two ways to combine

We stack single variables into rules using two operators.

Figure — Karnaugh map simplification (2,3,4 variables)

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.


4. A product term and Sum-of-Products


5. Binary numbers and bits

The picture: columns worth . To read 1011: .


6. Minterm and the notation

For 3 variables :

decimal minterm
000 0
001 1
101 5
111 7

7. Gray code — the special ordering

Figure — Karnaugh map simplification (2,3,4 variables)

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.


8. The cell, adjacency, and wrap-around

Figure — Karnaugh map simplification (2,3,4 variables)

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.


9. The don't-care symbol (or )


The combining theorem (the engine you're building toward)

Everything above exists so this single law can be applied visually:

Now every symbol in that formula is defined: are variables (§1), 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 the one varying variable you get to drop. This law is proven in Boolean Algebra Laws.


How these foundations feed the topic

Bits 0 and 1

Binary numbers

NOT the bar

AND and OR

Product terms and SOP

Minterm index and Sum m

Gray code ordering

Cell adjacency and wrap

Placing 1s in cells

Reading a group as a term

Karnaugh map grouping

Dont care symbol


Equipment checklist

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?
and (false/off and true/on).
What does the bar in mean?
Flip the bit — is the opposite value of .
In Boolean algebra, what is ?
(OR of "yes" and "yes" is still "yes"), not .
Does mean add or AND?
AND — it is only when both and are .
Convert 1011 to decimal.
.
Convert decimal to a 3-bit pattern.
011.
What does mean?
The function is exactly at minterms 1, 3, 5, 7, and 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 if it enlarges a group, otherwise as (ignore it).
State the combining theorem.
— the variable that appears both true and false is dropped.