RayAlgoViz is an interactive sorting algorithm visualizer built with Raylib. It animates various sorting algorithms and provides useful insights such as execution time, number of comparisons, and assignation/swaps performed.
-
Visualization of sorting algorithms:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
-
Real-time display of:
- Number of comparisons
- Number of assignation/swaps
-
Simple and intuitive interface with Raylib
-
Makefile support for easy compilation and execution
- Raylib (latest version recommended)
- C/C++ Compiler (GCC, Clang, MinGW, etc.)
- Make (to use the Makefile)
- Clone the repository:
git clone https://github.com/C-JeanDev/RayAlgoViz.git cd AlgoVisualizer
- Makefile:
make clean && make && ./algo.out
- Quick Sort Algorithm
- Red rectangles when accessed and/or compared
AlgoVisualizer/
│── include/ # Header and utility files
│ ├── button.c # Button implementation
│ ├── button.h # Button header
│ ├── rect.c # Rectangle implementation
│ ├── rect.h # Rectangle header
│ ├── vector.c # Vector implementation
│ ├── vector.h # Vector header
│── src/ # Source code
│ ├── main.c # Main file
│── LICENSE.txt # License file
│── Makefile # Build file
│── README.md # Documentation