Skip to content

hamzaiftkhar/Sorting-Algorithm-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting-Algorithm-Visualizer

A Python application for visualizing various sorting algorithms using Tkinter for the graphical user interface.

Table of Contents

About

The Sorting Algorithm Visualizer is a Python application that allows users to interactively visualize and understand how different sorting algorithms work. It provides a user-friendly graphical interface that lets users select a sorting algorithm, set the speed of visualization, and watch the sorting process in real-time.

Features

  • Visualize various sorting algorithms, including Bubble Sort, Insertion Sort, Selection Sort, Merge Sort, and Quick Sort.
  • Adjustable sorting speed and array size for customization.
  • Shuffle the array to see different input scenarios.
  • Interactive user interface with real-time visual feedback.
  • Educational tool for learning sorting algorithms.

Getting Started

Follow these steps to get the Sorting Algorithm Visualizer up and running on your local machine.

Prerequisites

  • Python 3.x
  • Tkinter (usually included with Python)
  • numpy library (install using pip install numpy)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/sorting-algorithm-visualizer.git
  2. Navigate to the project directory:

    cd sorting-algorithm-visualizer
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Run the application by executing the main Python script:

    python main.py
  2. Use the graphical user interface to select a sorting algorithm, adjust the sorting speed and array size, and start the visualization.

  3. Watch the sorting algorithm in action on the Canvas display. Enjoy learning and experimenting with sorting algorithms!

Supported Sorting Algorithms

This project supports the following sorting algorithms:

  • Bubble Sort
  • Insertion Sort
  • Selection Sort
  • Merge Sort
  • Quick Sort

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the project.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Create a pull request to the main repository.

Feel free to customize this README to include additional information, details about the sorting algorithms, or any other relevant content for your project.

About

Sorting algorithm visualizer is a project formed using python and its liabraries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages