This is my second study project in A&DS course - Sorting algorithms. I've implemented many sorting algorithms and some test with increasing array size. The results of this test are then being exported in .tsv and then in .xlsx files. There of course a way to export results without .tsv, I'm just dumb
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort (basic implementation)
- Heap Sort
- Shell Sort (3 variations)
- Intro Sort (basic implementation)
- Tim Sort (basic implementation)
The test function in main.ts measures the execution time of sorting for every sorting algorithm. The mechanism is simple - array being generated with one of the 4 functions:
- createSorted
- createNearlySorted
- createReverseSorted
- createRandom Then sorting algorithm being executed and function measures execution time. After all, it exports the results to .xlsx file.
The main issue is main.ts file, which can test only one sorting algorithm. You can fix it if you want, or change the function name every time. Also .tsv files are kinda useless in this implementation, but export doesn't work without them.