Boolean commutativity
If a boolean expression is commutative, it means that we can swap the order of the values and we get the same result.
We can write this for the operation
A \ominus B = B \ominus A
This applies for lots of operations, including:
- AND:
A \cdot B = B \cdot A - OR:
A + B = B + A - XOR:
A \oplus B = B \oplus A - NAND:
\overline{A \cdot B} = \overline{B \cdot A} - NOR:
\overline{A + B} = \overline{B + A}
Links:
flashcards
| Question | Answer |
|---|---|
| What does it mean for a Boolean expression to be commutative? | It means swapping the order of the values gives the same result, i.e. |
| How is Boolean commutativity written for an operation | |
| Which Boolean operations are commutative? | AND, OR, XOR, NAND, and NOR. |
| Write the commutative law for AND. | |
| Write the commutative law for OR. | |
| Write the commutative law for XOR. | |
| Write the commutative law for NAND. | |
| Write the commutative law for NOR. |