When an expression mixes operators, you need to know which one binds tightest. Boolean algebra uses the same idea as arithmetic, where × comes before +:
- NOT (the bar or prime) first,
- then AND (letters side by side, or ·),
- then OR (+).
So means A OR (B AND (NOT C)). Brackets override the order: does the OR first.
A long bar acts like brackets. In you work out first and then flip the result. A short bar covers only the one letter under it, so flips only B.
Why it matters: the same letters grouped differently give different functions. Many errors, especially when typing answers or applying de morgans laws, come from regrouping by accident. If you are unsure, add brackets: they never hurt.
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 1 |