0% found this document useful (0 votes)
17 views

Assignment Two

The document contains three questions about computing Hamming distance between code words, designing an error-correcting code for 10-bit words, and properties of a floating-point number system with a sign bit, 3-bit exponent, and 4-bit significand.

Uploaded by

Takir Masalin
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Assignment Two

The document contains three questions about computing Hamming distance between code words, designing an error-correcting code for 10-bit words, and properties of a floating-point number system with a sign bit, 3-bit exponent, and 4-bit significand.

Uploaded by

Takir Masalin
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment Two

Question One

Compute the Hamming distance of the following code:

0011010010111100

0000011110001111

0010010110101101

0001011010011110

Question Two

Suppose we want an error-correcting code that will allow all single-bit errors to be corrected for
memory words of length 10.

a) How many parity bits are necessary?

b) Assuming we are using the Hamming algorithm presented in this chapter to design our error-
correcting code, find the code word to represent the 10-bit information word: 1001100110.

Question Three

If the floating-point number storage on a certain system has a sign bit, a 3-bit exponent, and a 4-bit
significand:

a) What is the largest positive and the smallest negative number that can be stored on this system if the
storage is normalized? (Assume no bits are implied, there is no biasing, exponents use two’s
complement notation, and exponents of all zeros and all ones are allowed.)

b) What bias should be used in the exponent if we prefer all exponents to be nonnegative? Why would
you choose this bias?

You might also like