The following two signed 's complement numbers (multiplicand M and multiplier Q) are being multiplied using Booth's algorithm:
M: and Q:
The total number of addition and subtraction operations to be performed is_____________. (Answer in integer)
View worked solution
Answer: 13:13
In Booth's multiplication algorithm, the multiplier is scanned from right to left, starting with an implicit bit . For each bit pair (for to ):
- If , an addition operation () is performed.
- If , a subtraction operation () is performed.
- If or , no addition or subtraction is performed.
Given the multiplier . Appending at the right end, we analyze the bit pairs from right to left:
| Operation | ||||
|---|---|---|---|---|
| 0 | 0 | 0 () | 00 | None |
| 1 | 1 | 0 | 10 | Subtraction (1) |
| 2 | 0 | 1 | 01 | Addition (2) |
| 3 | 1 | 0 | 10 | Subtraction (3) |
| 4 | 0 | 1 | 01 | Addition (4) |
| 5 | 1 | 0 | 10 | Subtraction (5) |
| 6 | 0 | 1 | 01 | Addition (6) |
| 7 | 1 | 0 | 10 | Subtraction (7) |
| 8 | 0 | 1 | 01 | Addition (8) |
| 9 | 0 | 0 | 00 | None |
| 10 | 1 | 0 | 10 | Subtraction (9) |
| 11 | 0 | 1 | 01 | Addition (10) |
| 12 | 0 | 0 | 00 | None |
| 13 | 1 | 0 | 10 | Subtraction (11) |
| 14 | 0 | 1 | 01 | Addition (12) |
| 15 | 1 | 0 | 10 | Subtraction (13) |
Thus, the total number of addition and subtraction operations to be performed is 13.
Free practice · Your answers on this page are not saved.
