Professional Documents
Culture Documents
if…then…. → Implication/conditional
p ﹁ p
T F
F T
3. “2 is a prime number.”
“ 2 is not a prime number”.
p q p ⊕ q
T T F
T F T
F T T
F F F
Example: ¬ p ∧ q means (¬ p) ∧ q
p ∧ q → r means (p ∧ q) → r
F T T T F
T T F F T
T F T F T
T F F F T
Truth table:
OR
AND
p q / + p q / .
0 0 0 NOT
0 0 0
0 1 1 p / ‘
0 1 0
1 0 1 0 1
1 0 0
1 1 1 1 0
1 1 1
Boolean Algebra
Example 14
2. A + BC + D’
AB C D
AQ010-3-1-Mathematical Concepts for Computing Logic & Boolean Algebra
Activity 6
What is the final output of the given logical circuit?
(A + B) (A + B’) (AC’)’
= (A + B) (A + B’) (A’ + C) Involution & DeMorgan’s Law
= A (A’ + C) Idempotent
= AC Redundancy
http://sandbox.mc.edu/~bennet/cs110/boolalg/simple.html
x y z y’ xy’ xy’+z
0 0 0 1 0 0 The NOT operator
has highest priority,
0 0 1 1 0 1 followed by AND
0 1 0 0 0 0 and then OR.
0 1 1 0 0 1
1 0 0 1 1 1
1 0 1 1 1 1
1 1 0 0 0 0
1 1 1 0 0 1
Activity 8
SOP POS
in the output and the output and the
0 0 0 0 the corresponding corresponding
0 0 1 0 binary value are binary value are
011, 100, 110, 000, 001, 010, and
0 1 0 0
and 111. 101.
0 1 1 1 011 A BC 000 A B C
100 AB C 001 A B C
1 0 0 1
110 ABC 010 A B C
1 0 1 0 101 A B C
111 ABC
1 1 0 1
1 1 1 1
A B C A+B C’ (A+B)C’’
Three 1s in the
1 1 1 1 0 0 output. (110, 100,
1 1 0 1 1 1 and 010).
1 0 1 1 0 0
1 0 0 1 1 1
0 1 1 1 0 0
0 1 0 1 1 1 Five 0s in the
0 0 1 0 0 0 output (111, 101,
0 0 0 0 1 0 011, 001, and 000).
2 variable
3 variable 4 variable
Two-variable map
Ex: A’B’ + A’B + AB
Plotting Functions on K-Maps
Two-variable map
Ex: A’B’ + A’B + AB
A A’
B 1 1
0 1
B’
Plotting Functions on K-Maps
On a two-variable map, look
for a pair of 1's that are
either in the same row or
• Two-variable map column. If we find such a
pair, we record the common
Ex: A’B’ + A’B + AB variable.
A A’
B 1 1
0 1
B’
= B + A’
Rule: 1
• A group of four will have one common variable. A pair
must have two common variables.
• In the examples below, the common variable for the left
map is C’ and the common variable for the right group is
B.
Rules in detail
http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/karrules.html
• Three-variable map
Ex: X’Y’Z’ + X’YZ + XYZ’ + XY’Z + XYZ + X’YZ’
Z
Z’
Plotting Functions on K-Maps
• Three-variable map
Ex: X’Y’Z’ + X’YZ + XYZ’ + XY’Z + XYZ + X’YZ’
Z 1 1 1
Z’ 1 1 1
Plotting Functions on K-Maps
• Three-variable map
Ex: X’Y’Z’ + X’YZ + XYZ’ + XY’Z + XYZ + X’YZ’
Z 1 1 1
Z’ 1 1 1
= Y + XZ + X’Z’
Quick Review Question
Q&A
Proof Techniques