UNIHIVE

Study Hub UNIPORT CSC 284

CSC 284 · Introduction to Logic Design

Boolean algebra and switching theory

Variables with two values, the laws of Boolean algebra, De Morgan's theorems, and truth tables.

Our notes

2 min read

Boolean variables

George Boole (1854) built an algebra for true and false; Claude Shannon (1938) showed it describes switching circuits. A Boolean variable is 0 or 1. Three basic operations:

  • AND (AB): 1 only if both are 1.
  • OR (A + B): 1 if at least one is 1.
  • NOT (A'): the opposite value.

Laws

  • Identity: A + 0 = A; A · 1 = A.
  • Null: A + 1 = 1; A · 0 = 0.
  • Idempotent: A + A = A; AA = A.
  • Complement: A + A' = 1; AA' = 0.
  • Involution: (A')' = A.
  • Commutative, associative and distributive laws, including A + BC = (A + B)(A + C), which has no ordinary-algebra twin.
  • Absorption: A + AB = A; A(A + B) = A.
  • Also: A + A'B = A + B.

De Morgan's theorems

  • (A + B)' = A'B'
  • (AB)' = A' + B'

"Break the bar, change the sign." They let any circuit be built from NAND or NOR gates alone.

Worked example: simplify

F = AB + AB' + A'B

  • AB + AB' = A(B + B') = A.
  • F = A + A'B = A + B.

Check with a truth table: F is 0 only when A = B = 0, like OR.

Truth tables

List every combination of inputs (2ⁿ rows for n inputs) and the output. Two expressions are equal if their tables agree on every row.

Canonical forms

  • Minterm: an AND term with every variable once (row where F = 1). Sum of minterms (SOP): F = Σm(...).
  • Maxterm: an OR term with every variable (row where F = 0). Product of maxterms (POS): F = ΠM(...).

For F = A + B: F = Σm(1, 2, 3) = ΠM(0).

Worked example: from a truth table

A three-input majority function is 1 when two or more inputs are 1: rows 3, 5, 6 and 7. F = A'BC + AB'C + ABC' + ABC, which simplifies to AB + BC + AC.

Duality

Swap AND with OR and 0 with 1 in any true identity and you get another true identity: A + 0 = A becomes A · 1 = A.

Exams usually ask

  • Prove identities with the laws; simplify expressions; apply De Morgan.
  • Write SOP and POS forms from a truth table.

Common mistake

Writing (AB)' = A'B'. The correct result is A' + B'.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

Practise

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All CSC 284 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.