Works for External Sorting of Files using Limited RAM specified in the program itself and also provides RAM used for a particular operation done.
- Reads file/files and segregates them into smaller files depending on the RAM size specified.
- Used Quick Sort for sorting the files.
- Merged all the small files to make a single sorted file.
Clone the repository
#Build the project
make s
#Generate random unsorted data
make t
#Run the program
Run ./a.out [options] filename
-r Sorting the file in descending order
-o Saving the output in the file name specified
-d Sort based on dictionary order
-n Sort based on numerical values
-m Merges files specified as operands in a sorted order
-c check whether the given file is sorted