Welcome to the Sorting Algorithms! Here, you'll find a variety of sorting algorithms in action. Whether you're optimizing performance or experimenting with different sorts, this project has you covered. ๐ปโจ
๐ง This project is still under construction! New features and sorting algorithms are actively being added. ๐ง
you can edit these options in sort.h!
-
Array Size & Number:
Customize the size of arrays by modifyingARRAY_SIZEandMAX_NUMBERinsort.h.
๐ก Adjust these to test your sorting algorithms on arrays of different sizes! -
Toggle Array Printing:
Turn the array-printing feature on or off by changing the value ofPRINT_ARRAYinsort.h.
๐ Useful when debugging or viewing array transformations! -
Select Sorting Algorithms:
Choose which sorting algorithms to execute by modifyingisSortingEnabledinmain.cpp.
๐ Easily enable or disable specific sorts with this simple switch.
Build the project:
makeRemove generated files:
make cleanRebuild (use this when the output file is already built and only header files have changed):
make rebuildCheck out the progress on implemented sorting algorithms:
-
Performance Test
-
Bubble Sort
-
Selection Sort
-
Quick Sort
-
Heap Sort
-
Insertion Sort
-
Merge Sort
-
Shell Sort
-
Radix Sort
-
Counting Sort
-
Bogo Sort (Why not some chaos?)
-
Bogobogo Sort (Extreme chaos!)
-
Bead Sort (Gravity Sort) (Let physics do the work!)
-
Sorting Parallelization