Computer _Boolean Algebra - Advanced
Computer _Boolean Algebra - Advanced
www.pmt.education
Specification:
www.pmt.education
Boolean algebra
Just like algebra in Mathematics, Boolean algebra concerns representing values with
letters and simplifying expressions. Boolean algebra uses the Boolean values TRUEand
FALSEwhich can be represented as 1and 0respectively.
Notation
Expression Meaning
Order of precedence
Algebraic operations have an order of precedence, meaning that some operations must be
applied before others. You may have met BODMAS in Mathematics, this is the same idea.
Operator Precedence
Brackets Highest
.
NOT .
.
AND
.
OR Lowest
For example, the expression B OR NOT C AND Awould actually be carried out in the
order B OR ((NOT C) AND A) .
www.pmt.education
Boolean identities
There are a number of useful identities which can be used to simplify Boolean
expressions.
C C•C
1 1 × 1 = 1
0 0 × 0 = 0
F F+F
1 1 + 1 = 1
0 0 + 0 = 0
Any Boolean value with two lines above has had the
G = G NOT operation performed on it twice, meaning the
value has not been changed.
www.pmt.education
De Morgan’s laws
Named after British logician Augustus De Morgan, these two laws of Boolean algebra
come in incredibly useful when simplifying expressions.
For example, the Boolean expression A + B can have De Morgan’s law applied to it as
follows:
A+ B
A•B
A + B = A•B
De Morgan’s law can also be applied in reverse, by changing the sign and building the bar.
an be simplified as follows:
For example, the Boolean expression C + D c
C•D
C•D
C + D = C•D
www.pmt.education
Distributive rules
Just like expanding brackets in Mathematics, you can use distributive rules in Boolean
algebra as follows:
A • (B + C) = A • B + A • C
Examples
Example 1
Simplify the Boolean expression A + B • A
A + B•A
Use De Morgan’s laws. Break the bar and change the sign.
= A + B + A
Use A + A = 1
= B + 1
Use A + 1 = 1
=1
Example 2
Simplify the Boolean expression C • B + C • B
C•B + C•B
Use A + A = 1
B • ( 1)
Use A + 1 = A
B
www.pmt.education