The Space Station Oxygen Scrubber
Oxygen levels depend on the SENSOR, VENT, and POWER inputs. The ALARM must sound if the SENSOR is low while either VENT or POWER are also inactive.
Replay this puzzle All puzzles
The truth table
Inputs on the left, the output on the right. A circuit solves the puzzle when it reproduces every row.
| SENSOR | VENT | POWER | ALARM |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 0 |
What the table tells you
- ALARM is 1 in 3 of the 8 rows. Every input matters: for each one there is a row where flipping it changes ALARM. The rows that turn it on: SENSOR=0, VENT=0, POWER=0; SENSOR=0, VENT=0, POWER=1; SENSOR=0, VENT=1, POWER=0.
The smallest known circuit: 3 gates
As a formula, one line per output:
ALARM = (NOT SENSOR AND (NOT VENT OR NOT POWER))
As a netlist, in the order you would wire it. Each g is one gate; the last line says which signal drives the output.
g1 = VENT AND POWERg2 = SENSOR OR g1g3 = NOT g2ALARM = g3
The search checked every circuit with fewer gates and none matches the table, so 3 is the true minimum for the allowed gate set. Gates that do not feed an output are never counted.
Leaderboard for the day
Nobody posted a result on the day. The circuit above is the reference.
← #15 The Castle Gate Keeper · #17 The Deep Sea Submarine Hull →