A Sorting Algorithm Visualiser to demonstrate the algorithms of Quicksort, Bitonic sort, Heap sort, Merge sort, Pigeonhole sort, Comb sort, Bubble sort and of course, Bogo sort.
- Interactive graphical representation of sorting algorithms.
- Multiple sorting algorithms included: Quick Sort, Merge Sort, Heap Sort, Bitonic Sort, Comb Sort, Pigeonhole Sort, Bubble Sort, and Bogo Sort.
- Adjustable array size and sorting delay.
- Keyboard shortcuts for starting sorting, changing algorithms, and shuffling bars.
- Informative GUI elements displaying selected algorithm, elapsed time, and more.
sorting.algorithm.visualiser.mp4
- Python 3.x
- Pygame
To use the Sorting Algorithm Visualiser, follow these steps:
-
Head over to the releases page
-
Download the source code of the latest release
-
Install the required dependencies using
pip
:
pip install pygame numpy
- Extract the contents of the file and run the
main.py
script to start the application
OR
- Clone the repository to your local machine:
git clone https://github.com/vSparkyy/Neural-Network-Visualiser.git
- Install the required dependencies using
pip
:
pip install pygame numpy
- Run the
main.py
script to start the application:
python main.py
OR
-
Press the green '<> Code' button and download the ZIP file
-
Extract the contents of the ZIP file into one folder
-
Run the
main.py
script to start the application
- Adjust the array size and sorting delay using sliders.
- Press "Space" to start sorting with the selected algorithm.
- Press "R" to shuffle the bars.
- Press "C" to change the sorting algorithm.
- Coded by vSparkyy
- Assets by jarmishan
Contributions are welcome! If you find any issues or want to enhance the visualiser, feel free to create pull requests.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.