Coder Social home page Coder Social logo

vaibhav1865 / external-sorting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from somyalalwani/external-sorting

0.0 0.0 0.0 55 KB

Implemented External Sorting (K-Way merge sort algorithm to sort a very large array). In C++ without any inbuilt Data Structure.

C++ 63.74% Python 36.26%

external-sorting's Introduction

Data Structures & Algorithms for Problem Solving

Languages Used : C++

PROBLEM : External Sorting (K-Way merge sort algorithm to sort a very large array)

AIM: External Sorting is a class of algorithms used to deal with massive amounts of data that do not fit in memory. The question aims at implementing one such type: K-Way merge sort algorithm to sort a very large array. This algorithm is a perfect example of the use of divide and conquer where with limited resources large problems are tackled by breaking the problem space into small computable subspaces and then operations are done on them.

Input Constraints:

  1. A file containing a large unsorted list of integers (Will not fit in your usual Laptop RAM). 2.Do not use any in-built data structures.

Output: A file containing non-Descending sorted list of the given integers

Evaluation parameters :

  1. Time and Space Complexity of the algorithm
  2. Efficient use of Data-Structures

Input Format: Your code should take two arguments.

  • First is the name of input file.
  • Second is name of output file.
  • Example Format: If your input file is at ./data/input.txt And if you need your output file at ./data/ named output.txt For c++, code should be of format code.cpp compiled file should accept two arguments ./a.out “./data/input.txt” “./data/output.txt”

Generation of unsorted file: To generate the unsorted file, python script is uploaded along with this pdf. It contains all the instructions required to run it.

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.