This program provides a visual demonstration of various sorting algorithms.
- g++
- SDL2
- SDL2_ttf
- SDL2_image
Build with make, then run with ./sorting [OPTIONS]
Options:
-n N: Number of elements in the set (default: 50)-d N | --frame-delay N: Delay in ms after the window is refreshed (default: 50)--dimensions XxY: Screen dimensions (default: 1500x1000)-h | --help: Display the help page-s N | --sorting N: Sorting method to use (default: quicksort)0: Bubble sort1: Selection sort2: Insertion sort3: Quicksort4: Mergesort5: Heapsort6: Introsort7: Shellsort