This program implements different sorting algorithms
$ make
In order to run the program you need to specify which test to run.
- -H : Display a help message detailing program usage.
- -a : Runs all tests.
- -h : Enable Heap Sort.
- -b : Enable Batcher Sort.
- -s : Enable Shell Sort.
- -q : Enable Quick Sort.
- -r [num] : sets seed for random array. Default is 13371453.
- -n [num]: changes the size of the array. Default is 100.
- -p [num]: sets how many elements of the array to print. Default is 100.
$ ./sorting -a
The code above runs all sorts with the default setting
$ make clean
This contains the implementation/header of Shell sort.
This contains the implementation/header of Batcher sort.
This contains the implementation/header of Quick sort.
This contains the implementation/header of Heap sort.
This contains the main() function which tests each of the sorting algorithm.
This contains the gap sequence for Shell sort.
This contains the implementation of the 'set' to track the which sort to use.
This contains the implementation of a type Struct variable to keep track of the data of each sort.
Makefile has all the commands to compile and clean the files