Compute the following. Give the answer in binary notation.
- 0 + 0 = ?
- 0 + 1 = ?
- 1 + 0 = ?
- 1 + 1 = ?
Answer In binary:
- 0 + 0 = 0
- 0 + 1 = 1
- 1 + 0 = 1
- 1 + 1 = 10
The Binary Addition Algorithm
The binary addition algorithm is a
Let us start by adding 1-bit integers. The operation is performed on three bits. Arrange the bits into a column. The bit at the top of the column is called the "carry into the column". The operation produces a two-bit result. The left bit of the result is called the "carry out of the column".
To add two 1-bit (representations of) integers: Count the number of ones in a column and write the result in binary. The right bit of the result is placed under the column of bits. The left bit is called the "carry out of the column". The table shows the outcomes with all possible operands.
Perform the following additions:
1 0 1
0 1 1
1 0 0
--- --- ---
Answer
1 0 1
0 1 1
1 0 0
--- --- ---
10 01 10