Skip to content

This project uses Pygame to visualize various sorting algorithms, making it easier to understand how they work.

License

Notifications You must be signed in to change notification settings

CityIsBetter/Visualize_Sorting_Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithms Visualization

Welcome to the Sorting Algorithms Visualization project! This project uses Pygame to visualize various sorting algorithms, making it easier to understand how they work.

Sorting Algorithms Visualization

Features

  • Visual representation of sorting algorithms:
    • Bubble Sort
    • Selection Sort
    • Insertion Sort
    • Merge Sort
    • Quick Sort
    • Heap Sort
  • Interactive controls for selecting the sorting algorithm
  • Input field to define the number of data elements to sort
  • Reset functionality to generate a new random array

Getting Started

Prerequisites

  • Python 3.x
  • Pygame library

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/sorting-visualization.git
    cd sorting-visualization
  2. Install the required packages:

    pip install pygame

Usage

  1. Run the program:

    python visualizer.py
  2. Use the buttons to select the sorting algorithm you want to visualize.

  3. Adjust the number of data elements using the input field and click "Reset Array" to generate a new set of data.

  4. Watch the sorting algorithm in action!

Contributing

Contributions are welcome! If you have suggestions for improvements or additional features, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Inspired by the desire to visualize sorting algorithms for better understanding and learning.

About

This project uses Pygame to visualize various sorting algorithms, making it easier to understand how they work.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages