PROJECTENGRAM

BOOLEAN ALGEBRA

Boolean Algebra

Tags: #◇Computer Science #◇CSARCH1 #◇Problem Solving #◇M3


◇Overview

This module discusses how to manipulate Boolean functions using Boolean algebra.
The objectives are:

  • Learn how to represent Boolean functions in canonical form.
  • Learn how to represent Boolean functions in standard form.
  • Learn how to simplify Boolean functions using Boolean algebra.
  • Learn how to obtain the complement of a Boolean function.

◇Important Concepts & Definitions

Boolean Function

A Boolean function is an expression formed with binary variables, binary or unary operators, parentheses, and an equal sign. It evaluates to either 1 or 0.
Example: F=XˉYˉZ+XYˉZˉ+XˉYZ+XYˉZF = \bar{X}\bar{Y}Z + X\bar{Y}\bar{Z} + \bar{X}YZ + X\bar{Y}Z

Literal

A literal can either be a primed or unprimed variable. It is represented by each appearance of a variable or its complement in any given Boolean expression.

  • Input to a gate.
  • Gate = term.
    Example: F=XˉYˉZ+XˉYZ+XYˉZˉ+XYˉZF = \bar{X}\bar{Y}Z + \bar{X}YZ + X\bar{Y}\bar{Z} + X\bar{Y}Z has 3 variables, 12 literals, and 4 terms.

Minterm

A minterm is a complete representation of a single Boolean expression obtained from an AND term of n variables.

  • A variable with a value of binary 0 is represented by a primed or complemented variable.
  • A variable with a value of 1 is represented by an unprimed variable.
  • It is denoted in the form mjm_j.

Maxterm

A maxterm is a complete representation of a single Boolean expression obtained from an OR term of n variables.

  • A variable with a value of binary 0 is represented by an unprimed variable.
  • A variable with a value of 1 is represented by a primed or complemented variable.
  • It is denoted in the form MjM_j.

◇Canonical Forms

Canonical Sum of Minterms

Expressed in the form of a Boolean function wherein you take all the binary 1’s in a given function from the truth table and express these 1’s in the form of minterms and sum them up.
Example:
F=XˉYˉZ+XˉYZ+XYˉZˉ+XYˉZF = \bar{X}\bar{Y}Z + \bar{X}YZ + X\bar{Y}\bar{Z} + X\bar{Y}Z
F=m1+m3+m4+m5=Σm(1,3,4,5)F = m_1 + m_3 + m_4 + m_5 = \Sigma m(1,3,4,5)

Canonical Product of Maxterms

Expressed in the form of a Boolean function wherein you take all the binary 0’s in a given function from the truth table and express these 0’s in the form of maxterms and get their product.
Example:
F=(X+Y+Z)(X+Yˉ+Z)(Xˉ+Yˉ+Z)(Xˉ+Yˉ+Zˉ)F = (X + Y + Z)(X + \bar{Y} + Z)(\bar{X} + \bar{Y} + Z)(\bar{X} + \bar{Y} + \bar{Z})
F=M0⋅M2⋅M6⋅M7=ΠM(0,2,6,7)F = M_0 \cdot M_2 \cdot M_6 \cdot M_7 = \Pi M(0,2,6,7)

◇Standard Forms

Standard Sum of Products (SOP)

A simplified Boolean expression containing AND terms (product terms) of one or more literals. The sum denotes the OR-ing of these terms.
Example: F=xy+xzF = xy + xz or F=x+yzF = x + yz

Standard Product of Sums (POS)

A simplified Boolean expression containing OR terms (sum terms) of one or more literals. The product denotes the AND-ing of these terms.
Example: F=(x+y)(x+z)F = (x+y)(x+z) or F=x(y+z)F = x(y+z)

Non-Standard Form

A Boolean expression that could not be further simplified into SOP or POS form.
Example: F=(ab+cd)(aˉbˉ+cˉdˉ)F = (ab+cd)(\bar{a}\bar{b} + \bar{c}\bar{d})

◇Boolean Algebra

Axioms

  1. 0⋅0=00 \cdot 0 = 0
  2. 0⋅1=00 \cdot 1 = 0
  3. 1⋅0=01 \cdot 0 = 0
  4. 1⋅1=11 \cdot 1 = 1
  5. 0+0=00 + 0 = 0
  6. 0+1=10 + 1 = 1
  7. 1+0=11 + 0 = 1
  8. 1+1=11 + 1 = 1
  9. 0ˉ=1\bar{0} = 1
  10. 1ˉ=0\bar{1} = 0

Duality Principle

Every algebraic expression is deducible from the postulates of Boolean Algebra. It remains valid if the operators and identity of its elements are interchanged:

  • ++ becomes ⋅\cdot
  • ⋅\cdot becomes ++
  • 00 becomes 11
  • 11 becomes 00

Theorems of One Variable

  1. Operations with 0 & 1: X⋅0=0X \cdot 0 = 0; X+1=1X + 1 = 1; X⋅1=XX \cdot 1 = X; X+0=XX + 0 = X
  2. Idempotent laws: X⋅X=XX \cdot X = X; X+X=XX + X = X
  3. Law of complementarity: X⋅Xˉ=0X \cdot \bar{X} = 0; X+Xˉ=1X + \bar{X} = 1
  4. Involution Law: X‾‾=X\overline{\overline{X}} = X

Theorems of Many Variables

  1. Commutative Law: X⋅Y=Y⋅XX \cdot Y = Y \cdot X; X+Y=Y+XX + Y = Y + X
  2. Distributive Law: X⋅Y+X⋅Z=X⋅(Y+Z)X \cdot Y + X \cdot Z = X \cdot (Y+Z); (X+Y)(X+Z)=X+Y⋅Z(X+Y)(X+Z) = X + Y \cdot Z
  3. Associative Law: (X⋅Y)⋅Z=X⋅(Y⋅Z)(X \cdot Y) \cdot Z = X \cdot (Y \cdot Z); (X+Y)+Z=X+(Y+Z)(X+Y)+Z = X+(Y+Z)
  4. Absorption Law: X⋅(X+Y)=XX \cdot (X+Y) = X; X+X⋅Y=XX + X \cdot Y = X
  5. Identity: X⋅Xˉ+Y=X⋅YX \cdot \bar{X} + Y = X \cdot Y; X+XˉY=X+YX + \bar{X}Y = X + Y
  6. De Morgan’s Law: X⋅Y‾=Xˉ+Yˉ\overline{X \cdot Y} = \bar{X} + \bar{Y}; X+Y‾=Xˉ⋅Yˉ\overline{X + Y} = \bar{X} \cdot \bar{Y}
  7. Consensus Theorem: XY+XˉZ+YZ=XY+XˉZXY + \bar{X}Z + YZ = XY + \bar{X}Z; (X+Y)(Xˉ+Z)(Y+Z)=(X+Y)(Xˉ+Z)(X+Y)(\bar{X}+Z)(Y+Z) = (X+Y)(\bar{X}+Z)
  8. Simplification Theorem: X+XY=XX + XY = X; X(X+Y)=XX(X+Y) = X
  9. Theorem of Multiplying Out & Factoring: (X+Y)(Xˉ+Z)=XZ+XˉY(X+Y)(\bar{X}+Z) = XZ + \bar{X}Y; XY+XˉZ=(X+Z)(Xˉ+Y)XY + \bar{X}Z = (X+Z)(\bar{X}+Y)

◇Complement of a Function

The complement of a function Fˉ\bar{F} can be obtained in two ways:

  1. Use De Morgan’s theorem.
  2. Get the dual of the function and then complement each literal.

◇Conversion of Forms

  • Sum of Minterm ↔\leftrightarrow Product of Maxterm: Take the missing indices.
  • Sum of Minterm →\rightarrow Sum of Product: Use simplification.
  • Sum of Product →\rightarrow Sum of Minterm: Complete all variables using truth tables.
  • Product of Maxterm →\rightarrow Product of Sum: Use simplification.
  • Product of Sum →\rightarrow Product of Maxterm: Complete all variables using truth tables.
  • Sum of Product ↔\leftrightarrow Product of Sum: Use distributive property, Theorem of Multiplying Out & Factoring.

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

What is a "literal" in the context of a Boolean expression?

Q2

A minterm is obtained from which type of operation on n variables?

Q3

In a maxterm, how is a variable with a value of binary 1 represented?

Q4

The canonical sum of minterms is obtained by taking which values from a truth table?

Q5

What is the Standard Sum of Product (SOP)?

Q6

According to the axioms of Boolean Algebra, what is the result of 1 + 1?

Q7

The duality principle states that an algebraic expression remains valid if we interchange:

Q8

Which theorem states that X + X•Y = X?

Q9

According to De Morgan's Law, what is the equivalent of the expression (X•Y)'?

Q10

What is one valid method to obtain the complement of a function?

Boolean Algebra | PROJECT ENGRAM