What the topic is about
Logic circuits: AND (&), OR (≥1), NOT (1 with a circle) and exclusive OR (=1) gates joined by wires. The task is to find the output, count the input sets that give 1, or write the circuit as a formula.
Where it leads
Logic circuits are what processors, memory and all digital devices are made of: AND, OR and NOT gates make adders and whole computers. The topic links maths with computer science and physics.
How to solve
- Go from the inputs to the output and write the value on every wire.
- AND gives 1 only if every input is 1; OR if at least one is; =1 if the number of ones is odd.
- To write the formula, start with the gates at the inputs and put them into the next ones.
A worked example
& is AND, ≥1 is OR, =1 is exclusive OR, 1 is NOT, a circle at the output means NOT. For how many sets of values of A, B, C is the output Y equal to 1?
Answer: 4
- Y = (C ∧ ¬(A ∧ B)) ∨ (¬C ∧ (A ∧ B))
- The expression is true for: A = 0, B = 0, C = 1, A = 0, B = 1, C = 1, A = 1, B = 0, C = 1, A = 1, B = 1, C = 0.
- Such sets: 4.
Typical mistakes
- Missing the circle of negation at a gate’s output.
- Mixing up OR and exclusive OR.
How to tell it is learnt
- Finds the output of a circuit for given inputs.
- Makes the truth table of a circuit.
- Writes a circuit as a formula and recognises the formula of a circuit.
How to help at home
Build or draw “AND” (in series) and “OR” (in parallel) circuits with a battery, a bulb and two switches. Make a table: when is the bulb on?
A game without a phone
Draw a “burglar alarm” circuit: the siren goes off if the door OR the window is open AND the alarm is on. Make a table and check when it goes off. Then design a circuit for a door with two keys.
