Boolean algebra and minimization
GATE CS65 min read
Boolean variables and basic operations
Definition. A Boolean variable takes one of two values, 0 or 1. Complement is written ; it interchanges 0 and 1. AND, OR, and XOR are written , , and . Unless parentheses say otherwise, complement binds first, then AND, then OR.
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 1 | 0 |
Example. If and , then .
Exam point. Treat Boolean addition as OR, not integer addition; in this algebra.
Fundamental identities
Definition. Boolean identities hold for every assignment of their variables. The laws of identity, null, idempotence, complement, absorption, and distributivity are used to shorten expressions without changing their truth tables. The dual of a valid identity follows by exchanging with multiplication and 0 with 1.
| Law | AND form | OR form |
|---|---|---|
| Identity | ||
| Null | ||
| Idempotence | ||
| Complement | ||
| Absorption |
Example. because .
Exam point. Distribution has two valid forms: and .
Simplifying with algebra
Definition. Algebraic minimization applies identities until redundant literals or terms disappear. A literal is a variable or its complement. The result is not necessarily a globally minimum expression unless all alternatives are compared; a valid simplification only needs to preserve the function.
Example. Simplify .
Exam point. Pair terms that differ in one literal: .
Solved calculation.
- Factor the first two terms: .
- Use complementarity: , so .
- This form is often shorter than the original sum of three products.
De Morgan laws and complements of expressions
Definition. De Morgan's laws are and . For a longer expression, complement every literal and exchange every AND and OR gate, including nested groups. These laws apply to Boolean values and are the basis of NAND and NOR transformations.
Example. .
Exam point. The complement of a sum is a product of complements; parentheses must be retained when expanding it.
Solved calculation. Find the complement of .
- Complement the outer OR: .
- Complement the product: multiplied by .
- Apply De Morgan to the sum: .
- Thus . Answer. .
Sum of products and product of sums
Definition. A product term is an AND of literals, and a sum term is an OR of literals. A sum-of-products (SOP) expression ORs product terms; a product-of-sums (POS) expression ANDs sum terms. Canonical SOP lists minterms where the function is 1; canonical POS lists maxterms where it is 0.
Example. is SOP; is POS.
Exam point. A minterm has every input variable once; a maxterm also has every input variable once, but its zero row determines its signs.
Solved calculation. Write the minterm for input and the maxterm for row 010.
- In a minterm, a 1 input appears uncomplemented and a 0 input complemented: row 101 gives .
- A maxterm must evaluate to 0 on its row. A 0 input appears uncomplemented, while a 1 input is complemented: row 010 gives . Answer. and when is the most significant bit.
Minterm indexing and canonical forms
Definition. For variables ordered , binary input denotes decimal minterm index . The notation identifies the 1 rows, while identifies the 0 rows. Indices are meaningful only with the variable order stated.
Example. is .
Exam point. Check the order before converting an index; changing variable order changes each index.
Solved calculation. A three-input function is 1 on rows 001, 011, 100, and 111. Give both canonical forms.
- Convert rows to indices: .
- Therefore .
- The remaining rows are .
- Therefore . Answer. .
Karnaugh maps and Gray-code order
Definition. A Karnaugh map places truth-table rows in a grid so adjacent cells differ in exactly one input bit. Axis labels use Gray order, such as 00, 01, 11, 10, rather than ordinary binary order. The first and last rows or columns are adjacent because the map wraps around.
Example. For a four-variable map, the columns labelled 00 and 10 are adjacent; they differ in one bit at the wrap boundary.
Exam point. Diagonal cells are not adjacent, and Gray order is essential for valid groups.
Solved map setup. Use rows and columns . Locate minterms .
- goes to row 00, column 00.
- goes to row 00, column 10.
- goes to row 10, column 00.
- goes to row 10, column 10.
- The occupied cells make a wraparound four-cell rectangle across the first and last rows and columns.
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | 1 () | 0 | 0 | 1 () |
| 01 | 0 | 0 | 0 | 0 |
| 11 | 0 | 0 | 0 | 0 |
| 10 | 1 () | 0 | 0 | 1 () |
Answer. The four cells share and , so the simplified term is .
Grouping ones for minimum SOP
Definition. In an SOP K-map, group adjacent 1 cells into rectangles of size . Each group must have a power-of-two size and may wrap around. A group of cells removes changing variables; the variables constant throughout the group form its product term.
Example. Pairing cells where changes but gives .
Exam point. Overlap is allowed when it helps cover all 1s with fewer or larger groups.
Solved calculation. Minimize .
- The minterms are 001, 011, 101, 111.
- In all four rows, , while and vary freely.
- Group all four 1s as a four-cell group.
- The only constant literal is . Answer. .
Essential prime implicants and coverage
Definition. A prime implicant is a valid group that cannot be enlarged while staying within the 1 cells (and any permitted don't-cares). It is essential if it covers a 1 not covered by any other prime implicant. A minimum cover must include every essential prime implicant and then cover remaining 1s with as little additional cost as possible.
Example. If one minterm belongs to only one prime implicant, that implicant is essential.
Exam point. First identify uniquely covered minterms; do not select groups by visual size alone.
Solved calculation. Let for variables .
- Pair gives ; pair gives ; pair gives ; pair gives .
- Minterm 0 is covered only by , so that term is essential.
- Minterm 6 is covered by (among these pairs), so include .
- Minterm 7 is covered by or a pair containing 6 and 7 only if that pair is formed; include the group , giving .
- The resulting cover is if all selected pairs are retained, but check whether a smaller cover exists: covers 0,2; covers 2,6; covers 6,7; covers 1,5. These four pairs cover all six minterms. Answer. One minimum SOP is . Trap. A quick pair list is not automatically minimum; confirm every selected group is needed and every minterm is covered.
Grouping zeros for minimum POS
Definition. A POS K-map groups 0 cells rather than 1 cells. For each zero group, retain variables that stay constant; a constant 0 appears uncomplemented in the sum term, and a constant 1 appears complemented. AND the resulting sum terms.
Example. A zero group with and gives the sum term .
Exam point. POS sign selection is the reverse-looking rule from minterms; test the term on the zero row.
Solved calculation. Find a POS for a function that is 0 at minterms 0, 1, 4, and 5 of .
- Rows 000, 001, 100, 101 are the zero cells.
- They form a four-cell group with fixed; and vary.
- The zero-producing sum term is because throughout the group.
- Thus the product of sums has one factor. Answer. .
Don't-care conditions
Definition. A don't-care input is an input combination whose output is irrelevant or unspecified. It may be treated as either 0 or 1 when forming a K-map cover, whichever produces a simpler valid implementation. It need not be included in any group.
You have read the free 28% of this note
Sign in with Google to keep reading. It is free, takes one tap, and you also get:
- 8 practice questions from this note
- Every note in full, plus the PDF library
- Official past papers as timed tests, with explanations
- An AI tutor for doubts, in Hindi or English
- Your progress, mistakes and study plan saved on every device