Skip to content

Sorting Algorithm Visualizer and Guide is an interactive tool that helps you visualize and understand sorting algorithms.

Notifications You must be signed in to change notification settings

pyRadhik/sorting-algorithm-visualizer-and-guide

Repository files navigation

Sorting Algorithm Visualizer

Sorting Visualization

Table of Contents

Introduction

The Sorting Algorithm Visualizer is an interactive tool built with Pygame that allows users to visualize and compare various sorting algorithms in real-time. It is a learning tool that helps students and teachers alike to understand how data is manipulated.

Features

  • 9 Essential Sorting Algorithms: Bubble Sort, Insertion Sort, Merge Sort, Quick Sort, Selection Sort, Heap Sort, Counting Sort, Radix Sort, and Bucket Sort.
  • Real-Time Visualization: Watch how algorithms shape data to achieve sorted order.
  • Interactive Controls: Easy-to-use keyboard shortcuts for seamless interaction.

Installation

Prerequisites

  • Python 3.6+
  • Pygame Library

Steps

  1. Clone the Repository:

    git clone https://github.com/your-username/sorting-algorithm-visualizer-and-guide.git
    cd sorting-algorithm-visualize-and-guide
    
  2. Create a Virtual Environment (Optional but Recommended):

    python3 -m venv venv
    source venv/bin/activate
    
  3. Install Dependencies:

    pip install -r requirements.txt
    
  4. Run the visualizer Depending on where your main code is:

     python <name of file>.py
     #or if you're using jupyter
     jupyter notebook sorting_visualizer.ipynb

You're now good to go!

About

Sorting Algorithm Visualizer and Guide is an interactive tool that helps you visualize and understand sorting algorithms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published