Visualize Sorting

The goals for this project were to enhance skills in Java, learn and implement sorting algorithms, and utilize Model View Controller (MVC) design pattern as much as possible

This program is meant to demonstrate a visual representation of numbers as color.

That way we could see a 2D array (Data structure) as a visual.

So each pixel represents a number inside the 2d array

So then we can see how well the sorting algorithm perform and how accurately the array is sorted

The program has a user menu and uses insertion sort or quicksort depending on user input

Each number is represented with a color. That color depends on a range:

Intense red represents numbers <= -255

Red to black represents numbers <= -1

numbers that are 0 are shown as black

The numbers from 1 to 255 are shown as the color increases in intensity from black to green

The numbers from 256 and above are represented with the color green

The next few lines will demonstrate how the program works

The array is initialized to random values

Credits

C343 Instructor and Teacher assistants

Thanks to Leepoint. The information for MVC was invaluable click here.

Thanks to GeekforGeeks for help with Quicksort algorithm

Skills Summary

Java

85%
80%
Before Project
83%
During Project

Sorting Algorithms

90%
50%
Before Project
80%
During Project

Model View Controller

100%
90%
Before Project
95%
During Project