This Sorting Algorithm Visualizer is a GUI application built with Tkinter in Python. It allows users to visualize different sorting algorithms in action and understand their time complexities.
demo.mov
- Visualize sorting algorithms graphically in real-time.
- Compare the time complexity of algorithms graphically.
- Supports multiple sorting algorithms including Bubble Sort, Quick Sort, and Merge Sort.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before running the application, make sure you have Python installed on your machine. You can download Python here.
Clone the repository to your local machine:
git clone https://github.com/your-username/sorting-visualizer.gitNavigate to the cloned repository:
cd sorting-visualizerInstall the required dependencies:
pip install -r requirements.txtTo run the application, execute the following command in the terminal:
python main.pyOnce the application starts, you can:
- Select a sorting algorithm from the dropdown menu.
- Click 'Generate Array' to create a new random array.
- Click 'Start Sorting' to begin the visualization.
- Observe the sorting process on the screen.
To create an executable for the application, you can use PyInstaller:
pyinstaller --onefile --windowed main.pyThe executable will be located in the dist directory.
- Python 3 - The programming language used.
- Tkinter - The GUI toolkit used.