Submarine Sonar Sweep
The SONAR sensor detects objects when both DEPTH and MOTION are active but only if the SILENT mode is off. The ALARM triggers if either DEPTH or MOTION is true while SILENT remains inactive.
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.
| DEPTH | MOTION | SILENT | DETECT | ALARM |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 |
What the table tells you
- DETECT is 1 in 1 of the 8 rows, so it is a single AND-shaped condition: one exact combination of the inputs. Every input matters: for each one there is a row where flipping it changes DETECT. The rows that turn it on: DEPTH=1, MOTION=1, SILENT=0.
- 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: DEPTH=0, MOTION=1, SILENT=0; DEPTH=1, MOTION=0, SILENT=0; DEPTH=1, MOTION=1, SILENT=0.
The smallest known circuit: 5 gates
As a formula, one line per output:
DETECT = ((DEPTH AND MOTION) AND NOT SILENT)ALARM = ((DEPTH OR MOTION) AND NOT SILENT)
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 = DEPTH AND MOTIONg2 = NOT SILENTg3 = DEPTH OR MOTIONg4 = g1 AND g2g5 = g2 AND g3DETECT = g4ALARM = g5
The search ran out of budget before it could rule out every smaller circuit, so 5 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.
← #42 The Lighthouse Fog Warning · #44 The Coffee Machine Brew →