Karnaugh Map Simplification

College Depth 47 in the knowledge graph I know this Set as goal
optimization boolean-algebra logic-design

Core Idea

Karnaugh maps simplify Boolean expressions visually by grouping adjacent 1s. Larger groups yield simpler expressions, reducing gate count and improving circuit efficiency.

Explainer

You already know how to express logic functions as Boolean equations and implement them with gates. The problem is that a truth table or sum-of-products expression straight from a specification often contains redundancy — terms that can be combined because they differ in only one variable. Boolean algebra gives you the laws to simplify, but applying them algebraically is error-prone and unsystematic. The Karnaugh map (K-map) solves this by turning algebraic simplification into a visual pattern-matching exercise.

A K-map is a grid where each cell represents one row of the truth table. The key design choice is that adjacent cells differ in exactly one variable — the columns and rows are ordered using Gray code, not standard binary counting. This means that any two physically neighboring cells (including wrap-around from the last column back to the first) share all variable values except one. When two adjacent cells both contain a 1, those two minterms can be combined, eliminating the variable that differs between them. This is exactly the Boolean algebra rule A·B + A·B' = A, but you find it by sight instead of by manipulation.

The grouping rules are straightforward: groups must be rectangular, and their size must be a power of two (1, 2, 4, 8, or 16 cells). A group of two eliminates one variable, a group of four eliminates two, a group of eight eliminates three, and so on. Your goal is to cover every 1 in the map using the fewest, largest possible groups. Each group becomes one product term in the simplified expression, and the variables that stay constant across the group form that term. For example, in a 4-variable K-map, a group of four cells where A=1 and C=0 throughout (while B and D vary) simplifies to the term A·C'.

Don't-care conditions — inputs that will never occur or whose output doesn't matter — are marked with X and can be included in groups if doing so makes a group larger. This is where K-maps really shine compared to algebraic simplification: you can opportunistically absorb don't-cares to create bigger groups without affecting the circuit's behavior on valid inputs. The result is a minimal sum-of-products (or product-of-sums) expression that maps directly to a gate-level implementation with fewer gates, fewer inputs per gate, and lower propagation delay than the unsimplified version.

Practice Questions 5 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsOperators and ExpressionsArithmetic Operators and Operator PrecedenceComparison Operators and Boolean TestsLogical Operators and Boolean AlgebraBoolean Algebra and Fundamental LawsLogic Gates FundamentalsImplementing Boolean Functions with GatesKarnaugh Map Simplification

Longest path: 48 steps · 204 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.