The Deep Sea Submarine Hull
Pressure SENSOR and Depth Gauge D must trigger the ALARM if either is high, but only if the Hatch SEAL is not active. The HULL status is safe when both Pressure and Seal are low.
Replay this puzzle All puzzles
The truth table
Inputs on the left, outputs on the right. A circuit solves the puzzle when it reproduces every row.
| SENSOR | D | SEAL | ALARM | HULL |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 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, D=1, SEAL=0; SENSOR=1, D=0, SEAL=0; SENSOR=1, D=1, SEAL=0.
- HULL is 1 in 2 of the 8 rows. It does not depend on D at all: flipping it never changes the output, so any gate reading it is wasted. The rows that turn it on: SENSOR=0, D=0, SEAL=0; SENSOR=0, D=1, SEAL=0.
The smallest known circuit: 3 gates
As a formula, one line per output:
ALARM = ((SENSOR OR D) AND NOT SEAL)HULL = (NOT SENSOR AND NOT SEAL)
As a netlist, in the order you would wire it. Each g is one gate; the last lines say which signal drives each output.
g1 = SENSOR NOR Dg2 = SENSOR NOR SEALg3 = SEAL NOR g1ALARM = g3HULL = g2
The search ran out of budget before it could rule out every smaller circuit, so 3 is the best anyone found, not a proof. If you build it in fewer, the leaderboard records it. 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.
← #16 The Space Station Oxygen Scrubber · #18 The Coffee Machine Logic →