Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 8 points ) Answer the following T F questions ( a ) The sequential search algorithm can only be applied to a previously sorted
points Answer the following questions
a The sequential search algorithm can only be applied to a previously sorted list
b grows at a faster rate than a algorithm
c The binary search algorithm is in the worst case
d The cache memory is a highspeed relatively small memory
e The Hamiltonian circuit problem has a polynomialtime solution
f An exponential algorithm is faster than a linear algorithm for all input sizes
g Converging pointers algorithm is fast but does not preserve the order of the list
h The instruction LOAD puts the integer into register
points
a What is the largest positive number one can represent in an bit s complement
binary notation? Explain your methodology to get the result and write your result
in binary and decimal.
b What is the greatest magnitude negative number one can represent in an bit
s complement binary notation? Explain your methodology to get the result and
write your result in binary and decimal.
c Convert the following s complement binary numbers to decimal.
i
ii
points
a Convert to decimal show all your work
b Convert the decimal number to binary, stored in scientific exponen
tial notation with a bit signmagnitude mantissa and a bit signmagnitude
exponent show all your work
points Using the decimal representation scheme described in the previous exercise
item b give the decimal value of each of the following bit binary strings. Show
all the details of your work.
a
b
points
a Draw the circuit corresponding to the following boolean expression:
b For the circuit above, draw the truth table for the output of each gate.
c Show using Boolean logic properties truth table method will not be accepted
that the Boolean expression above is equivalent to the Boolean expression
and draw the corresponding circuit.
points
a Suppose a memory is composed of locations, each containing bits. How
many bits does it contain in total? What is the size of its MDR memory data
register and its MAR memory address register
b Assume now we are dealing with a memory where each cell or location contains
exactly bits. In each of the following three cases, how big does the MAR have
to be How many bits of the MAR must be sent to the row decoder? To the
column decoder? How many output lines would these decoders have?
i Kylobytes:
ii Megabytes:
iii. Gigabytes :
c If the average access time of this memory is nsec and the average access time
for cache memory is what is the overall average access time if our cache
rate hit is
d What would the cache hit rate have to be to reduce the average access time to
nsec
points Using the instruction set shown in Figure translate the following algo
rithmic primitives into assembly language code. Show all necessary DATA pseudoops.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started