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)
| Rule | Correct | Wrong |
|---|---|---|
| contents | only 1s | any 0 inside a group |
| shape | rectangular | diagonal / L-shaped |
| size | power of 2 () | groups of 3, 5, 6 |
| extent | as LARGE as possible | splitting a 4-block into two 2-blocks |
| coverage | every 1 in ≥1 group | any orphan 1 |
| overlap | allowed and often needed | — |
| edges | wrap-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 :
| Step | Group | Constant vars | Term |
|---|---|---|---|
| 1 | block (columns , both rows) | only ( both vary) | |
| 2 | pair (columns , row ) | , ( varies) | |
| Result: — versus the 5-term raw SOP from Sum-of-Products (Functions to Circuits). |
✍️ Practice
Plot with 1s at (i.e. all rows with )… but draw the map first without reading ahead. Group and simplify.
Answer
- Map: entire row is 1s ➔ one group of 4 (wrapping across all columns).
- both vary ⟹ dropped; constantly ⟹ .
- Key move: the bigger the group, the fewer the surviving variables — a 4-group in a 3-var map leaves exactly one.
⚠️ 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.