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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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