The Greenhouse Nutrient Pump
If the WATER and LIGHT sensors are active, but only if the HEAT sensor is not high, then activate PUMP. The PUMP should also run if both HEAT and LIGHT are off.
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.
| WATER | LIGHT | HEAT | PUMP |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 |
What the table tells you
- PUMP is 1 in 3 of the 8 rows. Every input matters: for each one there is a row where flipping it changes PUMP. The rows that turn it on: WATER=0, LIGHT=0, HEAT=0; WATER=1, LIGHT=0, HEAT=0; WATER=1, LIGHT=1, HEAT=0.
The smallest known circuit: 4 gates
As a formula, one line per output:
PUMP = (((WATER AND LIGHT) AND NOT HEAT) OR (NOT HEAT AND NOT LIGHT))
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 = NOT WATERg2 = LIGHT AND g1g3 = HEAT OR g2g4 = NOT g3PUMP = g4
The search checked every circuit with fewer gates and none matches the table, so 4 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.
← #25 The Bakery Oven Timer · #27 Tram Line Signal Conflict →