10 Sorting Algorithms Visualized
Hopson
GENERAL INFO:
This is a showcase of the program made in the video here: https://www.youtube.com/watch?v=6haL-aiE21w Source code available down below, but bare in mind it was my first time using Java Swing and so it is not great.
There is a much better visualizer which can be found here: https://www.youtube.com/watch?v=kPRA0W1kECg
EXPLANATION: There are 256 bars. Each bar has a height depending on the value of an integer array. For example, the bar on the far left has a height of the value of "array[0]" and the far right bar has the value of "array[255]".
As the sort algorithm changes the array, the bars change height accordingly.
Green bars are those most recently changed. They immediately go into a red bar, which gradually fades back to the default white colour.
The sounds being played were made using Java's built in MIDI Channels and Synthesizer. A note is played each time a change to the array is made. The higher the pitch, the higher the value that was changed.
=========
DOWNLOAD: https://github.com/Hopson97/Sort-Algorithm-Visualiser/releases/tag/v0.2 SOURCE CODE: https://github.com/Hopson97/Sort-Algorithm-Visualiser
========= RESOURCES:
========= MUSIC USED: Ken Silverman - NEATSONG.kdm
========================================= LINKS:
GitHub: https://github.com/Hopson97?tab=repositories Discord Server: https://discord.gg/DeEhUXY Support me on Patreon: https://www.patreon.com/Hopson Follow me on Twitter: https://twitter.com/Hopson1997 ... https://www.youtube.com/watch?v=tPtvKYinUzc
17289414 Bytes