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:
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: 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 .
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 .
◇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:
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:
◇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: or
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: or
Non-Standard Form
A Boolean expression that could not be further simplified into SOP or POS form.
Example:
◇Boolean Algebra
Axioms
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
- becomes
- becomes
- becomes
Theorems of One Variable
- Operations with 0 & 1: ; ; ;
- Idempotent laws: ;
- Law of complementarity: ;
- Involution Law:
Theorems of Many Variables
- Commutative Law: ;
- Distributive Law: ;
- Associative Law: ;
- Absorption Law: ;
- Identity: ;
- De Morgan’s Law: ;
- Consensus Theorem: ;
- Simplification Theorem: ;
- Theorem of Multiplying Out & Factoring: ;
◇Complement of a Function
The complement of a function can be obtained in two ways:
- Use De Morgan’s theorem.
- Get the dual of the function and then complement each literal.
◇Conversion of Forms
- Sum of Minterm Product of Maxterm: Take the missing indices.
- Sum of Minterm Sum of Product: Use simplification.
- Sum of Product Sum of Minterm: Complete all variables using truth tables.
- Product of Maxterm Product of Sum: Use simplification.
- Product of Sum Product of Maxterm: Complete all variables using truth tables.
- Sum of Product Product of Sum: Use distributive property, Theorem of Multiplying Out & Factoring.
◇References & Navigation
- Previous Topic: ◇2x vs 10y Ambiguity-1
- Next Topic: ◇Logic Gates
- Related Notes: ◇Logic Gates, ◇Data Representation - Characters and Boolean
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
What is a "literal" in the context of a Boolean expression?
A minterm is obtained from which type of operation on n variables?
In a maxterm, how is a variable with a value of binary 1 represented?
The canonical sum of minterms is obtained by taking which values from a truth table?
What is the Standard Sum of Product (SOP)?
According to the axioms of Boolean Algebra, what is the result of 1 + 1?
The duality principle states that an algebraic expression remains valid if we interchange:
Which theorem states that X + X•Y = X?
According to De Morgan's Law, what is the equivalent of the expression (X•Y)'?
What is one valid method to obtain the complement of a function?