b) How would your answer to (a) change if a copy of the original master file were not required?
c) How would your answer to (a) change if the transactions file was initially sorted?
d) Explain why your answer to (a) would change if a large number of transactions were insertion operations. You do not need to provide any math for (d).
K
. Assuming that the record is in the master file, but
you first check the differential file, approximately how many disk
accesses in total will it take before you find the desired record?
h1 = K mod M h2 = (K+3) mod Mwhere
K
is the record key and M
is the size
of the bitmap.
h2
?