The simplest way of devising a system of gates from a truth table is to use the AND-OR method
This is done by taking the inputs of each row of the table that has a high output, inverting the inputs that must be low, then ANDing them with all the inputs that must be high
Then, OR the outputs of the systems constructed from each row
Boolean notation
Boolean notation can be used as a shorthand notation for expressing a truth table
A AND B = A⋅B
A OR B = A+B
NOT A = A
A NOR B = A+B
A NAND B = A⋅B
NAND gates
The NAND gate is called the universal logic gate, since all other logic systems can be constructed from it
A AND B = (A NAND B) NAND (A NAND B)
A OR B = (A NAND A) NAND (B NAND B)
NOT A = A NAND A
A NOR B = ((A NAND A) NAND (B NAND B)) NAND ((A NAND A) NAND (B NAND B))
Pull up/down resistors
When an input of a gate is not connected, such as if a switch connecting it to an input voltage is open, the input is left floating and cannot be resolved into a boolean value
A pull up/down resistor connecting the input to the input voltage pulls the voltage of the input high or low respectively when the switch is open