Skip to content
Official PYQ · 2025

GATE CS 2025 Set 2 Q22 — Computer Arithmetic

Explain with AI


The following two signed 22 's complement numbers (multiplicand M and multiplier Q) are being multiplied using Booth's algorithm:

M: 11001101111011011100110111101101 and Q: 10100100101010101010010010101010

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 QQ is scanned from right to left, starting with an implicit bit Q−1=0Q_{-1} = 0. For each bit pair QiQi−1Q_i Q_{i-1} (for i=0i = 0 to n−1n-1):

  • If QiQi−1=01Q_i Q_{i-1} = 01, an addition operation (A←A+MA \leftarrow A + M) is performed.
  • If QiQi−1=10Q_i Q_{i-1} = 10, a subtraction operation (A←A−MA \leftarrow A - M) is performed.
  • If QiQi−1=00Q_i Q_{i-1} = 00 or 1111, no addition or subtraction is performed.

Given the multiplier Q=1010010010101010Q = 1010010010101010. Appending Q−1=0Q_{-1} = 0 at the right end, we analyze the bit pairs (Qi,Qi−1)(Q_i, Q_{i-1}) from right to left:

ii QiQ_i Qi−1Q_{i-1} QiQi−1Q_i Q_{i-1} Operation
000 (Q−1Q_{-1})00None
11010Subtraction (1)
20101Addition (2)
31010Subtraction (3)
40101Addition (4)
51010Subtraction (5)
60101Addition (6)
71010Subtraction (7)
80101Addition (8)
90000None
101010Subtraction (9)
110101Addition (10)
120000None
131010Subtraction (11)
140101Addition (12)
151010Subtraction (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.

Published
Report a correction
Keep exploringMore Computer Arithmetic questions