At the lowest level, a computer's circuits make decisions using logic gates, tiny electronic components that take one or more binary inputs and produce a binary output according to fixed rules. By combining gates, engineers build everything from the ALU's adders to the control logic that steers the instruction cycle. The mathematics that describes these gates is Boolean algebra, which works with just two values: true (1) and false (0).
A truth table lists every possible combination of inputs and the output the gate produces for each. The fundamental gates are: