GithubHelp home page GithubHelp logo

two-phase-merge-sort-with-limited-memory's Introduction

Two-Phase Multiway Merge-Sort
The task is to sort a large input file of tuples (records).
 The input file is given as a text-file in which each line of the file is a positive integer (with possibly duplicated values), 
 where each integer is a tuple. The task is to compare the tuples in the list and to output to a file the same list where its 
 tuples are sorted in ascending order. The first line of the input file will indicate the number of tuples in it and the amount of allowed maximum main memory. 
 The second line of the input file is blank and from the third line the tuples start. Example
1000000 5mb
111111 234566 22 ... ...
The sorting algorithm is the Two-Phase Multiway Merge-Sort with possibly several
 rounds of merging in Phase 2. and based on the given input information your algorithm 
 should determine the best buffer size before it starts the actual sorting.
 
 IMPORTANT NOTE:  Use Xmxkm to restrict the main memory usage to k MB. for example Xmx5m will restrict the main memory to 5MB. You need to set it up on Eclipse. 
 
 *** Run DatabaseProject1ASPS.java
 
 NOTE: Use Eclipse/Net beans
 
 NOTE: Change filePath according to your PC\
 
 Extra File
 
 1) TESTING FOLDER contains data Set
 
 2) DataSetCreation.java is used to create data set of any size
 
 3) CheckSizeToInsertInMainMemory.java is used to check memory consumption in 0.1 million to 1 million dataSet

two-phase-merge-sort-with-limited-memory's People

Contributors

amitsachdeva45 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.