Karnaugh Maps

Context: FIT1047_MOC · systematic minimisation of a truth table into the simplest SOP · replaces ad-hoc law-chasing (Boolean Algebra Laws) · the Assignment 1 circuit-simplification skill

Quick Revision

  • 🎯 Objective: plot the truth table on a grid whose neighbours differ in ONE variable ➔ circle maximal power-of-2 groups of 1s ➔ read each group as a product dropping every variable that varies inside it.
  • 📦 Core Components: Gray-code column order () ➔ grouping rules ➔ read-off.
  • ⚡ Key Constraint: column order is NOT binary counting — before ; wrap-around groups are legal.

📝 Core

  • Layout ➔ variables split across axes; adjacent cells (including wrap-around edges) differ in exactly one variable — that’s what makes grouping = simplification.
  • Why it works ➔ a group covering and with everything else fixed means is irrelevant there: — the map makes this VISUAL.
  • Read-off ➔ per group, keep only variables constant across the group (complemented if constantly ); OR the group-terms.
  • Scope ➔ best for ≤6 variables; produces the minimal SOP; larger functions use automated tools.

⚖️ Core Decision Matrix — grouping rules (the marker’s checklist)

RuleCorrectWrong
contentsonly 1sany 0 inside a group
shaperectangulardiagonal / L-shaped
sizepower of 2 ()groups of 3, 5, 6
extentas LARGE as possiblesplitting a 4-block into two 2-blocks
coverageevery 1 in ≥1 groupany orphan 1
overlapallowed and often needed
edgeswrap-around allowed (left–right, top–bottom)treating edges as walls

📊 Exam Execution Trace — lecture 3-variable example

Truth table ( on ) plotted with columns and rows :

StepGroupConstant varsTerm
1 block (columns , both rows) only ( both vary)
2pair (columns , row ), ( varies)
Result: — versus the 5-term raw SOP from Sum-of-Products (Functions to Circuits).

✍️ Practice

⚠️ Common Mistakes

  • 💡 — not ➔ binary-counting order breaks single-bit adjacency and every grouping after it.
  • 💡 Maximal beats multiple ➔ two 2-groups where one 4-group fits gives a correct but NON-minimal answer — marked down.
  • 💡 Forgetting wrap-around ➔ leftmost and rightmost columns are neighbours; missing edge groups leaves redundant terms.