SlideShare uma empresa Scribd logo
1 de 107
Baixar para ler offline
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/

Mais conteúdo relacionado

Semelhante a 02 - Boolean algebra

Artificial Neural Networks (ANNs) - XOR - Step-By-Step
Artificial Neural Networks (ANNs) - XOR - Step-By-StepArtificial Neural Networks (ANNs) - XOR - Step-By-Step
Artificial Neural Networks (ANNs) - XOR - Step-By-Step
Ahmed Gad
 

Semelhante a 02 - Boolean algebra (6)

Gerbang Logika Dasar
Gerbang Logika DasarGerbang Logika Dasar
Gerbang Logika Dasar
 
Arithmatic &Logic Unit
Arithmatic &Logic UnitArithmatic &Logic Unit
Arithmatic &Logic Unit
 
ゲーム理論BASIC 第18回 -完全ベイジアン均衡-
ゲーム理論BASIC 第18回 -完全ベイジアン均衡-ゲーム理論BASIC 第18回 -完全ベイジアン均衡-
ゲーム理論BASIC 第18回 -完全ベイジアン均衡-
 
Transformers ASR.pdf
Transformers ASR.pdfTransformers ASR.pdf
Transformers ASR.pdf
 
Artificial Neural Networks (ANNs) - XOR - Step-By-Step
Artificial Neural Networks (ANNs) - XOR - Step-By-StepArtificial Neural Networks (ANNs) - XOR - Step-By-Step
Artificial Neural Networks (ANNs) - XOR - Step-By-Step
 
Geurdes Monte Växjö
Geurdes Monte VäxjöGeurdes Monte Växjö
Geurdes Monte Växjö
 

Mais de Tudor Girba

Mais de 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
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

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