Assignment 1
Reading
Assignment:
Chapter 3.1 and
3.2 in Hennessy and Patterson.
Binary number section in Brown and Vranesic
- (9
points) For each part below devise a scheme to represent, in binary, each
set of symbols
- Decimal
Digits : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- Alphabets
: A, B, C, D, E, F
- Integers
from 21 to 36
- (12
points) Suppose you want to represent positive integers in binary.
Indicate how many bits are required to represent each of the following
sets of integers:
- The
integers from 0 to 127 inclusive
- The
integers from 0 to 2,048 inclusive
- The
integers from 0 to 32,500 inclusive
- The
integers from 0 to 1,500,345 inclusive
- (9
points) Indicate how large a value can be represented by each of the
binary quantities:
- 4-bits
- 12-bits
- 24-bits
- (15
points) Convert each of the following binary number into decimal. Assume
these quantities represent unsigned integers.
- 1010
- 10010
- 0111110
- 10000000
- 0111111
- (15
points) Convert each of the following decimal numbers into binary.
- 6
- 13
- 111
- 147
- 511
- (10
points) Suppose you are a jogger who wants to use your ten fingers to
count laps as you circle a track. How many laps can you conveniently
count? Briefly justify your answer. (There is more than one possible
answer here.)
- (10
points) Search on Google for Slide rule and explain its functioning in 5
lines or less.
- (20
points) Give a general formula to compute time it takes to compute an nth
order polynomial (where the highest power of x is n) using the two
different computing structure given in your notes. Assume that a
multiplier take time tm and an adder take times ta.