GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Apply adjacent-bit Booth recoding

3 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

Compare adjacent multiplier bits with the appended initial zero: 01/10 produce signed add/subtract digits and 00/11 produce no arithmetic. Variants seek a worst-case multiplier, a signed-digit sequence or an arithmetic-operation count.

1 mark · NAT
Report issue

Data Representation & Arithmetic

Question 32, GATE 2025: Ordinary radix-2 Booth multiplication is applied to signed 16-bit two's-complement operands M=1100 1101 1110 1101 and Q=1010 0100 1010 1010. How many additions and subtractions of the multiplicand occur in total? Count arithmetic operations, not shifts.
Tap to enlarge
Answer & solution

Official answer: 13

Step through it (18 steps)

In radix-2 Booth multiplication append q−1=0 to the multiplier and inspect (qi,qi−1) for i=0,…,15. A pair 01 causes addition of M, 10 causes subtraction of M, and 00 or 11 causes neither. Each iteration still performs its arithmetic right shift, but shifts are not included in the question's count. The count depends on the multiplier's bit transitions, not on the value of M.

Read Q from its least significant end. The positions producing subtraction (10) are i=1,3,5,7,10,13,15, seven positions. The positions producing addition (01) are i=2,4,6,8,11,14, six positions. The remaining positions i=0,9,12 have equal adjacent bits and require no arithmetic update.

Thus there are 7+6=13 additions/subtractions during the 16 iterations. Do not append an extra seventeenth correction for the leading one: the fixed-width signed Booth algorithm already handles that sign bit through its arithmetic shifts. Answer: 13.

Original paper, page 25 · Answer key

1 mark · MCQ
Report issue

Booth recoding of a negative integer

Data Representation & Arithmetic

Question 1.20, GATE 1999: Find the eight Booth signed digits for decimal −57, most significant first; option B is 0,−1,0,0,+1,0,0,−1.
Question 1.20, GATE 1999: Find the eight Booth signed digits for decimal −57, most significant first; option B is 0,−1,0,0,+1,0,0,−1.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

The eight-bit two’s-complement representation of −57 is 11000111, obtained from 57=00111001 by inversion and adding one. Append b[−1]=0 and use signed digit d[i]=b[i−1]−b[i]. From low to high the digits are −1,0,0,+1,0,0,−1,0. Reversing them gives 0,−1,0,0,+1,0,0,−1, option B. The weighted check is −26+23−20=−64+8−1=−57. The negative sign in the question is essential.

Original paper, page 2

1 mark · MCQ
Report issue

Worst multiplier pattern for Booth recoding

Data Representation & Arithmetic

Question 1.23, GATE 1996: Which multiplier pattern gives frequent operations in Booth multiplication, including an alternating 1010… pattern?
Tap to enlarge
Your answer
Answer & solution

Answer: A: alternating bits (no official key was published)

Booth recoding examines adjacent multiplier bits, with an appended low-order zero. Equal pairs 00 and 11 require no add/subtract; transitions 01 and 10 trigger addition or subtraction. An alternating pattern therefore triggers operations at almost every position. A long run of ones is cheaper because only its boundaries trigger work. Thus the alternating candidate A is worst among the listed patterns under the ordinary radix-2 Booth operation count, even though the number of shift steps remains fixed by word width.

Original paper, page 3