View on GitHub

SortingSounds

Java application which visualize three different sorting algorythms: bubble sort, quicksort and dual-pivot quicksort, playing a different tone to every comparison it makes while sorting.

SortingSounds

Java application which visualizes three different sorting algorithms: bubble sort, quicksort and array sort, optionally playing a different tone to every comparison it makes while sorting.

The application contains 4 controls and a button responsible for the start of visualization.

In the botton there is a label which informs the user about how many comparisons chosen algorithm had made during sorting.

An example of the application running Bubble sort algorithm:

.gif, 1MB

Quicksort:

.gif, 921kB

Dual-Pivot Quicksort implemented in Java api as Arrays.sort() method:

.gif, 1,05MB


To generate a jar file of this project using maven:

  1. after cloning the project, open terminal in the project’s main directory and type:

mvn package

  1. Next go to generated target directory:

cd target

  1. To run generated jar file enter:

java -jar SortingSounds.jar