Cost is the average seek time plus average rotational delay

Assignment Help Basic Computer Science
Reference no: EM131210918

Consider a disk with an average seek time of 10ms, average rotational delay of 5ms, and a transfer time of 1ms for a 4K page. Assume that the cost of reading/writing a page is the sum of these values (i.e., 16ms) unless a sequence of pages is read/written. In this case the cost is the average seek time plus the average rotational delay (to find the first page in the sequence) plus 1ms per page (to transfer data). You are given 320 buffer pages and asked to sort a file with 10,000,000 pages.

1. Why is it a bad idea to use the 320 pages to support virtual memory, that is, to ‘new' 10,000,000*4K bytes of memory, and to use an in-memory sorting algorithm such as Quicksort?

2. Assume that you begin by creating sorted runs of 320 pages each in the first pass. Evaluate the cost of the following approaches for the subsequent merging passes:

(a) Do 319-way merges.

(b) Create 256 ‘input' buffers of 1 page each, create an ‘output' buffer of 64 pages, and do 256-way merges.

(c) Create 16 ‘input' buffers of 16 pages each, create an ‘output' buffer of 64 pages, and do 16-way merges.

(d) Create eight ‘input' buffers of 32 pages each, create an ‘output' buffer of 64 pages, and do eight-way merges.

(e) Create four ‘input' buffers of 64 pages each, create an ‘output' buffer of 64 pages, and do four-way merges.

Reference no: EM131210918

Questions Cloud

How would the bank benefit from transfer of credit risk : How would you measure credit risk at the bank? Be sure to discuss techniques for measuring individual credit products and commercial credit products. How would the bank benefit from transfer of credit risk?
Show puglias economy using a graph : Show Puglia's economy, using a graph with a production-possibility curve and community indifference curves.- Which product will Puglia export?
Positive skewed normal distribution : What are the key components needed to determine if you have a positive skewed normal distribution?
Explain your position on the statement : Discuss any potential legal or ethical issues that might be encountered if this type of policy is implemented. Based on your position, what issues might you run into in your meeting?
Cost is the average seek time plus average rotational delay : Why is it a bad idea to use the 320 pages to support virtual memory, that is, to ‘new' 10,000,000*4K bytes of memory, and to use an in-memory sorting algorithm such as Quicksort?
Probability of selecting a green marble : Suppose we select, without looking, one marble from a bag containing 4 red marbles and 10 green marbles. What is the probability of selecting a green marble?
Why commercial credit a major risk for financial institution : Why is commercial credit a major risk for financial institutions? What are some approaches used by financial institutions to mitigate concerns with commercial credit? Explain.
How does global sourcing and procurement impact : Supply chain integration is a major contributing factor to organizational success. The goal of supply chain integration is alignment within the supply chain. As a business leader, how can you achieve greater supply chain integration with suppliers..
The logic of the heckscher ohlin theory : According to the logic of the Heckscher-Ohlin theory, why is the shape of the U.S. production-possibility curve different from the shape of the production-possibility curve for the rest of the world?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What are these configurations used for

If applicable, adhere to APA guidelines when creating in-text citations and references. Your assignment should be free of grammatical errors, use complete sentences and give specific details that support your statements.

  Introduction to information systems

Complete the On Your Own project (PC or Mac version) according to the project instructions and submit your assignment through the online course shell. Note: It is important to note that some On Your Own projects request a printed or self-submitted..

  How many years will the population first reach 10 billion

The world population reached 6.83 billion people in January 2010 and was growing at the rate of 1.12% each year. Assuming that the population will continue to grow at the same rate, in how many years will the population first reach 10 billion. Whe..

  Problem regarding the fuel consumption rating

The Gather's have 2 cars. Last year, one car was driven about 13 500 km and has a fuel consumption rating of 8.1L/100km and 55 625km was put on the other car which has a fuel consumption rating of 6.3L/100km

  Find the length and width of the wall of the barn

The area of a rectangular wall of a barn is 90 square feet. Its length is 8 feet longer than twice its width. Find the length and width of the wall of the barn.

  Turning your erd into a functioning databas

After you have developed and designed your ERD you are ready for the next step, which is turning your ERD into a functioning database. The first step for this is establishing your requirements and resources for research if needed.

  Private key unlock cypher text

How does a private key unlock cypher text that was encrypted using a public key without giving away the private key when sharing the public key?

  Shot test

An Incomplete grade is issued when the instructor and the student both enter into a contract.

  Foundation to develop new projected budget

Create a new 2010 Operating Budget based on the labor decision you select from the Nursing Statistics memo. Use your Week Five Health Care Budget assignment as the foundation to develop your new projected budget.

  Definition of composition of relations

Explain, using the definition of composition of relations on a set why the ordered pair (b, d) is or is not an element of the composition of relations R and S (denoted S o R).

  Display an input field called choice to input

Inputting an incorrect option shall display a prompt indicating that the input was invalid and to try again

  Write a program that creates a 4x3 array of integers

Write a program that creates a 4x3 array of integers. Populate the array with random numbers between 0 and 200. Sum up the values in each column and display the three sums to the screen.

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