closed by
1,189 views
2 votes
2 votes
closed as a duplicate of: GATE CSE 1999 | Question: 1.20
Booth's coding in 8-bits for the decimal number -57 is:  A 0-100+1000 B 0-100+100-1 C 0-1+100-10+1 D 00-10+100-1 plz explain this question
closed by

1 Answer

1 votes
1 votes

Booth's coding is a way to represent signed integers in binary format. It was invented by Andrew Donald Booth in 1950. It uses a combination of two's complement and signed-digit representation to reduce the number of operations required for multiplication.

To convert a decimal number to Booth's coding in 8 bits, we follow these steps:

  1. Convert the decimal number to its two's complement representation in 8 bits. To do this, we first convert the absolute value of the decimal number to binary, and then take the two's complement of the binary number. In this case, the absolute value of -57 is 57, which in binary is 00111001. Taking the two's complement of this gives us 110010111.

  2. Add a zero at the beginning of the binary number to indicate that it is positive. This gives us 0110010111.

  3. Group the binary number into pairs of two, starting from the right. This gives us 01 10 01 01 11.

  4. For each pair of bits, replace 01 with 0-1 and 10 with 1-0. This gives us 0-1 1-0 0-1 0-1 1-1.

  5. Concatenate the resulting 5 pairs of bits to get the final Booth's coding in 8 bits. This gives us 0-101001011.

Therefore, the correct option is B) 0-100+100-1, which represents the Booth's coding of -57 in 8 bits.

Related questions

0 votes
0 votes
1 answer
1
Aravind Adithya 1 asked Dec 25, 2018
1,849 views
Consider the following Booth’s multiplication:Multiplicand: 1011 0111 1111Multiplier: 0101 1100 1001Which of the following represents the number of arithmetic operation...