Calculate in msec the average time needed to search

Assignment Help Basic Computer Science
Reference no: EM131053900

Suppose that a disk unit has the following parameters: seek time s = 20 msec; rotational delay rd = 10 msec; block transfer time btt = 1 msec; block size B = 2400 bytes; interblock gap size G = 600 bytes. An EMPLOYEE file has the following fields: Ssn, 9 bytes; Last_name, 20 bytes; First_name, 20 bytes; Middle_init, 1 byte; Birth_date, 10 bytes; Address, 35 bytes; Phone, 12 bytes; Supervisor_ssn, 9 bytes; Department, 4 bytes; Job_code, 4 bytes; deletion marker, 1 byte. The EMPLOYEE file has r = 30,000 records, fixed-length format, and unspanned blocking. Write appropriate formulas and calculate the following values for the above EMPLOYEE file:

a. The record size R (including the deletion marker), the blocking factor bfr, and the number of disk blocks b.

b. Calculate the wasted space in each disk block because of the unspanned organization.

c. Calculate the transfer rate tr and the bulk transfer rate btr for this disk unit (see Appendix B for definitions of tr and btr).

d. Calculate the average number of block accesses needed to search for an arbitrary record in the file, using linear search.

e. Calculate in msec the average time needed to search for an arbitrary record in the file, using linear search, if the file blocks are stored on consecutive disk blocks and double buffering is used.

f. Calculate in msec the average time needed to search for an arbitrary record in the file, using linear search, if the file blocks are not stored on consecutive disk blocks.

g. Assume that the records are ordered via some key field. Calculate the average number of block accesses and the average time needed to search for an arbitrary record in the file, using binary search.

Reference no: EM131053900

Questions Cloud

Explain what conditions must be true for a restaurant : Explain what conditions must be true for a restaurant to find it in its best interest to be open for lunch. Which costs are relevant when making the decision to stay open?
Calculate the number of blocks needed for the file : Calculate the number of blocks needed for the file.
What role did the various layers of aviation security play : What role did the various layers of aviation security play in preventing the attempted attacks after 9/11? Explain - were the effective layers tactical, policy driven, or a combination of both? Explain.
Analysing the important features of qube : After reading further background material on the company and relevant case studies on related companies, prepare a 2300 -2500 word report analysing the important features of Qube, and identify logistics management strategies to resolve the issues
Calculate in msec the average time needed to search : Assume that the records are ordered via some key field. Calculate the average number of block accesses and the average time needed to search for an arbitrary record in the file, using binary search.
Affect an organization entering in that industry : Prepare a research report of industry characteristics that will affect an organization entering in that industry. Your description must contain the following aspects:
How many fish will you catch to maximize profit : Suppose that you can sell each fish for $5. How many fish will you catch to maximize profit? Explain. Suppose that you purchase your rod and begin fishing. Suddenly, the price of fish drops to $2.10 each. How many fish will you catch to maximize p..
What is russias stand in climate change : What is Russias stand in climate change? What are the biggest problems enviromentally?
Allocation between public and private goods : What happens to the efficient allocation between public and private goods as an economy becomes wealthier?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Computing cycles to save if registers are available

Determine the number of cycles will be saved if both registers are available?

  How can buffer-overflow attacks be avoided

How can buffer-overflow attacks be avoided?

  What are two backup freeware

What are two backup freeware, shareware or commercially available backup programs and compare them and the default Windows backup program to explain the pros and cons of the three programs.

  Gantt and pert charts

Set property values to denote progress in at least fifteen (15) of the line items. Set properties so that at least one (1) of the main tasks is behind schedule.

  Show process that allow implementation of stack

You will now look at Stacks and Queues using linked lists. Complete the following for this question:

  Use a triangle to indicate the challenges and bus processes

Use a triangle to indicate the challenges and bus processes changes

  What can be the record source of the form

What can be the record source of the form

  The ieee 754 single precision binary representation

What would be the IEEE 754 single precision binary representation of the floating point value -314159265. 3589 ? Express your final answer as an 8-hex-digit number and explain how your answer was obtained for full credit.

  An anonymous block to include two sql statements coded

Write a script that uses an anonymous block to include two SQL statements coded as a transaction to delete the row with a customer ID of 8 from the Customers table. To do this, you must first delete all addresses for that order from the Address..

  Is this something to do with precedence

Please could you explain why 2**2**0=2

  Let''s discuss the i/o classes available to us in java

What are the different ways we can use collections and how would go about it?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd