Skip to content
Official PYQ · 1996

GATE CS 1996 Q1.23 — Computer Arithmetic

Explain with AI

Booth’s algorithm for integer multiplication gives worst performance when the multiplier pattern is

Choose one option
View worked solution

Answer: A

In Booth's multiplication algorithm, the number of arithmetic operations (additions and subtractions) depends on the transitions between adjacent bits in the multiplier (including an implicit 00 appended to the right of the least significant bit):

  • A transition from 00 to 11 requires a subtraction.
  • A transition from 11 to 00 requires an addition.
  • No transition (00 to 00 or 11 to 11) requires only a shift operation (no addition/subtraction).

The performance of Booth's algorithm is worst when the number of additions and subtractions is maximized. This occurs when the multiplier has the maximum number of transitions.

Let's analyze the options:

  • Option A (101010ext…1010101010 ext{…}1010): The bits alternate between 11 and 00 throughout the entire sequence. This results in a transition at almost every bit position, maximizing the number of additions and subtractions (worst-case performance).
  • Option B (100000ext…0001100000 ext{…}0001): Contains long runs of 00s, resulting in very few transitions.
  • Option C (111111ext…1111111111 ext{…}1111): A continuous run of 11s. This requires only one subtraction at the beginning and one addition at the end, regardless of the length of the multiplier (best-case performance).
  • Option D (011111ext…1110011111 ext{…}1110): Contains a long run of 11s, resulting in very few transitions.

Therefore, the pattern 101010ext…1010101010 ext{…}1010 gives the worst performance.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Computer Arithmetic questions