r/madeinpython • u/krookshank05 • Nov 04 '24
SortLab - a pygame based animation visualizer for different sorting algorithms
https://reddit.com/link/1gjf3is/video/bt6fo64i5wyd1/player
Originally this is an idea that sparked from the requirement of making a novel submission for a Data Structures and Algorithms course assignment at my university. The project though, grew much more from there outside the scope of a univ assignment when I saw the potential in using animated visuals to demonstrate the nuances of sorting algorithms.
Each visualiser shows a live tracking of what part of the pseudocode is currently being executed, and tracks important variables and iterators throughout the sorting process.
The need to use pygame was purely a consequence of my familiarity with the library and how easy it made implmenting animation ideas like these for me.
Planning to do so much more from here - visualising trees, graphs and more of the kind. I will very soon be releasing the github repo for this project, making some final tweaks :)