filmov
tv
10 Sorting Algorithms Visualized

Показать описание
GENERAL INFO:
Source code available down below, but bare in mind it was my first time using Java Swing and so it is not great.
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.
=========
=========
RESOURCES:
=========
MUSIC USED:
Ken Silverman - NEATSONG.kdm
=========================================
LINKS:
Source code available down below, but bare in mind it was my first time using Java Swing and so it is not great.
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.
=========
=========
RESOURCES:
=========
MUSIC USED:
Ken Silverman - NEATSONG.kdm
=========================================
LINKS:
Комментарии