SlideShare ist ein Scribd-Unternehmen logo
1 von 107
Downloaden Sie, um offline zu lesen
Boolean
algebra
www.tudorgirba.com
computer
information information
computation
Alan Turing, 1937
George Boole
1815 – 1864
George Boole
1815 – 1864
Claude Shannon
1916 – 2001
+
+
a = 0
+
y = 0
a = 0
++
y = 0
a = 0
+
a = 1
+
y = 0
a = 0
+
y = 1
a = 1
+
y = 0
a = 0
+
b = 0
a = 0
+
b = 0
a = 0
y = 0
∧ ba = y
00 0
+
b = 1
a = 0
∧ ba = y
00 0
+
b = 1
a = 0
y = 0
∧ ba = y
00 0
10 0
+
b = 0
a = 1
∧ ba = y
00 0
10 0
+
b = 0
a = 1
y = 0
∧ ba = y
00 0
10 0
01 0
+
b = 1
a = 1
∧ ba = y
00 0
10 0
01 0
+
b = 1
a = 1
y = 1
∧ ba = y
00 0
10 0
01 0
11 1
+
b = x
a = 0
∧ ba = y
00 0
10 0
01 0
11 1
+
b = x
a = 0
y = 0
∧ ba = y
00 0
10 0
01 0
11 1
x0 0
+
b = x
a = 1
∧ ba = y
00 0
10 0
01 0
11 1
x0 0
+
b = x
a = 1
y = x
∧ ba = y
00 0
10 0
01 0
11 1
x0 0
x1 x
+
b = x
a = x
∧ ba = y
00 0
10 0
01 0
11 1
x0 0
x1 x
+
b = x
a = x
y = x
∧ ba = y
00 0
10 0
01 0
11 1
x0 0
x1 x
xx x
+
a = 0 b = 0
+
a = 0 b = 0
y = 0
∨ ba = y
00 0
+
a = 0 b = 1
∨ ba = y
00 0
+
a = 0 b = 1
y = 1
∨ ba = y
00 0
10 1
+
a = 1 b = 0
∨ ba = y
00 0
10 1
+
a = 1 b = 0
y = 1
∨ ba = y
00 0
10 1
01 1
+
a = 1 b = 1
∨ ba = y
00 0
10 1
01 1
+
a = 1 b = 1
y = 1
∨ ba = y
00 0
10 1
01 1
11 1
+
a = 0 b = x
∨ ba = y
00 0
10 1
01 1
11 1
+
a = 0 b = x
y = x
∨ ba = y
00 0
10 1
01 1
11 1
x0 x
+
a = 1 b = x
∨ ba = y
00 0
10 1
01 1
11 1
x0 x
+
a = 1 b = x
y = 1
∨ ba = y
00 0
10 1
01 1
11 1
x0 x
x1 1
+
a = x b = x
∨ ba = y
00 0
10 1
01 1
11 1
x0 x
x1 1
+
a = x b = x
y = x
∨ ba = y
00 0
10 1
01 1
11 1
x0 x
x1 1
xx x
+
∨ ba = y
00 0
10 1
01 1
11 1
∧ ba = y
00 0
10 0
01 0
11 1
Conjunction (AND) Disjunction (OR)
∨ ba = y
00 0
10 1
01 1
11 1
∧ ba = y
00 0
10 0
01 0
11 1
?
Conjunction (AND) Disjunction (OR)
a = 0
a = 0
y = 1
a =¬ y
0 1
a = 1
a =¬ y
0 1
a = 1
y = 0
a =¬ y
0 1
1 0
∨ ba = y
00 0
10 1
01 1
11 1
∧ ba = y
00 0
10 0
01 0
11 1
a =¬ y
0 1
1 0
Conjunction (AND) Disjunction (OR) Negation (NOT)
¬ a
a ∧ b
a ∨ b
- a
a * b
a + b
¬ a
a ∧ b
a ∨ b
- a
a * b
a + b
¬ a
a ∧ b
a ∨ b
! a
a & b
a | b
- a
a * b
a + b
¬ a
a ∧ b
a ∨ b
! a
a & b
a | b
NOT
OR
AND
- a
a * b
a + b
¬ a
a ∧ b
a ∨ b
! a
a & b
a | b
NOT
OR
AND
a ∧ 1 = a
a ∨ 0 = a
Neutral elements
a ∧ 1 = a
a ∨ 0 = a
Neutral elements
a ∧ 0 = 0
a ∨ 1 = 1
Zero elements
a ∧ 1 = a
a ∨ 0 = a
Neutral elements
a ∧ 0 = 0
a ∨ 1 = 1
Zero elements
a ∧ a = a
a ∨ a = a
Idempotence
a ∧ 1 = a
a ∨ 0 = a
Neutral elements
a ∧ 0 = 0
a ∨ 1 = 1
Zero elements
a ∧ a = a
a ∨ a = a
Idempotence
a ∧ ¬ a = 0
a ∨ ¬ a = 1
Negation
a ∧ 1 = a
a ∨ 0 = a
Neutral elements
a ∧ 0 = 0
a ∨ 1 = 1
Zero elements
a ∧ a = a
a ∨ a = a
Idempotence
a ∧ ¬ a = 0
a ∨ ¬ a = 1
Negation
a ∨ b = b ∨ a
a ∧ b = b ∧ a
Commutativity
a ∧ 1 = a
a ∨ 0 = a
Neutral elements
a ∧ 0 = 0
a ∨ 1 = 1
Zero elements
a ∧ a = a
a ∨ a = a
Idempotence
a ∧ ¬ a = 0
a ∨ ¬ a = 1
Negation
a ∨ b = b ∨ a
a ∧ b = b ∧ a
Commutativity
a ∧ (b ∧ c) = (a ∧ b) ∧ c
a ∨ (b ∨ c) = (a ∨ b) ∨ c
Associativity
a ∧ 1 = a
a ∨ 0 = a
Neutral elements
a ∧ 0 = 0
a ∨ 1 = 1
Zero elements
a ∧ a = a
a ∨ a = a
Idempotence
a ∧ ¬ a = 0
a ∨ ¬ a = 1
Negation
a ∨ b = b ∨ a
a ∧ b = b ∧ a
Commutativity
a ∧ (b ∧ c) = (a ∧ b) ∧ c
a ∨ (b ∨ c) = (a ∨ b) ∨ c
Associativity
a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c)
a ∨ (b ∧ c) = (a ∨ b) ∧ (a ∨ c)
Distributivity
De Morgan (1806 – 1871)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
DeMorgan’s laws
NAND
NOR
De Morgan (1806 – 1871)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b)
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
0
DeMorgan’s laws
NAND
NOR
De Morgan (1806 – 1871)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b)
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
0
DeMorgan’s laws
NAND
NOR
De Morgan (1806 – 1871)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b)
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
0
DeMorgan’s laws
NAND
NOR
De Morgan (1806 – 1871)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b)
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
0
DeMorgan’s laws
NAND
NOR
De Morgan (1806 – 1871)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b)
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
0
DeMorgan’s laws
NAND
NOR
De Morgan (1806 – 1871)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b)
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
0
DeMorgan’s laws
NAND
NOR
De Morgan (1806 – 1871)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b)
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
0
1
1
0
0
1
0
1
0
1
0
0
0
DeMorgan’s laws
NAND
NOR
a ∧ 1 = a a ∨ b = b ∨ a
a ∨ 0 = a
a ∧ 0 = 0
a ∨ 1 = 1
a ∧ a = a
a ∨ a = a
a ∧ ¬ a = 0
a ∨ ¬ a = 1
Neutral elements
Zero elements
Idempotence
Negation
a ∧ (b ∧ c) = (a ∧ b) ∧ c
a ∧ b = b ∧ a
a ∨ (b ∨ c) = (a ∨ b) ∨ c
a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c)
a ∨ (b ∧ c) = (a ∨ b) ∧ (a ∨ c)
¬ (a ∧ b) = (¬ a) ∨ (¬ b)
¬ (a ∨ b) = (¬ a) ∧ (¬ b)
Commutativity
Associativity
Distributivity
DeMorgan’s
≠ ba = y
00 0
10 1
01 1
11 0
Exclusive OR (XOR)
≠ ba = y
00 0
10 1
01 1
11 0
Exclusive OR (XOR)
ba = y
00 1
10 1
01 0
11 1
Implication
≠ ba = y
00 0
10 1
01 1
11 0
Exclusive OR (XOR)
ba = y
00 1
10 1
01 0
11 1
ba = y
00 1
10 0
01 0
11 1
Implication Equivalence
≠ ba = y
00 0
10 1
01 1
11 0
Exclusive OR (XOR)
ba = y
00 1
10 1
01 0
11 1
ba = y
00 1
10 0
01 0
11 1
Implication Equivalence
∨ ba = y
00 0
10 1
01 1
11 1
∧ ba = y
00 0
10 0
01 0
11 1
Conjunction (AND) Disjunction (OR)
a =¬ y
0 1
1 0
Negation (NOT)
≠ ba = y
00 0
10 1
01 1
11 0
Exclusive OR (XOR)
ba = y
00 1
10 1
01 0
11 1
ba = y
00 1
10 0
01 0
11 1
Implication Equivalence
∨ ba = y
00 0
10 1
01 1
11 1
∧ ba = y
00 0
10 0
01 0
11 1
Conjunction (AND) Disjunction (OR)
a =¬ y
0 1
1 0
Negation (NOT)
4 3 3
3 2 1
Tautology
f = 1 (a ∧ (a b)) b
Contradiction
f = 0 a ∧ (¬ a)
Satisfiable
f = 1 sometimes a b
How many basic boolean functions
with 2 parameters are possible?
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
0000 y0 = 0
0001 y1 = a ∧ b
0010 y2 = a ∧ ¬ b
0011 y3 = a
0100 y4 = ¬ a ∧ b
0101 y5 = b
0110 y6 = a ≠ b
0111 y7 = a ∨ b
How many basic boolean functions
with 2 parameters are possible?
0011
0101
a
b
1111 y15 = 1
1110 y14 = ¬ a ∨ ¬ b
1101 y13 = ¬ a ∨ b
1100 y12 = ¬ a
1011 y11 = a ∨ ¬ b
1010 y10 = ¬ b
1001 y9 = a b
1000 y8 = ¬ a ∧ ¬ b
How to create a half adder?
How to create a half adder?
+ ba = co
00 0
10 0
01 0
11 1
q
0
1
1
0
How to create a half adder?
a
b
q
co
+ ba = co
00 0
10 0
01 0
11 1
q
0
1
1
0
AND
XOR
How to create a full adder?
How to create a full adder?
+ ba = co
00 0
10 0
01 0
11 1
q
0
1
1
0
ci +
0
0
0
0
1
1
1
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
How to create a full adder?
+ ba = co
00 0
10 0
01 0
11 1
q
0
1
1
0
ci +
0
0
0
0
1
1
1
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
Full
adder
a b
coci
q
How to create a full adder?
Full
adder
a b
coci
q
How to create a full adder?
Full
adder
a b
coci
q
Full
adder
a b
coci
q
Full
adder
a b
coci
q
Tudor Gîrba
www.tudorgirba.com
creativecommons.org/licenses/by/3.0/

Weitere ähnliche Inhalte

Mehr von Tudor Girba

Beyond software evolution: Software environmentalism
Beyond software evolution: Software environmentalismBeyond software evolution: Software environmentalism
Beyond software evolution: Software environmentalismTudor Girba
 
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...Tudor Girba
 
Don't demo facts. Demo stories! (handouts)
Don't demo facts. Demo stories! (handouts)Don't demo facts. Demo stories! (handouts)
Don't demo facts. Demo stories! (handouts)Tudor Girba
 
Don't demo facts. Demo stories!
Don't demo facts. Demo stories!Don't demo facts. Demo stories!
Don't demo facts. Demo stories!Tudor Girba
 
Humane assessment on cards
Humane assessment on cardsHumane assessment on cards
Humane assessment on cardsTudor Girba
 
Underneath Scrum: Reflective Thinking
Underneath Scrum: Reflective ThinkingUnderneath Scrum: Reflective Thinking
Underneath Scrum: Reflective ThinkingTudor Girba
 
1800+ TED talks later
1800+ TED talks later1800+ TED talks later
1800+ TED talks laterTudor Girba
 
Software assessment by example (lecture at the University of Bern)
Software assessment by example (lecture at the University of Bern)Software assessment by example (lecture at the University of Bern)
Software assessment by example (lecture at the University of Bern)Tudor Girba
 
Humane assessment: Taming the elephant from the development room
Humane assessment: Taming the elephant from the development roomHumane assessment: Taming the elephant from the development room
Humane assessment: Taming the elephant from the development roomTudor Girba
 
Moose: how to solve real problems without reading code
Moose: how to solve real problems without reading codeMoose: how to solve real problems without reading code
Moose: how to solve real problems without reading codeTudor Girba
 
Software Environmentalism (ECOOP 2014 Keynote)
Software Environmentalism (ECOOP 2014 Keynote)Software Environmentalism (ECOOP 2014 Keynote)
Software Environmentalism (ECOOP 2014 Keynote)Tudor Girba
 
The emergent nature of software systems
The emergent nature of software systemsThe emergent nature of software systems
The emergent nature of software systemsTudor Girba
 
Presenting is storytelling at Uni Zurich - slides (2014-03-05)
Presenting is storytelling at Uni Zurich - slides (2014-03-05)Presenting is storytelling at Uni Zurich - slides (2014-03-05)
Presenting is storytelling at Uni Zurich - slides (2014-03-05)Tudor Girba
 
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)Tudor Girba
 
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)Tudor Girba
 
Demo-driven innovation teaser
Demo-driven innovation teaserDemo-driven innovation teaser
Demo-driven innovation teaserTudor Girba
 
Software assessment essentials (lecture at the University of Bern 2013)
Software assessment essentials (lecture at the University of Bern 2013)Software assessment essentials (lecture at the University of Bern 2013)
Software assessment essentials (lecture at the University of Bern 2013)Tudor Girba
 
Demo-driven innovation (University of Zurich, June 2013)
Demo-driven innovation (University of Zurich, June 2013)Demo-driven innovation (University of Zurich, June 2013)
Demo-driven innovation (University of Zurich, June 2013)Tudor Girba
 
Humane assessment with Moose at GOTO Aarhus 2011
Humane assessment with Moose at GOTO Aarhus 2011Humane assessment with Moose at GOTO Aarhus 2011
Humane assessment with Moose at GOTO Aarhus 2011Tudor Girba
 

Mehr von Tudor Girba (20)

Beyond software evolution: Software environmentalism
Beyond software evolution: Software environmentalismBeyond software evolution: Software environmentalism
Beyond software evolution: Software environmentalism
 
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
 
GT Spotter
GT SpotterGT Spotter
GT Spotter
 
Don't demo facts. Demo stories! (handouts)
Don't demo facts. Demo stories! (handouts)Don't demo facts. Demo stories! (handouts)
Don't demo facts. Demo stories! (handouts)
 
Don't demo facts. Demo stories!
Don't demo facts. Demo stories!Don't demo facts. Demo stories!
Don't demo facts. Demo stories!
 
Humane assessment on cards
Humane assessment on cardsHumane assessment on cards
Humane assessment on cards
 
Underneath Scrum: Reflective Thinking
Underneath Scrum: Reflective ThinkingUnderneath Scrum: Reflective Thinking
Underneath Scrum: Reflective Thinking
 
1800+ TED talks later
1800+ TED talks later1800+ TED talks later
1800+ TED talks later
 
Software assessment by example (lecture at the University of Bern)
Software assessment by example (lecture at the University of Bern)Software assessment by example (lecture at the University of Bern)
Software assessment by example (lecture at the University of Bern)
 
Humane assessment: Taming the elephant from the development room
Humane assessment: Taming the elephant from the development roomHumane assessment: Taming the elephant from the development room
Humane assessment: Taming the elephant from the development room
 
Moose: how to solve real problems without reading code
Moose: how to solve real problems without reading codeMoose: how to solve real problems without reading code
Moose: how to solve real problems without reading code
 
Software Environmentalism (ECOOP 2014 Keynote)
Software Environmentalism (ECOOP 2014 Keynote)Software Environmentalism (ECOOP 2014 Keynote)
Software Environmentalism (ECOOP 2014 Keynote)
 
The emergent nature of software systems
The emergent nature of software systemsThe emergent nature of software systems
The emergent nature of software systems
 
Presenting is storytelling at Uni Zurich - slides (2014-03-05)
Presenting is storytelling at Uni Zurich - slides (2014-03-05)Presenting is storytelling at Uni Zurich - slides (2014-03-05)
Presenting is storytelling at Uni Zurich - slides (2014-03-05)
 
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
 
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
 
Demo-driven innovation teaser
Demo-driven innovation teaserDemo-driven innovation teaser
Demo-driven innovation teaser
 
Software assessment essentials (lecture at the University of Bern 2013)
Software assessment essentials (lecture at the University of Bern 2013)Software assessment essentials (lecture at the University of Bern 2013)
Software assessment essentials (lecture at the University of Bern 2013)
 
Demo-driven innovation (University of Zurich, June 2013)
Demo-driven innovation (University of Zurich, June 2013)Demo-driven innovation (University of Zurich, June 2013)
Demo-driven innovation (University of Zurich, June 2013)
 
Humane assessment with Moose at GOTO Aarhus 2011
Humane assessment with Moose at GOTO Aarhus 2011Humane assessment with Moose at GOTO Aarhus 2011
Humane assessment with Moose at GOTO Aarhus 2011
 

Kürzlich hochgeladen

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 

Kürzlich hochgeladen (20)

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 

02 - Boolean algebra

  • 5. George Boole 1815 – 1864 Claude Shannon 1916 – 2001
  • 6.
  • 7. +
  • 9. + y = 0 a = 0
  • 10. ++ y = 0 a = 0
  • 11. + a = 1 + y = 0 a = 0
  • 12. + y = 1 a = 1 + y = 0 a = 0
  • 13. +
  • 14. b = 0 a = 0 +
  • 15. b = 0 a = 0 y = 0 ∧ ba = y 00 0 +
  • 16. b = 1 a = 0 ∧ ba = y 00 0 +
  • 17. b = 1 a = 0 y = 0 ∧ ba = y 00 0 10 0 +
  • 18. b = 0 a = 1 ∧ ba = y 00 0 10 0 +
  • 19. b = 0 a = 1 y = 0 ∧ ba = y 00 0 10 0 01 0 +
  • 20. b = 1 a = 1 ∧ ba = y 00 0 10 0 01 0 +
  • 21. b = 1 a = 1 y = 1 ∧ ba = y 00 0 10 0 01 0 11 1 +
  • 22. b = x a = 0 ∧ ba = y 00 0 10 0 01 0 11 1 +
  • 23. b = x a = 0 y = 0 ∧ ba = y 00 0 10 0 01 0 11 1 x0 0 +
  • 24. b = x a = 1 ∧ ba = y 00 0 10 0 01 0 11 1 x0 0 +
  • 25. b = x a = 1 y = x ∧ ba = y 00 0 10 0 01 0 11 1 x0 0 x1 x +
  • 26. b = x a = x ∧ ba = y 00 0 10 0 01 0 11 1 x0 0 x1 x +
  • 27. b = x a = x y = x ∧ ba = y 00 0 10 0 01 0 11 1 x0 0 x1 x xx x +
  • 28. a = 0 b = 0 +
  • 29. a = 0 b = 0 y = 0 ∨ ba = y 00 0 +
  • 30. a = 0 b = 1 ∨ ba = y 00 0 +
  • 31. a = 0 b = 1 y = 1 ∨ ba = y 00 0 10 1 +
  • 32. a = 1 b = 0 ∨ ba = y 00 0 10 1 +
  • 33. a = 1 b = 0 y = 1 ∨ ba = y 00 0 10 1 01 1 +
  • 34. a = 1 b = 1 ∨ ba = y 00 0 10 1 01 1 +
  • 35. a = 1 b = 1 y = 1 ∨ ba = y 00 0 10 1 01 1 11 1 +
  • 36. a = 0 b = x ∨ ba = y 00 0 10 1 01 1 11 1 +
  • 37. a = 0 b = x y = x ∨ ba = y 00 0 10 1 01 1 11 1 x0 x +
  • 38. a = 1 b = x ∨ ba = y 00 0 10 1 01 1 11 1 x0 x +
  • 39. a = 1 b = x y = 1 ∨ ba = y 00 0 10 1 01 1 11 1 x0 x x1 1 +
  • 40. a = x b = x ∨ ba = y 00 0 10 1 01 1 11 1 x0 x x1 1 +
  • 41. a = x b = x y = x ∨ ba = y 00 0 10 1 01 1 11 1 x0 x x1 1 xx x +
  • 42. ∨ ba = y 00 0 10 1 01 1 11 1 ∧ ba = y 00 0 10 0 01 0 11 1 Conjunction (AND) Disjunction (OR)
  • 43. ∨ ba = y 00 0 10 1 01 1 11 1 ∧ ba = y 00 0 10 0 01 0 11 1 ? Conjunction (AND) Disjunction (OR)
  • 44. a = 0
  • 45. a = 0 y = 1 a =¬ y 0 1
  • 46. a = 1 a =¬ y 0 1
  • 47. a = 1 y = 0 a =¬ y 0 1 1 0
  • 48. ∨ ba = y 00 0 10 1 01 1 11 1 ∧ ba = y 00 0 10 0 01 0 11 1 a =¬ y 0 1 1 0 Conjunction (AND) Disjunction (OR) Negation (NOT)
  • 49. ¬ a a ∧ b a ∨ b
  • 50. - a a * b a + b ¬ a a ∧ b a ∨ b
  • 51. - a a * b a + b ¬ a a ∧ b a ∨ b ! a a & b a | b
  • 52. - a a * b a + b ¬ a a ∧ b a ∨ b ! a a & b a | b NOT OR AND
  • 53. - a a * b a + b ¬ a a ∧ b a ∨ b ! a a & b a | b NOT OR AND
  • 54.
  • 55. a ∧ 1 = a a ∨ 0 = a Neutral elements
  • 56. a ∧ 1 = a a ∨ 0 = a Neutral elements a ∧ 0 = 0 a ∨ 1 = 1 Zero elements
  • 57. a ∧ 1 = a a ∨ 0 = a Neutral elements a ∧ 0 = 0 a ∨ 1 = 1 Zero elements a ∧ a = a a ∨ a = a Idempotence
  • 58. a ∧ 1 = a a ∨ 0 = a Neutral elements a ∧ 0 = 0 a ∨ 1 = 1 Zero elements a ∧ a = a a ∨ a = a Idempotence a ∧ ¬ a = 0 a ∨ ¬ a = 1 Negation
  • 59. a ∧ 1 = a a ∨ 0 = a Neutral elements a ∧ 0 = 0 a ∨ 1 = 1 Zero elements a ∧ a = a a ∨ a = a Idempotence a ∧ ¬ a = 0 a ∨ ¬ a = 1 Negation a ∨ b = b ∨ a a ∧ b = b ∧ a Commutativity
  • 60. a ∧ 1 = a a ∨ 0 = a Neutral elements a ∧ 0 = 0 a ∨ 1 = 1 Zero elements a ∧ a = a a ∨ a = a Idempotence a ∧ ¬ a = 0 a ∨ ¬ a = 1 Negation a ∨ b = b ∨ a a ∧ b = b ∧ a Commutativity a ∧ (b ∧ c) = (a ∧ b) ∧ c a ∨ (b ∨ c) = (a ∨ b) ∨ c Associativity
  • 61. a ∧ 1 = a a ∨ 0 = a Neutral elements a ∧ 0 = 0 a ∨ 1 = 1 Zero elements a ∧ a = a a ∨ a = a Idempotence a ∧ ¬ a = 0 a ∨ ¬ a = 1 Negation a ∨ b = b ∨ a a ∧ b = b ∧ a Commutativity a ∧ (b ∧ c) = (a ∧ b) ∧ c a ∨ (b ∨ c) = (a ∨ b) ∨ c Associativity a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c) a ∨ (b ∧ c) = (a ∨ b) ∧ (a ∨ c) Distributivity
  • 62. De Morgan (1806 – 1871) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) DeMorgan’s laws NAND NOR
  • 63. De Morgan (1806 – 1871) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b) 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 DeMorgan’s laws NAND NOR
  • 64. De Morgan (1806 – 1871) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b) 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 DeMorgan’s laws NAND NOR
  • 65. De Morgan (1806 – 1871) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b) 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 DeMorgan’s laws NAND NOR
  • 66. De Morgan (1806 – 1871) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b) 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 DeMorgan’s laws NAND NOR
  • 67. De Morgan (1806 – 1871) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b) 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 DeMorgan’s laws NAND NOR
  • 68. De Morgan (1806 – 1871) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b) 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 DeMorgan’s laws NAND NOR
  • 69. De Morgan (1806 – 1871) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) a b a ∨ b ¬ (a ∨ b) ¬ a ¬ b (¬ a) ∧ (¬ b) 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 DeMorgan’s laws NAND NOR
  • 70. a ∧ 1 = a a ∨ b = b ∨ a a ∨ 0 = a a ∧ 0 = 0 a ∨ 1 = 1 a ∧ a = a a ∨ a = a a ∧ ¬ a = 0 a ∨ ¬ a = 1 Neutral elements Zero elements Idempotence Negation a ∧ (b ∧ c) = (a ∧ b) ∧ c a ∧ b = b ∧ a a ∨ (b ∨ c) = (a ∨ b) ∨ c a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c) a ∨ (b ∧ c) = (a ∨ b) ∧ (a ∨ c) ¬ (a ∧ b) = (¬ a) ∨ (¬ b) ¬ (a ∨ b) = (¬ a) ∧ (¬ b) Commutativity Associativity Distributivity DeMorgan’s
  • 71.
  • 72. ≠ ba = y 00 0 10 1 01 1 11 0 Exclusive OR (XOR)
  • 73. ≠ ba = y 00 0 10 1 01 1 11 0 Exclusive OR (XOR) ba = y 00 1 10 1 01 0 11 1 Implication
  • 74. ≠ ba = y 00 0 10 1 01 1 11 0 Exclusive OR (XOR) ba = y 00 1 10 1 01 0 11 1 ba = y 00 1 10 0 01 0 11 1 Implication Equivalence
  • 75. ≠ ba = y 00 0 10 1 01 1 11 0 Exclusive OR (XOR) ba = y 00 1 10 1 01 0 11 1 ba = y 00 1 10 0 01 0 11 1 Implication Equivalence ∨ ba = y 00 0 10 1 01 1 11 1 ∧ ba = y 00 0 10 0 01 0 11 1 Conjunction (AND) Disjunction (OR) a =¬ y 0 1 1 0 Negation (NOT)
  • 76. ≠ ba = y 00 0 10 1 01 1 11 0 Exclusive OR (XOR) ba = y 00 1 10 1 01 0 11 1 ba = y 00 1 10 0 01 0 11 1 Implication Equivalence ∨ ba = y 00 0 10 1 01 1 11 1 ∧ ba = y 00 0 10 0 01 0 11 1 Conjunction (AND) Disjunction (OR) a =¬ y 0 1 1 0 Negation (NOT) 4 3 3 3 2 1
  • 77. Tautology f = 1 (a ∧ (a b)) b Contradiction f = 0 a ∧ (¬ a) Satisfiable f = 1 sometimes a b
  • 78. How many basic boolean functions with 2 parameters are possible?
  • 79. How many basic boolean functions with 2 parameters are possible?
  • 80. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 81. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 82. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 83. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 84. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 85. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 86. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 87. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 88. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 89. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 90. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 91. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 92. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 93. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 94. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 95. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 96. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 97. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible?
  • 98. 0011 0101 a b 0000 y0 = 0 0001 y1 = a ∧ b 0010 y2 = a ∧ ¬ b 0011 y3 = a 0100 y4 = ¬ a ∧ b 0101 y5 = b 0110 y6 = a ≠ b 0111 y7 = a ∨ b How many basic boolean functions with 2 parameters are possible? 0011 0101 a b 1111 y15 = 1 1110 y14 = ¬ a ∨ ¬ b 1101 y13 = ¬ a ∨ b 1100 y12 = ¬ a 1011 y11 = a ∨ ¬ b 1010 y10 = ¬ b 1001 y9 = a b 1000 y8 = ¬ a ∧ ¬ b
  • 99. How to create a half adder?
  • 100. How to create a half adder? + ba = co 00 0 10 0 01 0 11 1 q 0 1 1 0
  • 101. How to create a half adder? a b q co + ba = co 00 0 10 0 01 0 11 1 q 0 1 1 0 AND XOR
  • 102. How to create a full adder?
  • 103. How to create a full adder? + ba = co 00 0 10 0 01 0 11 1 q 0 1 1 0 ci + 0 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1
  • 104. How to create a full adder? + ba = co 00 0 10 0 01 0 11 1 q 0 1 1 0 ci + 0 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 Full adder a b coci q
  • 105. How to create a full adder? Full adder a b coci q
  • 106. How to create a full adder? Full adder a b coci q Full adder a b coci q Full adder a b coci q