How many passes will it take to sort the file completely

Assignment Help Basic Computer Science
Reference no: EM131210926

Suppose that you have a file with 10,000 pages and that you have three buffer pages. Answer the following questions for each of these scenarios, assuming that our most general external sorting algorithm is used:

(a) A file with 10,000 pages and three available buffer pages.

(b) A file with 20,000 pages and five available buffer pages.

(c) A file with 2,000,000 pages and 17 available buffer pages.

1. How many runs will you produce in the first pass?

2. How many passes will it take to sort the file completely?

3. What is the total I/O cost of sorting the file?

4. How many buffer pages do you need to sort the file completely in just two passes?

Reference no: EM131210926

Questions Cloud

Different combinations of songs : Madison has just burnt 15 songs onto a music mix CD, 5 are country, 5 are pop, and 5 are Disney songs. If she is interested in randomly listening to 3 songs, how many different combinations of songs can she listen to if order does not matter?
What is heckscher ohlin prediction for the pattern of trade : If wheat is land-intensive and cloth is labor-intensive, what is the Heckscher-Ohlin prediction for the pattern of trade between Pugelovia and the rest of the world?
What cultural values do the site you chose reflect : What is globalization, and in what ways has the Internet served as a vehicle for it? What cultural values do the site you chose reflect? What political values are reflected? Is the site culturally or politically biased in some way? Explain.
System performance in queuing analysis : What are the most common measurements of system performance in queuing analysis?
How many passes will it take to sort the file completely : How many buffer pages do you need to sort the file completely in just two passes?
Determining the confidence interval : A research firm conducted a survey to determine the mean amount steady smokers spend on cigarettes during a week.  A sample of 64 smokers revealed that = $20 and S = $5.  What is the 95% confidence interval for μ?
What are the components of quality : What 3 ways can you create quality within the healthcare organization for the patient? Who are your customers and what does it take to satisfy the customer? What are the customers service expectations and how do they vary between the different types ..
What will be the total i/o cost for sorting this file : What is the largest file, in terms of the number of records, that you can sort with just four buffer pages in two passes? How would your answer change if you had 257 buffer pages?
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?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Transformational leadership reclassifies

Transformational leadership reclassifies individuals' missions and dreams, restores their dedication, and rebuilds their frameworks for objective achievement through a relationship of common incitement and height that changes over adherents into pion..

  Write a few lines of code to create a timer in java

Write a few lines of code to create a timer in Java which fires an ActionEvent every 150 msec. Assume the existence of a TimerEventHandler class which needs to respond to timer events.

  Compute expected payback percentage of machine

Compute the expected "payback" percentage of the machine. In other words, for each coin played, what is the expected coin return?

  Web application security challenges

Web Application Security Challenges

  Why is it difficult to compare the usability of computer

List three important factors to consider when deciding to use paper or a computer to display information.

  Information system staff members can afford to employ

How many Information system staff members do you think Reliable can reasonably afford to employ? What mix of skills would they require?

  Create a datapath diagram

• Using Microsoft Visio or its open source alternative, create a Datapath Diagram for the following scenario: • Local user sends email to a Yahoo recipient. Local (corporate) user having email address [email protected] sends an email to [email protected]..

  The contracted vendor assembles the various cpus

The contracted vendor assembles the various CPUs, processors, file servers, drives, and cabling that make up your server network. Rhos-on-Sea and Ljubljana will provide the necessary technicians, on site, to do the installation under the superv..

  Question regarding the tcp performance

Geoff Huston, "TCP Performance", The Internet Protocol Journal, Vol.3, No.2, June 2000.

  Best data storage format for the student information

1. What is the best data storage format for the Student Information System and give 5 benefits of the format you chose? (In your own words) 2. What is the best Architecture for the Student Information System based on the non-functional requirement..

  Let l be a list of nonnegative integers

1.  Let L be a list of nonnegative integers, where min is the smallest element and max is the largest element. Write an expression that specifies a new tuple consisting of max copies of min followed by min copies of max. So, for example, if L is [1, ..

  Autoparts warehouse

AutoParts Warehouse is a small auto parts supplier with locations in several Midwestern metro areas. The business is based on the idea of discount prices for auto parts that are always in stock or can be delivered within hours. The owners have decide..

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