Visualization of different sorting algorithms with this C++ project utilizing the SDL2 library. Experience the visual representation of renowned sorting methods such as Selection Sort, Insertion Sort, Bubble Sort, Merge Sort, Quick Sort, and Heap Sort. With a fixed list size of 130 elements, users can randomize the list and select any sorting algorithm for visualization, all converging to ascending order.
Utilize the C++ source code available in the repository (Sorting Visualizer.cpp) by installing and setting up the SDL2 library. Use x86_64-w64-mingw32 to setup the SDL2 files.
After SDL2 setup, include Sorting Visualizer.cpp in your project, configure the build options as per the tutorial, and run the project.
Note: Avoid repetitive commands to prevent latency and unexpected behavior. Wait for the current command to finish execution before inputting a new one.
Available Controls within Sorting Visualizer:
Press 0 to generate a new randomized list. Press 1 for Selection Sort. Press 2 for Insertion Sort. Press 3 for Bubble Sort. Press 4 for Merge Sort. Press 5 for Quick Sort. Press 6 for Heap Sort. Press q to exit Sorting Visualizer. Visual Samples: