3.1.5 · D1Boolean Algebra & Logic Gates

Foundations — Truth tables construction

1,985 words9 min readBack to topic

Before you can build a truth table you must be able to read every mark that appears in one. Below is every symbol and idea the parent note leans on, ordered so each one rests on the previous. Nothing is used before it is drawn.


1. The two values: and

The picture: a single switch. Down = = OFF. Up = = ON. There is no "half-on".

Figure — Truth tables construction

Why the topic needs it: every column entry in a truth table is one of these two marks. If you did not know that "on/off" and "/" mean the same thing, the whole table would be gibberish. See also Binary Number System.


2. Input, output, and a Boolean function

The picture: a box. Arrows go in on the left (the inputs), one arrow comes out on the right (the output). The box hides the rule.

Figure — Truth tables construction

Why the topic needs it: a truth table is exactly "for every possible set of arrows-in, what is the arrow-out?" Without the input/output split there is nothing to tabulate.


3. Naming signals: , , and

Why the topic needs it: every column heading in the parent note is a letter like these. Once we have letters, the next four sections give us the operations that combine them into a rule for .


4. NOT — the bar

The picture: flip the switch to its other position. Whatever it was, it is now the reverse.

0 1
1 0

Why the topic needs it: the parent's worked examples use and as intermediate columns. You must know a bar means "flip" to fill them in. More at Logic Gates AND OR NOT.


5. AND — the dot

The picture: two switches wired in series in a line — the lamp lights only if both are closed. Break either one and the circuit is dead.

Figure — Truth tables construction

Why the topic needs it: AND is one of the two combining operations you will meet everywhere, e.g. the piece of an expression.


6. OR — the plus

The picture: two switches wired in parallel — two separate paths to the lamp. Close either path and current flows.

Figure — Truth tables construction

Now that NOT, AND and OR are all defined, we can finally read the parent's headline expression : "output = (A AND B) OR (NOT C)" — but which piece groups with which still needs a rule, and that rule is precedence, coming in Section 8.


7. XOR — the ringed plus

0 0 0
0 1 1
1 0 1
1 1 0

Why the topic needs it: the parent's Forecast-then-Verify exercise asks you to predict the XOR column (). You must recognise the symbol to attempt it.


8. Precedence and parentheses: NOT → AND → OR

Worked read of :

  • (AND) binds tighter than (OR), so this means , not .
  • Check with : default gives ; the bracketed version — here they agree, so try : default gives , but too. The difference shows with : default , forced . Brackets changed the answer.

Why the topic needs it: the entire "intermediate columns" trick exists to respect this order (and any brackets) so you don't mis-evaluate.


9. Powers: what means

Why the topic needs it: is the formula for the row count — the parent's single most-used fact.


10. Counting in binary

For : → the four input rows, in the standard order.

Why the topic needs it: this is the parent's "checksum" method — it stops you skipping or repeating any row. Full treatment in Binary Number System.


How these feed the topic

Bit 0 or 1

Boolean function input to output

Letters A B C F

NOT bar flip

Boolean expression

AND dot both

OR plus at least one

XOR differ

Precedence Not And Or plus brackets

Power 2 to the n rows

Truth table

Count in binary

Every arrow points toward the two things a truth table needs: how many rows (from and binary counting) and what each output is (from the operators and precedence applied to the named inputs).


Equipment checklist

Cover the right-hand side and test yourself. If any answer is fuzzy, re-read that section before touching the parent note.

What are the only two values a bit can hold?
and (OFF and ON) — nothing in between.
What does a Boolean function do?
Takes input bits and produces one fixed output bit by a rule.
Why use letters like , for wires?
A letter is a placeholder for "whatever value this wire has right now", which changes per row.
What does the bar do?
Flips the bit — becomes , becomes (NOT).
When is equal to ?
Only when both and are (AND = all).
When is equal to ?
Only when both are ; otherwise it is (OR = at least one).
Does in Boolean algebra?
No — ; the means OR, not arithmetic addition.
When is equal to ?
Exactly when the two inputs differ (XOR).
State the operator precedence.
NOT first, then AND, then OR (XOR rides with OR).
What do parentheses do?
They group a piece and force it to be evaluated first, overriding the default NOT→AND→OR order.
How many rows does an -input table have, and why?
, because each added input doubles the rows.
What guarantees you list every input combination once?
Counting in binary from to , padded to bits.

Connections