Boolean distributivity
Distributivity of OR
The distributive law of booleans ORing says whenever we have a boolean expression of the form
A \cdot (B + C) = A \cdot B + A \cdot C
This is because the AND operation requires both sides to be true for the result to be true, so for
Or, you can just think of it like how you ‘expand brackets’ in maths, it works basically the same way.
This also works the other way around, we can factor out the
A \cdot B + A \cdot C = A \cdot (B + C)
The important thing is that we recognise the
We put the
This also works for more than 2 terms, for example:
A \cdot (B + C + D) = A \cdot B + A \cdot C + A \cdot D
Distributivity of AND
We can also distribute a slightly different way, more similar to how we would expand and factorise double brackets.
A + (B \cdot C) = (A + B) \cdot (A + C)
flashcards
| Question | Answer |
|---|---|
| What is the distributive law for AND over OR? | |
| How do you factorize | |
| How do you expand | |
| What is the distributive law for OR over AND? |