Skip to content

This project visualizes various sorting algorithms using Pygame. It helps understand how different sorting algorithms work by providing a visual representation of the sorting process.

Notifications You must be signed in to change notification settings

EgemenErin/Sorting_Algorithm_Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Sorting Algorithm Visualization

This project visualizes various sorting algorithms using Pygame. It helps understand how different sorting algorithms work by providing a visual representation of the sorting process. image image image

Features

  • Visualize Bubble Sort, Insertion Sort, and Merge Sort.
  • Control sorting order (Ascending or Descending).
  • Easily reset and start sorting again.
  • Simple and intuitive controls.

Controls

  • R: Reset the list with new random values.
  • SPACE: Start the sorting process.
  • A: Set sorting order to Ascending.
  • D: Set sorting order to Descending.
  • I: Select Insertion Sort.
  • B: Select Bubble Sort.
  • M: Select Merge Sort.

Requirements

  • Python 3.x
  • Pygame

Installation

  1. Clone the repository:

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

    cd sorting-visualization
  3. Install the required packages:

    pip install pygame

Usage

Run the main script to start the visualization:

python main.py

About

This project visualizes various sorting algorithms using Pygame. It helps understand how different sorting algorithms work by providing a visual representation of the sorting process.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages