Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sahil1699/Sorting-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Visualizer

Sorting Visualizer is a Python project built with pygame that provides a visual representation of various sorting algorithms, including Quick Sort, Merge Sort, Bubble Sort, Heap Sort, Selection Sort, and Insertion Sort. This README aims to guide you through the project's features and how to run it on your own machine.

Project Overview

Quick Sort Visualization

The project offers an interactive interface that allows you to visualize different sorting algorithms in action. It's a great tool for understanding how these algorithms work and how they compare in terms of efficiency.

Adjusting Array Size

You can change the size of the array being sorted using the following buttons:

  • Small Array: Click this button to reduce the array size.
  • Large Array: Click this button to increase the array size.

The default size is set at the beginning of this README file.

Algorithm Selection

Choose from a variety of sorting algorithms to visualize. The available options are displayed as buttons:

Algorithm Selection

Visualizing Sorting Algorithms

Once you've selected an algorithm, click the respective button to start the visualization. You will witness the algorithm in action:

Merge Sort Visualization

Stopping and Shuffling

At any point during the visualization, you can stop the algorithm or reshuffle the array by clicking the following buttons:

  • Stop: Use this button to halt the algorithm.
  • Shuffle: Click this button to shuffle the array randomly.

How to Run the Project

To run this project on your PC, ensure you have Python 3.7.0 or a later version installed. Then follow these steps:

  1. Install pygame using pip:

    pip install pygame
    
  2. Clone this repository using the following command:

    git clone https://github.com/sahil1699/Sorting-Visualizer.git
    
  3. Open your terminal, navigate to the directory where you've cloned the project, and execute the following command to start the visualizer:

    python SortingVisulizer.py
    

Explore the world of sorting algorithms through visualization with Sorting Visualizer!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages