Skip to content
Official PYQ · 1999

GATE CS 1999 Q1.20 — Number Representations (Fixed and Floating Point)

Explain with AI

Booth's coding in 88 bits for the decimal number −57-57 is:

Choose one option
View worked solution

Answer: B

To find the Booth's recoding of the decimal number −57-57 in 88 bits, we follow these steps:

Step 1: Represent −57-57 in 8-bit 2's complement form

  • The binary representation of +57+57 in 8 bits is: +57=001110012+57 = 00111001_2
  • To find −57-57 in 2's complement, we invert the bits of +57+57 and add 11: Invert bits: 110001102\text{Invert bits: } 11000110_2 Add 1: 110001112\text{Add 1: } 11000111_2 So, the 8-bit 2's complement representation of −57-57 is A=a7a6a5a4a3a2a1a0=110001112A = a_7 a_6 a_5 a_4 a_3 a_2 a_1 a_0 = 11000111_2.

Step 2: Apply Booth's Recoding

In Booth's recoding, we append an implicit bit a−1=0a_{-1} = 0 to the right of the LSB. The recoded digit yiy_i for each position ii (from 77 down to 00) is calculated using the formula:

yi=ai−1−aiy_i = a_{i-1} - a_i

Let's align the bits and compute each yiy_i:

Position (ii) 77 66 55 44 33 22 11 00 −1-1
Bit (aia_i) 11 11 00 00 00 11 11 11 00 (implicit)
Recoded (yi=ai−1−aiy_i = a_{i-1} - a_i) 1−1=01 - 1 = 0 0−1=−10 - 1 = -1 0−0=00 - 0 = 0 0−0=00 - 0 = 0 1−0=+11 - 0 = +1 1−1=01 - 1 = 0 1−1=01 - 1 = 0 0−1=−10 - 1 = -1 —

Writing the recoded digits from left to right (y7y_7 to y0y_0):

0−100+100−10 \quad -1 \quad 0 \quad 0 \quad +1 \quad 0 \quad 0 \quad -1

This corresponds directly to the representation: 0−100+100−10-100+100-1.

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

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions