Skip to content

📶 Visualize sorting algorithms via images.

Notifications You must be signed in to change notification settings

Muneer320/sort-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📶 Sort Image

Sort Image (Bubble Sort) - Preview

Inspiration for this project is the following post from Reddit.

👷 Architecture

The flow of data is as follows: PIL is used for image manipulation, and either FFMPEG or OPENCV can be used to combine the generated images into a video.

"Architecture"

⚙️ Usage

Install either FFMPEG or OPENCV.

sudo apt install ffmpeg
git clone https://github.com/surajkareppagol/sort-image
cd sort-image
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python3 src/main.py [image]

➡️ Available Options

Option Description Arguments
- Image None
s Image split size Number (default: 50)
a Algorithm Index number (0 - 6)
b Builder "ff" or "cv"

📶 Sorting Algorithms

The following algorithms are available:

  1. Bubble Sort
  2. Selection Sort
  3. Insertion Sort
  4. Merge Sort
  5. Quick Sort
  6. Heap Sort

Each algorithm creates a visually unique sorting video, making it easier to understand the sorting process.

About

📶 Visualize sorting algorithms via images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%