This project is a web application that visualizes various sorting algorithms. It allows users to input a list of numbers and select a sorting algorithm to see how the algorithm sorts the list step-by-step.
- Bubble Sort: A simple comparison-based sorting algorithm.
- Optimized Bubble Sort: An improved version of bubble sort that stops early if the list is already sorted.
- Selection Sort: A comparison-based sorting algorithm that divides the list into a sorted and an unsorted region.
-
Clone the repository
-
Navigate to the project directory:
cd sortingAlgorithmsVisualizer -
Install the required dependencies:
pip install -r requirements.txt
- Run the Flask application:
python app.py
- Open your web browser and go to
http://127.0.0.1:5000.
app.py: The main Flask application file containing the sorting algorithms and routes.templates/index.html: The HTML template for the web interface.static/: Directory for static files like images.requirements.txt: List of Python dependencies.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
Check out the live demo here.