1.2 Logical Operations - Boolean Algebra Flashcards
What are the 4 rules for OR in Boolean Algebra?
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 1
What are the 4 rules for AND in Boolean Algebra?
0 . 0 = 0
0 . 1 = 0
1 . 0 = 0
1 . 1 = 1
What are the 4 rules for XOR in Boolean Algebra?
0 ⊕ 0 = 0
0 ⊕ 1 = 1
1 ⊕ 0 = 1
1 ⊕ 1 = 0
What is the order in which Boolean takes place(Like BIDMAS)
Brackets
NOT
XOR
AND
OR
What is the Commutative Law?
Order of (certain) operands doesn’t matter as they are the same any ways. 3 x 5 = 5 x 3
3x5=15
5x3=15
A.B = B.A
A+B = B+A
A⊕B = B⊕A
What does the Associative Law state?
If all operators are the same then it doesn’t matter what order they are done.
(3 x 5) x 4 = 3 x (5 x 4).
(3 x 5) x 4 = 60
3 x (5 x 4) = 60
A.(B.C) = (A.B).C
A +(B+C) = (A+B) + C
A ⊕ (B⊕C) = (A⊕B) ⊕C