Using Booth’s algorithm with the multiplier 00111100, how many add or subtract operations on the multiplicand are performed?
Correct answer A. 2
Explanation
Booth's algorithm only acts at the edges of runs of 1s. Scanning from the LSB with an implied 0 on the right, the pair 10 at the start of the run triggers a subtraction and the pair 01 at its end triggers an addition; pairs 00 and 11 just shift. The single run 1111 therefore costs 2 operations, whereas plain shift-and-add would need 4 additions, one per 1 bit.
Answer checked How we write and check questions
Discussion