GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Radix-2 Booth recoding turns an 8-bit two's complement multiplier q7..q0 (with q−1 = 0) into digits q(i−1) − q(i) ∈ {−1, 0, +1}; each non-zero digit costs one add/subtract. For how many of the 256 multipliers does Booth recoding need strictly MORE add/subtract operations than the number of 1 bits in the multiplier?

  1. A. 89
  2. B. 128
  3. C. 114
  4. D. 113

Correct answer: D. 113

The Booth count is the number of positions i (0-7) where q_i ≠ q_(i−1), i.e. 2 per interior run of 1s, or 1 for a run that reaches q7. A run of length L costs L in plain shift-add, while a run of length L costs L in plain shift-add. Booth loses on short interior runs (an isolated 1 costs 2 instead of 1) and wins on long ones; summing over the runs of every pattern, exhaustive counting over all 256 patterns gives 113 multipliers with more Booth operations (and 89 with fewer).

More Digital Logic questions

Exams that ask this topic