Learn Karnaugh Maps and Boolean Logic
Short, exact guides with worked examples, written for digital-logic and computer-architecture courses. Every example is computed by the same tested code as the tools, so the answers are right.
Guides
- How to Solve a K-MapHow to solve a Karnaugh map in 6 steps, with worked 3- and 4-variable examples, a cyclic map with two answers, and the mistakes that cost marks.
- K-Map Grouping RulesThe rules for grouping cells in a Karnaugh map: powers of two, rectangles, wrap-around edges and corners, overlap, largest groups, fewest groups.
- Don't-Care ConditionsWhat don't-care conditions are, where they come from (BCD, unused states), and how to use X cells in a Karnaugh map, with a BCD worked example.
- Quine–McCluskey MethodThe Quine–McCluskey tabular method explained with a full worked example: grouping by ones, combining, prime implicant chart and Petrick's method.
- Minterms, Maxterms, SOP & POSMinterms and maxterms, Σm and ΠM notation, canonical and minimal SOP and POS forms, and how to convert between them, with tables for 3 variables.
- Boolean Algebra LawsEvery Boolean algebra law in one table (identity, complement, De Morgan, absorption, consensus…) with dual forms, truth-table proofs and examples.
K-maps by number of variables
- 2-Variable K-MapSolve a 2-variable Karnaugh map: the 2×2 layout, cell numbers, every possible group and a worked example, with an interactive solver.
- 3-Variable K-MapSolve a 3-variable Karnaugh map (A, BC) online. Gray-code layout, cell numbers, wrap-around groups and worked examples in SOP and POS.
- 4-Variable K-MapSolve a 4-variable Karnaugh map (AB, CD) with don't-cares. Cell numbering, edge and corner groups, worked examples and all minimal answers.
- 5-Variable K-MapSolve a 5-variable Karnaugh map. How the two 4×4 maps (A = 0, A = 1) work, which cells are adjacent across them, and a worked example with steps.
- 6-Variable K-MapSolve a 6-variable Karnaugh map with four 4×4 maps. Map arrangement, adjacency between maps, group sizes up to 64 and a worked example.
Suggested order
- Boolean algebra laws and logic gates: the vocabulary.
- Minterms, maxterms, SOP and POS: how a function is written down.
- How to solve a K-map, then the grouping rules and don’t-cares.
- 5- and 6-variable maps, then the Quine–McCluskey method for anything larger.