lesson

Updated 6 days ago Β· 1 view
Every smartphone, supercomputer, and video game console breaks complex decisions down into tiny electronic switches that only understand two states: 1 (HIGH voltage) and 0 (LOW voltage).
In 1854, English mathematician George Boole introduced Boolean algebraβa system of formal logic where variables have only two values: true (1) or false (0).
We build physical circuits using logic gates, which are electronic devices that take one or more binary inputs and output a single binary result according to a rule.
A truth table lists every possible input combination alongside its exact output, giving us a complete map of how a gate behaves.
The Fundamental Three: NOT, AND, OR
The NOT gate (or inverter) has only one input and simply flips the signal: a 0 becomes a 1, and a 1 becomes a 0.
The AND gate requires both input A AND input B to be 1 to produce a 1 output.
The OR gate produces a 1 if at least one of its inputs (A or B or both) is 1.
πInteractive diagram
What if you need a condition where one person or the other can enter, but not both at the same time?
The Exclusive-OR (XOR) Gate
The XOR gate (Exclusive OR) outputs 1 if the inputs are different, and outputs 0 if both inputs are identical.
Its symbol looks just like an OR gate, but features an extra curved line along the input side, written algebraically as Q=AβB.