Martin Klöckner's Webpage


Sorting Algorithms Visualized

18-Sep-2022 (last update 22-abr-2023)

SAV, short for Sorting Algorithms Visualized, is a desktop app that shows how an array is being sorted using different algorithms.

I made it using pure C and SDL2 for graphics, you can take a look at it’s source code on Github.

The main purpose of this app was to put in practice the knowledge I gained in C as well with algorithms, and it was like a challenge since I have never used SDL2 graphics before. In the end it was a very enjoyable project since SDL2 per se is a very simple and easy to use library.

Currently the following sorting algorithms can be displayed:

but in a future I would like to add more algorithms, as well as sound.


Back to top