Can you think like a computer and work out what this flow diagram
Can you set the logic gates so that this machine can decide how many bulbs have been switched on?
Prove that you can make any type of logic gate using just NAND
All credit to Alex Bramham, for this
excellent and complete solution;
Each wire can be either on or off. Wires that must be the same
have been assigned the same variable. The variables are 1 when the
wire is on, and 0 when off. Relationships between these variables
model the circuit.