How you would sort a file that was too large to fit in ram

Assignment Help Basic Computer Science
Reference no: EM13951277

Consider how you would sort a file that was too large to fit in your machine's RAM. External Sorting refers to the sorting of data which is not in the primary memory of the computer. In this problem, you have to implement a miniature version of external sort. The file sizes have been intentionally kept small because of time constraints. The methodology followed has to be the same as for really big files.

a) First generate a 256 MB file Bigfile containing integers. You can make use of a random number generator, with suitable modifications on the generator output, to generate suitable integers.

b) Then sort the above file in the following manner

• Bring in 1024*1024 integers into memory at a time, and sort into an output file, thus generating 64 sorted files of integers.

• Do an 8 way merge on the contents of these files to generate 8 sorted files.

• Do a 4-way merge on the above files to generate 2 sorted files.

• Merge the two files obtained above into Bigfile, to obtain the sorted Bigfile.

Reference no: EM13951277

Questions Cloud

Context of information technology and information security : Using any of several different tools (Online White pages, Peoplefinders, Wink People Finder, etc.) someone has found your name and address. What other information would be needed in order for them to access your ONLINE bank account or credit card ..
Expected percentage change in value : 1. Calculate the duration of a $100,000 fixed-rate 30-year mortgage with a nominal annual rate of 7.0%. What is the expected percentage change in value if the required rate drops to 6.5% immediately after the mortgage is issued?
Equal sharing of monopoly output and profits : Find the critical value of the discount factor to sustain collusion if the firms play a super game and use grim punishment strategies. Assume that the collusive agreement involves equal sharing of monopoly output and profits. How does the minimum ..
Earned value to determine status : Jennifer turned in her status report for the newly approved mailing activities. She feels that her pieces are on track with nothing for you to worry about. She reports the following information for the critical path tasks:
How you would sort a file that was too large to fit in ram : Consider how you would sort a file that was too large to fit in your machine's RAM. External Sorting refers to the sorting of data which is not in the primary memory of the computer.
Different stakeholders and their interaction : The purpose of the Final Project is to apply the concepts and techniques of the module to the development of:
Legitimate reason for purchasing individual apps : Security of your data is of utmost importance to Jamie, even more so than ease of access or speed of processing. Which type of application category would you recommend Jamie use?
What is best estimate for the time till the next eruption : Write down the estimated regression equation, and verbally interpret the intercept and the slope coefficients (in terms of geysers and eruption times).
Determinants of employment inflation and value theory : Select an early and later economist and compare and contrast their theories in an important area of analysis such as the determinants of employment, inflation, value theory, development, trade, protectionism, financial crisis, or overall methodolo..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Describe sso and vpn technology

Describe SSO and VPN technology

  Unit integration and system testing

Create a testing plan that includes unit integration and system testing. Ensure the criteria is carefully documented. Explain the installation process and include guidelines for all concerned.

  Good training room

What are the characteristics of a good training room? How does the facility affect the training or does it?

  What is the number of significant decimal digits

the 36 bit computer uses the 28 bit mantissa and the 8 bit exponent. what is the number of significant decimal digits and what is the range of real numbers for this machine?

  The owners of designit

The owners of DesignIT, who recently purchased 56'x36' space for their expanding business, have asked you to place a bid on a consulting job. DesignIT is a graphic arts company that, up until now, had contracted work out to temporary design services...

  Own a consulting company that designs installs

Assume you own a consulting company that designs, installs, and maintains wide area networks. You currently have two companies requesting bids for their wide area networks to be installed. You must provide all of the relevant information to the..

  Problem regarding the web analytics report

What are the three (3) most important measurements that should be included in a Web analytics report? Describe and defend your reasoning.

  What is the maximum main memory size

For a microprocessor with a word size of 32 bits, the usable main memory size is capped. What is the maximum main memory size

  Order it by faculty last name in descending order

Write a SELECT statement that will return the faculty last name, faculty first name and the room for faculty whose offices are located in the 'LIB' building. Order it by faculty last name in descending order. This is in MySQL

  The media access control (mac) address of a network

The media Access Control (MAC) address of a network interface ia a unique address. Each network interface relating to it's MAC fits the critera of a function because each device has it's own, unique MAC address. Describe an everyday situation in your..

  What are the basic network management functions

(1) What are the basic network management functions: OAMP? (2) Describe what are in SNMPv1

  Examine how unix (and linux) organizes images and processes

Examine how UNIX (and Linux) organizes images and processes, manages data, files, and devices, and controls data access on a system at the administrator and user level.Review what you have learned about UNIX and Linux internals in Chapter 13, and dem..

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