This program sorts a text file of unique integers and outputs the sorted list. The text file will be an unsorted data structure [Standard Template Library (STL) vector]. This is to emulate the performance of the UNIX sort-n command.
Sorting Algorithms (through divide and conquer):
- Quicksort - picks element as pivot and partition exchanging
- Mergesort - divides into two halfs, then merges sorted halfs
makecreates a mysort exe file
Functionality:mysort --namedisplays first name and last namemysort <input file> -o <output file> --alg=<merge,quick>takes an input file, writes to an output file; the input file is sorted based on specified merge or quick, and written to the output file- no other mysort features available; no current fact checking
make cleanremoves any files created by make
- randomNumberGen.cpp - creates a text file with a specified number of random numbers from [ 1 - number size ]. Number size is specified within cpp file itself.
- mergesort and quicksort cpp + header files. Not used, instead directly incorporated to main.cpp.