Assignment Two
Assignment Two
Question One
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.
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?