MCS-284 Homework 3 (Fall 1999)

Due: October 1, 1999

  1. Consider taking the mirror image of a binary numeral, in the sense of reversing the left-to-right order of the bits. For example, the mirror image of 01100 is 00110. What binary numeral(s) have the property that taking the mirror image produces the same result as negating the numeral (using two's-complement)? Justify your answer: not only why the numeral(s) you list have this property, but also why you are sure than no others do.

  2. Do exercise 4.21 on pages 325-326.

  3. Write the 32 bits for the floating point number that results from multiplying by two the floating point number
    0000 0110 0010 0111 0000 0000 0000 0000
    (Note that this is divided into chunks of four bits just to help you count positions more accurately. The chunks do not correspond to the logically significant portions of the representation.) Be sure to explain how you arrived at your answer.

Instructor: Max Hailperin