3.1.12 · D1Boolean Algebra & Logic Gates

Foundations — Don't-care conditions in K-maps

2,077 words9 min readBack to topic

This page assumes you have seen nothing. We build every letter, symbol and picture the parent note leans on, one brick at a time, each brick resting on the one before it.


1. A bit, and the symbols and

Everything downstream is built from bits. When we write , , , later, each is just a switch that is either off () or on ().

Why we need it: a logic circuit has wires, and every wire carries a bit. To talk about circuits at all, we must first agree that a signal is one of exactly two values.


2. Input variables and what "a combination" means

If you have variables, the number of different input combinations is (each variable independently on/off).

  • variables () → combinations.
  • variables () → combinations.
  • variables () → combinations.

Why we need it: the parent note's 4-variable BCD example has exactly rows — that is . Knowing this number tells you how many squares your K-map must have.


3. The overbar — the NOT operation

Picture a switch and its shadow-switch wired to always be opposite: flip one, the other flips too.

Why we need it: a term like means " is on AND is off". Without the bar you could only talk about wires being on. The bar lets you also say "this wire must be off".


4. AND () and OR (): the two glue symbols

Figure — Don't-care conditions in K-maps

Why we need it: the final answer in the parent note is built entirely from AND (inside each term) and OR (joining the terms). You cannot read that line without these two symbols.


5. Product term, literal, and "SOP"

Why we need it: the parent note's goal — "minimise the number of literals/terms" — is meaningless until you know what a literal and a term are. This is the quantity a K-map minimises. See Sum of Products (SOP) and Product of Sums (POS).


6. The truth table and the function

Why we need it: the K-map is nothing but a truth table folded into a grid. If you can't read a truth table, the grid is just squares.


7. Minterm and the notation

Example with : the combination reads as binary . So this row is "minterm ".

Figure — Don't-care conditions in K-maps

Why we need it: the parent note writes "Minterms where : " and "". Those numbers are minterms — you must be able to turn a number into its bit pattern and back.


8. The don't-care symbol and

Why we need it: this is the entire subject of the parent note. Row above is not and not — it is , a wildcard you paint to make bigger groups. See BCD - Binary Coded Decimal for where these come from naturally.


9. Gray-code ordering — why K-map columns go

Compare ordinary counting : going flips two bits at once. That is forbidden in a K-map.

Figure — Don't-care conditions in K-maps

Why we need it: the parent note's tables have headers "". If you assume normal binary order you will draw wrong groups. See Karnaugh Maps (K-maps).


10. Grouping, "power-of-two", and dropping a variable

Why we need it: "make a bigger group → drop a variable → fewer literals" is the mechanism the whole topic exploits. Don't-cares help only because painting an as can let a group double in size.

See Boolean Simplification for the algebra behind cancelling, and Quine-McCluskey Method for the same idea done as a table instead of a picture.


Prerequisite map

Bit 0 or 1

Variables A B C D

NOT bar over A

2 to the n combinations

AND dot and OR plus

Literal and product term

Sum of Products

Truth table

Minterm and sum m

Don't care X and sum d

Gray code order

Groups powers of two

Don't-care conditions in K-maps

Every arrow means "you need the left box before the right box makes sense." The topic sits at the bottom because it uses all of them at once. Return to the parent: Don't-care conditions in K-maps (index 3.1.12).


Equipment checklist

Read each question, answer in your head, then reveal.

What are the only two values a bit can take?
and (off and on).
How many input combinations do variables have, and why?
— each variable independently doubles the count.
What does mean?
NOT : it is when and when .
In Boolean algebra, what does equal and why?
— the is OR, so two ons give an on.
What does the symbol (or juxtaposition ) mean?
AND — output only when both inputs are (switches in series).
How many literals are in the term ?
Three.
What is a Sum of Products expression?
Product terms (AND groups) OR-ed together, e.g. .
Convert the input to its minterm number.
(binary ).
What does mean?
on rows ; every other listed row is .
What does an in a K-map mean?
A don't-care — an output you're free to set to or .
Why do K-map columns run instead of ?
Gray code — each step changes exactly one bit, so adjacent squares are combinable.
A group of squares in a -variable map keeps how many literals?
One ().
Why must groups be a power of two in size?
Only by doubling can a variable take both values inside the group and cancel out.