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?
- A. 89
- B. 128
- C. 114
- 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
- A radix-4 (modified Booth) multiplier recodes a 16-bit multiplier 0000111100001111 into 8 digits from {−2, −1, 0, +1, +2}. How many of the…
- Every unsigned 33-digit decimal number (0 to 10³³ − 1) must be stored. What is the minimum number of bits with (i) BCD, (ii) densely…
- The 8-bit pattern 10000000 is read as (i) sign-magnitude, (ii) one's complement, (iii) two's complement and (iv) excess-128 (biased)…
- How many of the numbers 0.05, 0.25, 0.3125, 0.6, 0.71875 and 0.9375 can be stored exactly in an unsigned fixed-point format with 4…
- f(a,b,c) is a threshold function if f = 1 exactly when w1·a + w2·b + w3·c ≥ t for some real weights and threshold (negative weights…
- A Boolean function is affine if it equals c ⊕ (XOR of some subset of its variables) for a constant c, and self-dual if f(x̄) = f(x)'…