HTML and binary
Logic and truth tables
Theories and ideas |
CS 010 Summary
Part III: Logic and Truth Tables
This is a truth table:
| A | B |
A and B | A or B |
A x-or B | (A or B) and (not (A and B)) |
| 1 | 1 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 0 | 0 | 0 | 0 | 0 |
Logic gates can add in binary when in the right order and quantity.
A half adder can add to two places; a full adder can carry another place
and add to three places. More full adders together can add to indefinite
amounts of places in binary. In a computer, logic gates are transistors
on silicon chips. |