Digital Logic & Boolean Algebra Formula Sheet

De Morgans laws, Karnaugh map prime implicant grouping, sum-of-products truth tables, and single-error-correcting Hamming parity codes.

Core Equations & Variable Definitions

De Morgans Laws

\overline{A \cdot B} = \bar{A} + \bar{B}, \quad \overline{A + B} = \bar{A} \cdot \bar{B}

Break the bar and flip the operator between AND and OR.

Hamming Parity Bit Requirement

2^r \ge m + r + 1

m: data bits, r: minimum parity bits placed at power-of-two positions 1, 2, 4, 8...

Consensus & Absorption Identities

A + AB = A, \quad A + \bar{A}B = A + B

Core algebraic reductions mirrored visually by K-map groupings.

Canonical Sum of Products (SOP)

F = \sum m(\text{rows where } F = 1)

Each minterm is a product of all input variables evaluating to 1 on one truth-table row.

Interactive Digital Logic Calculators

Common Exam Questions

What group sizes are legal on a Karnaugh map?

K-map groups must be rectangular powers of two (1, 2, 4, 8, or 16 cells) and may wrap across opposite horizontal or vertical edges.

How does Hamming code locate a flipped bit?

Recomputing each parity bit produces a binary syndrome word whose decimal value directly points to the 1-indexed position of the corrupted bit.

Why are NAND and NOR called universal gates?

Any Boolean logic function (NOT, AND, OR, XOR) can be constructed using only NAND gates or only NOR gates.