Booth's algorithm multiplies signed 2's-complement integers without a separate sign-correction phase. GATE can ask for the final product, an intermediate register, or the number of add and subtract operations. Most wrong traces come from using a logical shift or forgetting the extra Q-1 bit.
Why Booth's algorithm exists
Ordinary binary shift-and-add multiplication examines multiplier bits and adds shifted copies of the multiplicand. Signed operands make that procedure awkward if the sign is handled separately.
Booth recoding handles positive and negative 2's-complement operands with the same rule. It also compresses a run of 1 bits into transitions at its boundaries. Instead of performing arithmetic for every 1, the algorithm reacts when a run begins or ends.
This assumes you can already read fixed-width signed values confidently. If a bit pattern still feels ambiguous, revise number systems and base conversions before tracing registers.
Registers and the Booth rule
For an n-bit multiplication, maintain:
M, then-bit multiplicandQ, then-bit multiplierA, then-bit accumulator, initially zeroQ-1, one extra bit, initially zero
At each step, inspect (Q0, Q-1), where Q0 is the least-significant bit of Q.
Pair | Arithmetic action |
|---|---|
| none |
|
|
|
|
| none |
After that possible arithmetic action, perform one arithmetic shift right on the combined register A,Q,Q-1. The old sign bit of A is copied into the new sign position. Repeat exactly n times. The final 2n-bit product is A concatenated with Q.
The shift rule is not optional. A logical right shift inserts zero and destroys a negative partial product.
Fully worked Booth trace
Multiply M = 2 by Q = -5 using four bits.
M = 2 = 0010
-M = -2 = 1110
Q = -5 = 1011
n = 4The expected decimal product is 2 * (-5) = -10. Initialise A = 0000, Q = 1011, and Q-1 = 0.
State | Examined pair | Action before shift | A after ASR | Q after ASR | Q-1 after ASR |
|---|---|---|---|---|---|
Init |
|
|
| ||
Step 1 |
|
|
|
|
|
Step 2 |
| no arithmetic |
|
|
|
Step 3 |
|
|
|
|
|
Step 4 |
|
|
|
|
|
Check each shift as one combined value. For step 1, the pre-shift bits are 1110 1011 0. Replicating the leading 1 and shifting every other bit one place gives 1111 0101 1. The later rows follow the same movement.
After four steps:
A,Q = 1111 0110As an unsigned 8-bit pattern, 11110110 is 246. Because its sign bit is 1, its signed value is 246 - 256 = -10. This matches the direct decimal product, so the trace closes correctly.

Counting additions and subtractions
The number of arithmetic operations equals the number of relevant transitions between adjacent multiplier bits when the initial Q-1 = 0 is appended on the right.
For Q = 1011, inspect from the least-significant end:
(1,0) -> subtract
(1,1) -> no arithmetic
(0,1) -> add
(1,0) -> subtractThat is two subtractions and one addition, for 3 arithmetic operations. The four arithmetic-shift steps still occur whether or not a row performs an add or subtract.
For an all-zero multiplier, every pair is 00, so the arithmetic-operation count is 0. For an all-one negative multiplier such as 1111, the appended zero creates one 10 pair at the start, so the count is 1, not 0. An alternating pattern such as 0101 can cause arithmetic on every one of the n steps, giving the worst-case count n.
This transition method is faster than simulating full register contents when the question asks only for the operation count.
Traps GATE plants in Booth questions
Perform an arithmetic right shift of the whole
A,Q,Q-1register, not separate logical shifts.Initialise
Q-1to zero and include it when selecting the action.Keep every register at exactly
nbits. Discard carry beyondAafter an add or subtract.Count the sign bit inside
n; do not trace a magnitude-only width.Interpret the final
A,Qas a2n-bit signed 2's-complement value.Apply the arithmetic action before the shift on each step.
About 1,700 COA questions in the KnowledgeGate bank cover signed representation, Booth multiplication and operation-count variants. The COA number-representation and floating-point MCQs are a useful companion when sign extension or fixed-width interpretation is the weak point.
How GATE tests the trace
A stem may ask for the final product, the contents of A after a specified step, or the number of additions and subtractions. Build a row with the examined pair, action, and post-shift registers. Mixing pre-shift and post-shift values in one row is a common source of apparently random errors.
For exact year-specific wording, confirm the official GATE portal of the organising IIT. The GATE category provides the wider preparation route without tying the algorithm to a changing paper detail.
Short version and next step
Inspect (Q0,Q-1): 00 and 11 shift, 01 adds M, and 10 subtracts M. Then arithmetic-shift the combined registers and repeat n times. Count arithmetic operations by counting the corresponding bit transitions with the appended zero.
Trace one positive-by-negative and one negative-by-negative product on paper. Then use GATE Guidance by Sanchit Sir to drill signed-arithmetic sets until every register row is auditable.




