Skip to content

OmarAhsanCode/Sorting-Algorithm-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Sorting Algorithm Visualizer

This project is a Python application that visualizes sorting algorithms using Pygame. It provides an interactive way to see how different sorting algorithms work step by step.

Features

  • Visualizes sorting algorithms (Bubble Sort, Insertion Sort)
  • Interactive controls to reset, start sorting, and switch between ascending/descending order
  • Colorful gradient bars for better visualization
  • Real-time updates as the sorting progresses

Controls

  • R: Reset the list
  • Space: Start sorting
  • A: Sort in ascending order
  • D: Sort in descending order
  • I: Use Insertion Sort
  • B: Use Bubble Sort

Requirements

  • Python 3.x
  • Pygame

Installation

  1. Install Python 3.x from python.org
  2. Install Pygame:
    pip install pygame

Usage

Run the visualizer with:

python "Sorting Algorithm Visualizer/tutorial.py"

Project Structure

  • Sorting Algorithm Visualizer/tutorial.py: Main application file
  • README.md: Project documentation

License

This project is for educational purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages