In Booth’s multiplication algorithm, what action is taken when the current multiplier bit is 1 and the previous (right-hand) bit is 0?
Correct answer B. Subtract the multiplicand from the partial product, then shift
Explanation
A 10 pair marks the start of a run of 1s, and Booth recodes the run 2^j + ... + 2^i as 2^(j+1) - 2^i, so the multiplicand is subtracted here. The pair 01 marks the end of a run and causes an addition. Pairs 00 and 11 need only an arithmetic right shift. Swapping the add and subtract rules is the commonest error in hand traces.
Answer checked How we write and check questions
Discussion