Project Name:
Sorting Algorithm Visualizer
About Project:
-
This is a Sorting Algorithm Visualizer implemented using C programming language with GUI.
-
It helps in visualising how different sorts work and also gives an idea of how fast they are.
-
Sorts included in this projects are :
- Bubble Sort
- Selection Sort
- Insertion Sort
- Quick Sort
- Merge Sort
How to run the code? (For Linux)
-
Install CSFML library from Here
-
For compiling and linking all the graphics to your file , for that use:
gcc -Wall -O2 filename.c -lcsfml-graphics -lcsfml-window -o filename
(
-lcsfml-graphics
to link executable with csfml-graphics library and-lcsfml-window
with csfml-window library.) -
Run the executable file, for that use :
./filename
For Windows , Visual Studio is required, any suggestions on how to compile CSFML on windows are most welcome :).
Technologies Used:
- C
- CSFML
How it works?
- The coloured line in the white bars shows on which element the sorting is taking place and how the element is getting sorted.
- After doing sorting logically according to the respective sorts, it moves to next element.
- Once the array is sorted, all the bars gets light up with different colour.